Loading...
Searching...
No Matches
PLMD::DataFetchingObject Class Referenceabstract

#include <DataFetchingObject.h>

Inheritance diagram for PLMD::DataFetchingObject:

Public Member Functions

 DataFetchingObject (PlumedMain &p)
 A constructor so that we can create the plumed main object.
virtual ~DataFetchingObject ()
bool activate () const
virtual void finishDataGrab ()=0
 After calc has been performed grab all the data and put it in the relevant arrays.
virtual void setData (const std::string &key, const std::string &type, const TypesafePtr &outval)=0
 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.

Constructor & Destructor Documentation

◆ DataFetchingObject()

PLMD::DataFetchingObject::DataFetchingObject ( PlumedMain & p)
explicit

A constructor so that we can create the plumed main object.

◆ ~DataFetchingObject()

virtual PLMD::DataFetchingObject::~DataFetchingObject ( )
inlinevirtual

Member Function Documentation

◆ activate()

bool PLMD::DataFetchingObject::activate ( ) const

◆ create()

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

◆ findAction()

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

Find the action that calculates a particular value.

◆ finishDataGrab()

virtual void PLMD::DataFetchingObject::finishDataGrab ( )
pure virtual

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

Implemented in PLMD::DataFetchingObjectTyped< T >.

◆ get_rank()

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

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 )
static

Return the shape required for a particular key.

◆ setData()

virtual void PLMD::DataFetchingObject::setData ( const std::string & key,
const std::string & type,
const TypesafePtr & outval )
pure virtual

Set the pointer to the data.

Implemented in PLMD::DataFetchingObjectTyped< T >.

Member Data Documentation

◆ myactions

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

Pointers to the various actions required by the grabber.

◆ myvalues

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

The values required by the user.

◆ plumed

PlumedMain& PLMD::DataFetchingObject::plumed
protected

A copy of the plumed main object.


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