Public Member Functions | Static Public Member Functions | Protected Attributes | Private Attributes | List of all members
PLMD::DataFetchingObjectTyped< T > Class Template Reference
Inheritance diagram for PLMD::DataFetchingObjectTyped< T >:
Inheritance graph
[legend]

Public Member Functions

 DataFetchingObjectTyped (PlumedMain &plumed)
 
 ~DataFetchingObjectTyped ()
 
bool activate () const
 
void finishDataGrab () override
 After calc has been performed grab all the data and put it in the relevant arrays. More...
 
void setData (const std::string &key, const std::string &type, const TypesafePtr &outval) override
 Set the pointer to the data. More...
 

Static Public Member Functions

static std::unique_ptr< DataFetchingObjectcreate (unsigned n, PlumedMain &p)
 
static ActionWithValuefindAction (const ActionSet &a, const std::string &key)
 Find the action that calculates a particular value. More...
 
static void get_rank (const ActionSet &a, const std::string &key, const std::string &type, const TypesafePtr &rank)
 Return the rank required for a particular key. More...
 
static void get_shape (const ActionSet &a, const std::string &key, const std::string &type, const TypesafePtr &dims)
 Return the shape required for a particular key. More...
 

Protected Attributes

std::vector< ActionWithValue * > myactions
 Pointers to the various actions required by the grabber. More...
 
std::vector< Value * > myvalues
 The values required by the user. More...
 
PlumedMainplumed
 A copy of the plumed main object. More...
 

Private Attributes

std::map< std::string, TypesafePtrdata
 A map containing the data we are grabbing. More...
 

Constructor & Destructor Documentation

◆ DataFetchingObjectTyped()

template<class T >
PLMD::DataFetchingObjectTyped< T >::DataFetchingObjectTyped ( PlumedMain plumed)
explicit

◆ ~DataFetchingObjectTyped()

template<class T >
PLMD::DataFetchingObjectTyped< T >::~DataFetchingObjectTyped ( )
inline

Member Function Documentation

◆ activate()

bool PLMD::DataFetchingObject::activate ( ) const
inherited

◆ create()

std::unique_ptr< DataFetchingObject > PLMD::DataFetchingObject::create ( unsigned  n,
PlumedMain p 
)
staticinherited

◆ findAction()

ActionWithValue * PLMD::DataFetchingObject::findAction ( const ActionSet a,
const std::string &  key 
)
staticinherited

Find the action that calculates a particular value.

◆ finishDataGrab()

template<class T >
void PLMD::DataFetchingObjectTyped< T >::finishDataGrab ( )
overridevirtual

After calc has been performed grab all the data and put it in the relevant arrays.

Implements PLMD::DataFetchingObject.

◆ get_rank()

void PLMD::DataFetchingObject::get_rank ( const ActionSet a,
const std::string &  key,
const std::string &  type,
const TypesafePtr rank 
)
staticinherited

Return the rank required for a particular key.

◆ get_shape()

void PLMD::DataFetchingObject::get_shape ( const ActionSet a,
const std::string &  key,
const std::string &  type,
const TypesafePtr dims 
)
staticinherited

Return the shape required for a particular key.

◆ setData()

template<class T >
void PLMD::DataFetchingObjectTyped< T >::setData ( const std::string &  key,
const std::string &  type,
const TypesafePtr outval 
)
overridevirtual

Set the pointer to the data.

Implements PLMD::DataFetchingObject.

Member Data Documentation

◆ data

template<class T >
std::map<std::string,TypesafePtr> PLMD::DataFetchingObjectTyped< T >::data
private

A map containing the data we are grabbing.

◆ myactions

std::vector<ActionWithValue*> PLMD::DataFetchingObject::myactions
protectedinherited

Pointers to the various actions required by the grabber.

◆ myvalues

std::vector<Value*> PLMD::DataFetchingObject::myvalues
protectedinherited

The values required by the user.

◆ plumed

PlumedMain& PLMD::DataFetchingObject::plumed
protectedinherited

A copy of the plumed main object.


The documentation for this class was generated from the following file: