#include <Vessel.h>
|
Log & | log |
| Reference to the log on which to output details. More...
|
|
virtual PLMD::vesselbase::Vessel::~Vessel |
( |
| ) |
|
|
inlinevirtual |
Virtual destructor needed for proper inheritance.
void PLMD::vesselbase::Vessel::addToBufferElement |
( |
const unsigned & |
i, |
|
|
const double & |
val |
|
) |
| |
|
inline |
Add something to the ith element in the buffer.
virtual bool PLMD::vesselbase::Vessel::applyForce |
( |
std::vector< double > & |
forces | ) |
|
|
pure virtual |
virtual bool PLMD::vesselbase::Vessel::calculate |
( |
| ) |
|
|
pure virtual |
Calculate the part of the vessel that is done in the loop.
Implemented in PLMD::vesselbase::StoreDataVessel, PLMD::vesselbase::BridgeVessel, PLMD::crystallization::StoreVectorsVessel, PLMD::multicolvar::DHEnergy, PLMD::vesselbase::ShortcutVessel, PLMD::vesselbase::Between, PLMD::mapping::SpathVessel, PLMD::vesselbase::MoreThan, PLMD::vesselbase::LessThan, PLMD::crystallization::VectorMean, PLMD::vesselbase::Max, PLMD::vesselbase::Min, PLMD::mapping::ZpathVessel, PLMD::vesselbase::Mean, and PLMD::vesselbase::Sum.
void PLMD::vesselbase::Vessel::checkRead |
( |
| ) |
|
Check that readin was fine.
virtual std::string PLMD::vesselbase::Vessel::description |
( |
| ) |
|
|
pure virtual |
void PLMD::vesselbase::Vessel::error |
( |
const std::string & |
errmsg | ) |
|
|
protected |
virtual void PLMD::vesselbase::Vessel::finish |
( |
| ) |
|
|
pure virtual |
Complete the calculation once the loop is finished.
Implemented in PLMD::vesselbase::StoreDataVessel, PLMD::vesselbase::BridgeVessel, PLMD::multicolvar::AdjacencyMatrixVessel, PLMD::multicolvar::DHEnergy, PLMD::vesselbase::Moments, PLMD::vesselbase::ShortcutVessel, PLMD::vesselbase::Between, PLMD::mapping::SpathVessel, PLMD::vesselbase::MoreThan, PLMD::vesselbase::LessThan, PLMD::crystallization::VectorMean, PLMD::vesselbase::Max, PLMD::vesselbase::Min, PLMD::mapping::ZpathVessel, PLMD::vesselbase::Mean, and PLMD::vesselbase::Sum.
Return a pointer to the action we are working in.
std::string PLMD::vesselbase::Vessel::getAllInput |
( |
| ) |
|
|
protected |
This returns the whole input line (it is used for less_than/more_than/between)
double PLMD::vesselbase::Vessel::getBufferElement |
( |
const unsigned & |
i | ) |
const |
|
inlineprotected |
Get the value in the ith element of the buffer.
std::string PLMD::vesselbase::Vessel::getLabel |
( |
| ) |
const |
std::string PLMD::vesselbase::Vessel::getName |
( |
| ) |
const |
double PLMD::vesselbase::Vessel::getNLTolerance |
( |
| ) |
const |
|
inlineprotected |
Return the value of the neighbor list tolerance.
int PLMD::vesselbase::Vessel::getNumericalLabel |
( |
| ) |
const |
|
inlineprotected |
Return the numerical label.
double PLMD::vesselbase::Vessel::getTolerance |
( |
| ) |
const |
|
inlineprotected |
Return the value of the tolerance.
template<class T >
void PLMD::vesselbase::Vessel::parse |
( |
const std::string & |
key, |
|
|
T & |
t |
|
) |
| |
|
protected |
Parse something from the input.
void PLMD::vesselbase::Vessel::parseFlag |
( |
const std::string & |
key, |
|
|
bool & |
t |
|
) |
| |
|
protected |
Parse one keyword as boolean flag.
template<class T >
void PLMD::vesselbase::Vessel::parseVector |
( |
const std::string & |
key, |
|
|
std::vector< T > & |
t |
|
) |
| |
|
protected |
Parse one keyword as std::vector.
virtual void PLMD::vesselbase::Vessel::prepare |
( |
| ) |
|
|
inlinevirtual |
void PLMD::vesselbase::Vessel::registerKeywords |
( |
Keywords & |
keys | ) |
|
|
static |
Reserve any keywords for this particular vessel.
virtual void PLMD::vesselbase::Vessel::resize |
( |
| ) |
|
|
pure virtual |
void PLMD::vesselbase::Vessel::resizeBuffer |
( |
const unsigned & |
n | ) |
|
|
inlineprotected |
Set the size of the data buffer.
void PLMD::vesselbase::Vessel::setBufferElement |
( |
const unsigned & |
i, |
|
|
const double & |
val |
|
) |
| |
|
inlineprotected |
Set the value of the ith element in the buffer.
std::string PLMD::vesselbase::Vessel::transformName |
( |
const std::string & |
name | ) |
|
|
static |
Convert the name to the label of the component.
void PLMD::vesselbase::Vessel::zero |
( |
| ) |
|
|
inline |
Set all the buffer elements to zero.
The action that this vessel is created within.
unsigned PLMD::vesselbase::Vessel::bufsize |
|
private |
The number of elements in this vessel's buffered data.
unsigned PLMD::vesselbase::Vessel::bufstart |
|
private |
A copy of the communicator.
bool PLMD::vesselbase::Vessel::finished_read |
|
private |
This just checks we have done checkRead.
std::vector<std::string> PLMD::vesselbase::Vessel::line |
|
private |
Directive line.
This line is progressively erased during vessel construction so as to check if all the present keywords are correct.
Log& PLMD::vesselbase::Vessel::log |
Reference to the log on which to output details.
std::string PLMD::vesselbase::Vessel::mylabel |
|
private |
The label for the vessel for referencing.
std::string PLMD::vesselbase::Vessel::myname |
|
private |
The keyword for the vessel in the input file.
const int PLMD::vesselbase::Vessel::numlab |
|
private |
The numerical label for this object.
The documentation for this class was generated from the following files: