22 #ifndef __PLUMED_core_ActionWithArguments_h
23 #define __PLUMED_core_ActionWithArguments_h
virtual void calculateNumericalDerivatives(ActionWithValue *a=NULL)
Calculate the numerical derivatives N.B.
void parseArgumentList(const std::string &key, std::vector< Value * > &args)
Parse a list of arguments.
bool lockRequestArguments
A class for holding the value of a function together with its derivatives.
void interpretArgumentList(const std::vector< std::string > &c, std::vector< Value * > &arg)
Convert a list of argument names into a list of pointers to the values.
void requestArguments(const std::vector< Value * > &arg)
Setup the dependencies.
double difference(int, double, double) const
Takes the difference taking into account pbc for arg i.
static void registerKeywords(Keywords &keys)
Registers the list of keywords.
Value * getPntrToArgument(const unsigned n)
Return a pointer to specific argument.
This is used to create PLMD::Action objects that take the output from some other Action as input...
std::vector< Value * > arguments
Used to create a PLMD::Action that has some scalar or vectorial output that may or may not have some ...
This class holds the keywords and their documentation.
This class is used to bring the relevant information to the Action constructor.
double bringBackInPbc(int i, double d1) const
Takes one value and brings it back into the pbc of argument i.
std::vector< Value * > & getArguments()
Returns an array of pointers to the arguments.
void addForcesOnArguments(const std::vector< double > &forces)
Add forces to arguments (used in apply)
virtual ~ActionWithArguments()
Base class for all the input Actions.
double getProjection(unsigned i, unsigned j) const
Get the scalar product between the gradients of two variables.
double getArgument(const unsigned n) const
Returns the value of an argument.
ActionWithArguments(const ActionOptions &)
void expandArgKeywordInPDB(PDB &pdb)
This changes the arg keyword in the pdb file.
unsigned getNumberOfArguments() const
Returns the number of arguments.