#include <MultiReferenceBase.h>
|
| MultiReferenceBase (const std::string &type, const bool &checksoff) |
|
virtual | ~MultiReferenceBase () |
| Destructor deletes all polymorphic pointers. More...
|
|
void | clearFrames () |
| Delete all the data in the reference object. More...
|
|
virtual void | clearRestOfData () |
|
void | readFrame (PDB &pdb) |
| Read a frame from the input. More...
|
|
void | getAtomAndArgumentRequirements (std::vector< AtomNumber > &atoms, std::vector< std::string > &args) |
| Find what is required of us from the reference frames. More...
|
|
virtual void | readRestOfFrame () |
| Finish setup of frames. More...
|
|
virtual void | resizeRestOfFrame () |
| Do additional resizing required by derived class. More...
|
|
unsigned | getNumberOfReferenceFrames () const |
| Return the size of the frames vector. More...
|
|
double | calcDistanceFromConfiguration (const unsigned &ifunc, const std::vector< Vector > &pos, const Pbc &pbc, const std::vector< Value * > &arg, ReferenceValuePack &myder, const bool &squared) const |
| Calculate the distance from one of the reference points. More...
|
|
ReferenceConfiguration * | getFrame (const unsigned &iframe) |
| Return the ith reference frame. More...
|
|
void | copyFrame (ReferenceConfiguration *frameToCopy) |
| Copy a reference configuration into the multi reference object. More...
|
|
void | setWeights (const std::vector< double > &ww) |
| Set the weight of the ith frame. More...
|
|
double | getWeight (const unsigned &ifram) const |
| Retrieve the weight of one of the frames. More...
|
|
void | calculateAllDistances (const Pbc &pbc, const std::vector< Value * > &vals, Communicator &comm, Matrix< double > &distances, const bool &squared) |
| Calculate the distances between all the frames and store in a matrix. More...
|
|
|
template<class T > |
void | parse (const std::string &key, T &val) |
| Read something from the last frame. More...
|
|
PLMD::MultiReferenceBase::MultiReferenceBase |
( |
const std::string & |
type, |
|
|
const bool & |
checksoff |
|
) |
| |
PLMD::MultiReferenceBase::~MultiReferenceBase |
( |
| ) |
|
|
virtual |
Destructor deletes all polymorphic pointers.
double PLMD::MultiReferenceBase::calcDistanceFromConfiguration |
( |
const unsigned & |
ifunc, |
|
|
const std::vector< Vector > & |
pos, |
|
|
const Pbc & |
pbc, |
|
|
const std::vector< Value * > & |
arg, |
|
|
ReferenceValuePack & |
myder, |
|
|
const bool & |
squared |
|
) |
| const |
|
inline |
Calculate the distance from one of the reference points.
void PLMD::MultiReferenceBase::calculateAllDistances |
( |
const Pbc & |
pbc, |
|
|
const std::vector< Value * > & |
vals, |
|
|
Communicator & |
comm, |
|
|
Matrix< double > & |
distances, |
|
|
const bool & |
squared |
|
) |
| |
Calculate the distances between all the frames and store in a matrix.
void PLMD::MultiReferenceBase::clearFrames |
( |
| ) |
|
Delete all the data in the reference object.
virtual void PLMD::MultiReferenceBase::clearRestOfData |
( |
| ) |
|
|
inlinevirtual |
Copy a reference configuration into the multi reference object.
void PLMD::MultiReferenceBase::getAtomAndArgumentRequirements |
( |
std::vector< AtomNumber > & |
atoms, |
|
|
std::vector< std::string > & |
args |
|
) |
| |
Find what is required of us from the reference frames.
Return the ith reference frame.
unsigned PLMD::MultiReferenceBase::getNumberOfReferenceFrames |
( |
| ) |
const |
|
inline |
Return the size of the frames vector.
double PLMD::MultiReferenceBase::getWeight |
( |
const unsigned & |
ifram | ) |
const |
|
inline |
Retrieve the weight of one of the frames.
template<class T >
void PLMD::MultiReferenceBase::parse |
( |
const std::string & |
key, |
|
|
T & |
val |
|
) |
| |
|
protected |
Read something from the last frame.
void PLMD::MultiReferenceBase::readFrame |
( |
PDB & |
pdb | ) |
|
Read a frame from the input.
virtual void PLMD::MultiReferenceBase::readRestOfFrame |
( |
| ) |
|
|
inlinevirtual |
Finish setup of frames.
Do additional reading required by derived class
Reimplemented in PLMD::PointWiseMapping.
virtual void PLMD::MultiReferenceBase::resizeRestOfFrame |
( |
| ) |
|
|
inlinevirtual |
void PLMD::MultiReferenceBase::setWeights |
( |
const std::vector< double > & |
ww | ) |
|
Set the weight of the ith frame.
These are the configurations that serve as references.
std::string PLMD::MultiReferenceBase::mtype |
|
private |
The type of metric we are using.
bool PLMD::MultiReferenceBase::skipchecks |
|
private |
Skip all checking allows users to do really dodgy stuff :-)
bool PLMD::MultiReferenceBase::wasSet |
|
private |
The documentation for this class was generated from the following files: