Bridge++  Ver. 2.0.2
action_list.h
Go to the documentation of this file.
1 
14 #ifndef ACTION_LIST_INCLUDED
15 #define ACTION_LIST_INCLUDED
16 
17 #include "Action/action.h"
18 
19 #include "IO/bridgeIO.h"
20 
38 typedef std::vector<Action *> ActionSet;
39 
41 {
42  public:
43  static const std::string class_name;
44 
45  public:
46  ActionList(const int nlevel);
47 
48  public:
49  bool append(const int level, Action *action);
50  bool append(const int level, const std::vector<Action *>& actions);
51 
52  bool set_integrator_type(const int level, const std::string& type);
53  bool set_integrator_type(const std::string& type); // for all levels
54 
55  ActionSet get_actions() const;
56  ActionSet get_actions(const int level) const;
57  std::string get_integrator_type(const int level) const;
58  int get_levels() const;
59 
60  protected:
62 
63  private:
64  int m_Nlevels;
65  std::vector<ActionSet> m_actions;
66  std::vector<std::string> m_integrator_types;
67 };
68 #endif
bridgeIO.h
ActionList::m_Nlevels
int m_Nlevels
Definition: action_list.h:64
ActionList::set_integrator_type
bool set_integrator_type(const int level, const std::string &type)
Definition: action_list.cpp:57
Action
Base class of HMC action class family.
Definition: action.h:36
action.h
ActionList::m_integrator_types
std::vector< std::string > m_integrator_types
Definition: action_list.h:66
ActionList::get_integrator_type
std::string get_integrator_type(const int level) const
Definition: action_list.cpp:104
ActionSet
std::vector< Action * > ActionSet
Definition: action_list.h:38
ActionList
lists of actions at respective integrator levels.
Definition: action_list.h:40
ActionList::m_actions
std::vector< ActionSet > m_actions
Definition: action_list.h:65
ActionList::append
bool append(const int level, Action *action)
Definition: action_list.cpp:27
ActionList::ActionList
ActionList(const int nlevel)
Definition: action_list.cpp:19
ActionList::m_vl
Bridge::VerboseLevel m_vl
Definition: action_list.h:61
ActionList::get_actions
ActionSet get_actions() const
Definition: action_list.cpp:82
Bridge::VerboseLevel
VerboseLevel
Definition: bridgeIO.h:42
ActionList::class_name
static const std::string class_name
Definition: action_list.h:43
Element_type::type
type
Definition: bridge_defs.h:41
ActionList::get_levels
int get_levels() const
Definition: action_list.cpp:113