#include <DataPassingObject.h>

Public Member Functions | |
| DataPassingObject () | |
| virtual | ~DataPassingObject () |
| Virtual destructor, just to allow inheritance. | |
| virtual void | add_force (const std::vector< AtomNumber > &index, const std::vector< unsigned > &i, Value *value)=0 |
| virtual void | add_force (const std::vector< int > &index, Value *value)=0 |
| virtual void | add_force (Value *vv)=0 |
| Pass the force from the value to the output value. | |
| virtual double | MD2double (const TypesafePtr &m) const =0 |
| Convert what comes from the MD code to a double. | |
| virtual void | rescale_force (const unsigned &n, const double &factor, Value *value)=0 |
| Rescale the forces that were passed. | |
| virtual void | saveValueAsDouble (const TypesafePtr &val)=0 |
| This is used when you want to save the passed object to a double variable in PLUMED rather than the pointer this can be used even when you don't pass a pointer from the MD code. | |
| virtual void | setData (Value *value)=0 |
| This transfers everything to the output. | |
| virtual void | setForcePointer (const TypesafePtr &val, const std::vector< std::size_t > &shape)=0 |
| Set the pointer to the force. | |
| void | setForceUnit (const double &u) |
| Set the unit for the force. | |
| void | setStart (const unsigned &s) |
| void | setStride (const unsigned &s) |
| Set the stride to use when getting data from the input array. | |
| void | setUnit (const double &u) |
| Set the unit for the value. | |
| virtual void | setValuePointer (const TypesafePtr &val, const std::vector< std::size_t > &shape, const bool &isconst)=0 |
| Set the pointer to the value. | |
| virtual void | share_data (const std::vector< AtomNumber > &index, const std::vector< unsigned > &i, Value *value)=0 |
| Share the data and put it in the value from a scattered data. | |
| virtual void | share_data (const unsigned &j, const unsigned &k, Value *value)=0 |
| Share the data and put it in the value from sequential data. | |
| virtual void | share_data (std::vector< double > &values) const =0 |
| This gets the data in the pointer and passes it to the output value. | |
Static Public Member Functions | |
| static std::unique_ptr< DataPassingObject > | create (unsigned n) |
Protected Attributes | |
| double | bvalue |
| double | funit |
| The units of the force on this quantity. | |
| bool | hasbackup |
| The backup value of the quantity (used if the value is passed directly) | |
| unsigned | start |
| The start of the data in the input pointer. | |
| unsigned | stride |
| The spacing between values in the input arrays. | |
| double | unit |
| The units of the quantity. | |
|
inlineexplicit |
|
inlinevirtual |
Virtual destructor, just to allow inheritance.
|
pure virtual |
Implemented in PLMD::DataPassingObjectTyped< T >.
|
pure virtual |
Implemented in PLMD::DataPassingObjectTyped< T >.
|
pure virtual |
Pass the force from the value to the output value.
Implemented in PLMD::DataPassingObjectTyped< T >.
|
static |
|
pure virtual |
Convert what comes from the MD code to a double.
Implemented in PLMD::DataPassingObjectTyped< T >.
|
pure virtual |
Rescale the forces that were passed.
Implemented in PLMD::DataPassingObjectTyped< T >.
|
pure virtual |
This is used when you want to save the passed object to a double variable in PLUMED rather than the pointer this can be used even when you don't pass a pointer from the MD code.
Implemented in PLMD::DataPassingObjectTyped< T >.
|
pure virtual |
This transfers everything to the output.
Implemented in PLMD::DataPassingObjectTyped< T >.
|
pure virtual |
Set the pointer to the force.
Implemented in PLMD::DataPassingObjectTyped< T >.
|
inline |
Set the unit for the force.
|
inline |
|
inline |
Set the stride to use when getting data from the input array.
|
inline |
Set the unit for the value.
|
pure virtual |
Set the pointer to the value.
Implemented in PLMD::DataPassingObjectTyped< T >.
|
pure virtual |
Share the data and put it in the value from a scattered data.
Implemented in PLMD::DataPassingObjectTyped< T >.
|
pure virtual |
Share the data and put it in the value from sequential data.
Implemented in PLMD::DataPassingObjectTyped< T >.
|
pure virtual |
This gets the data in the pointer and passes it to the output value.
Implemented in PLMD::DataPassingObjectTyped< T >.
|
protected |
|
protected |
The units of the force on this quantity.
|
protected |
The backup value of the quantity (used if the value is passed directly)
|
protected |
The start of the data in the input pointer.
|
protected |
The spacing between values in the input arrays.
|
protected |
The units of the quantity.
Hosted by GitHub
|
1.13.2
|