1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
|
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#include <BALL/STRUCTURE/RDFIntegrator.h>
using namespace std;
namespace BALL
{
RDFIntegrator::RDFIntegrator()
: rdf_(),
valid_(false)
{
}
RDFIntegrator::RDFIntegrator(const RDFIntegrator& integrator)
: rdf_(integrator.rdf_),
valid_(false)
{
}
RDFIntegrator::RDFIntegrator(const RadialDistributionFunction& rdf)
: rdf_(rdf),
valid_(false)
{
}
RDFIntegrator::~RDFIntegrator()
{
clear();
valid_ = false;
}
void RDFIntegrator::clear()
{
rdf_.clear();
}
void RDFIntegrator::setRDF(const RadialDistributionFunction& rdf)
{
rdf_ = rdf;
}
const RadialDistributionFunction& RDFIntegrator::getRDF() const
{
return rdf_;
}
const RDFIntegrator& RDFIntegrator::operator = (const RDFIntegrator& integrator)
{
rdf_ = integrator.rdf_;
return *this;
}
bool RDFIntegrator::operator == (const RDFIntegrator& integrator) const
{
return (rdf_ == integrator.rdf_);
}
bool RDFIntegrator::isValid() const
{
return valid_;
}
double RDFIntegrator::operator () (double /* x */) const
{
Log.error() << "RDFIntegrator::operator () (double): "
<< "This method should not be called!" << endl;
return 0.0;
}
}
|