22 #ifndef __PLUMED_core_ActionSet_h
23 #define __PLUMED_core_ActionSet_h
39 public std::vector<Action*>
51 std::vector<T>
select()
const;
75 for(const_iterator p=begin();p!=end();++p){
76 T t=
dynamic_cast<T
>(*p);
77 if(t) ret.push_back(t);
84 for(const_iterator p=begin();p!=end();++p){
85 T t=
dynamic_cast<T
>(*p);
86 if(t && dynamic_cast<Action*>(t)->getLabel()==s)
return t;
93 std::vector<Action*> ret;
94 for(const_iterator p=begin();p!=end();++p){
95 T t=
dynamic_cast<T
>(*p);
96 if(!t) ret.push_back(*p);
std::vector< std::string > getLabelVector() const
get the labels in the form of a vector of strings
std::vector containing the sequence of Action to be done.
std::string getLabelList() const
get the labels in the list of actions in form of a string (useful to debug)
std::vector< T > select() const
Extract pointers to all Action's of type T To extract all Colvar , use select();.
std::vector< Action * > selectNot() const
Extract pointers to all Action's which are not of type T E.g., to extract all noncolvars, use selectNot();.
T selectWithLabel(const std::string &s) const
Extract pointer to an action labeled s, only if it is of type T.
void clearDelete()
Clear and deletes all the included pointers.