Loading...
Searching...
No Matches
PLMD::DataFetchingObjectTyped< T > Class Template Reference
Inheritance diagram for PLMD::DataFetchingObjectTyped< T >:

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.
void setData (const std::string &key, const std::string &type, const TypesafePtr &outval) override
 Set the pointer to the data.

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.
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.
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.

Protected Attributes

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

Private Attributes

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

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: