Bridge++
Version 1.5.4
|
lists of actions at respective integrator levels. More...
#include <action_list.h>
Public Member Functions | |
ActionList (const int nlevel) | |
bool | append (const int level, Action *action) |
bool | append (const int level, unique_ptr< Action > &action) |
bool | append (const int level, const std::vector< Action * > &actions) |
bool | set_integrator_type (const int level, const std::string &type) |
bool | set_integrator_type (const std::string &type) |
ActionSet | get_actions () const |
ActionSet | get_actions (const int level) const |
std::string | get_integrator_type (const int level) const |
int | get_levels () const |
Static Public Attributes | |
static const std::string | class_name = "ActionList" |
Protected Attributes | |
Bridge::VerboseLevel | m_vl |
Private Attributes | |
int | m_Nlevels |
std::vector< ActionSet > | m_actions |
std::vector< std::string > | m_integrator_types |
lists of actions at respective integrator levels.
ActionList represents an array of lists of actions, each list holds a set of actions for the corresponding integrator level.
(the pointer to) an action is stored at a specified level by calling append() method. the type of integrator for individual level or all levels is set by set_integrator_type() method.
ActionList is to be passed to Builder_Integrator as an argument.
unique_ptr is introduced to avoid memory leaks [21 Mar 2015 Y.Namekawa]
Definition at line 40 of file action_list.h.
ActionList::ActionList | ( | const int | nlevel | ) |
Definition at line 19 of file action_list.cpp.
bool ActionList::append | ( | const int | level, |
Action * | action | ||
) |
Definition at line 27 of file action_list.cpp.
bool ActionList::append | ( | const int | level, |
unique_ptr< Action > & | action | ||
) |
Definition at line 41 of file action_list.cpp.
bool ActionList::append | ( | const int | level, |
const std::vector< Action * > & | actions | ||
) |
Definition at line 48 of file action_list.cpp.
ActionSet ActionList::get_actions | ( | ) | const |
Definition at line 89 of file action_list.cpp.
ActionSet ActionList::get_actions | ( | const int | level | ) | const |
Definition at line 102 of file action_list.cpp.
std::string ActionList::get_integrator_type | ( | const int | level | ) | const |
Definition at line 111 of file action_list.cpp.
int ActionList::get_levels | ( | ) | const |
Definition at line 120 of file action_list.cpp.
bool ActionList::set_integrator_type | ( | const int | level, |
const std::string & | type | ||
) |
Definition at line 64 of file action_list.cpp.
bool ActionList::set_integrator_type | ( | const std::string & | type | ) |
Definition at line 78 of file action_list.cpp.
|
static |
Definition at line 43 of file action_list.h.
|
private |
Definition at line 66 of file action_list.h.
|
private |
Definition at line 67 of file action_list.h.
|
private |
Definition at line 65 of file action_list.h.
|
protected |
Definition at line 62 of file action_list.h.