#include <RDFIntegrator.h>
Public Member Functions |
|
Constructors and destructors
|
|
RDFIntegrator () | |
Default constructor. |
|
RDFIntegrator (const RDFIntegrator &integrator) | |
Copy constructor. |
|
RDFIntegrator (const RadialDistributionFunction &rdf) | |
Detailed constructor. |
|
virtual | ~RDFIntegrator () |
Destructor. |
|
Assignment
|
|
const RDFIntegrator & | operator= (const RDFIntegrator &integrator) |
Assignment operator. |
|
virtual void | clear () |
Clear function. |
|
bool | operator== (const RDFIntegrator &integrator) const |
Predicates. |
|
virtual bool | isValid () const |
Validity test. |
|
void | setRDF (const RadialDistributionFunction &rdf) |
Accessors. |
|
const RadialDistributionFunction & | getRDF () const |
Get the radial distribution function
of this instance. |
|
virtual double | operator() (double x) const |
Compute the value of the integral at
a given x. |
|
Protected Attributes |
|
RadialDistributionFunction | rdf_ |
bool | valid_ |
This class provides the integration functionality needed for the computation of interaction energies.
BALL::RDFIntegrator::RDFIntegrator | ( | const RDFIntegrator & | integrator | ) |
Copy constructor.
integrator | the integrator to copy from |
BALL::RDFIntegrator::RDFIntegrator | ( | const RadialDistributionFunction & | rdf | ) |
Detailed constructor.
rdf | the radial distribution function to initialize this with |
const RadialDistributionFunction& BALL::RDFIntegrator::getRDF | ( | ) | const |
Get the radial distribution function of this instance.
virtual bool BALL::RDFIntegrator::isValid | ( | ) | const [virtual] |
Validity test.
Return the valid flag.
virtual double BALL::RDFIntegrator::operator() | ( | double | x | ) | const [virtual] |
Compute the value of the integral at a given x.
This function should not be called, because it is merely a sort of prototype defining interface for derived classes. It always returns 0.0.
x | the lower limit of the integration |
Reimplemented in BALL::Pair6_12RDFIntegrator, and BALL::PairExpRDFIntegrator.
const RDFIntegrator& BALL::RDFIntegrator::operator= | ( | const RDFIntegrator & | integrator | ) |
Assignment operator.
integrator | the integrator to assign from |
bool BALL::RDFIntegrator::operator== | ( | const RDFIntegrator & | integrator | ) | const |
Predicates.
Equality operator
integrator | the integrator which we want to compare to {this} |
void BALL::RDFIntegrator::setRDF | ( | const RadialDistributionFunction & | rdf | ) |
Accessors.
Set the radial distribution function of this instance.
rdf | a radial distribution function |