Bridge++  Ver. 2.0.2
ActionList Class Reference

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, 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< ActionSetm_actions
 
std::vector< std::string > m_integrator_types
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ActionList()

ActionList::ActionList ( const int  nlevel)

Definition at line 19 of file action_list.cpp.

Member Function Documentation

◆ append() [1/2]

bool ActionList::append ( const int  level,
Action action 
)

Definition at line 27 of file action_list.cpp.

◆ append() [2/2]

bool ActionList::append ( const int  level,
const std::vector< Action * > &  actions 
)

Definition at line 41 of file action_list.cpp.

◆ get_actions() [1/2]

ActionSet ActionList::get_actions ( ) const

Definition at line 82 of file action_list.cpp.

◆ get_actions() [2/2]

ActionSet ActionList::get_actions ( const int  level) const

Definition at line 95 of file action_list.cpp.

◆ get_integrator_type()

std::string ActionList::get_integrator_type ( const int  level) const

Definition at line 104 of file action_list.cpp.

◆ get_levels()

int ActionList::get_levels ( ) const

Definition at line 113 of file action_list.cpp.

◆ set_integrator_type() [1/2]

bool ActionList::set_integrator_type ( const int  level,
const std::string &  type 
)

Definition at line 57 of file action_list.cpp.

◆ set_integrator_type() [2/2]

bool ActionList::set_integrator_type ( const std::string &  type)

Definition at line 71 of file action_list.cpp.

Member Data Documentation

◆ class_name

const std::string ActionList::class_name = "ActionList"
static

Definition at line 43 of file action_list.h.

◆ m_actions

std::vector<ActionSet> ActionList::m_actions
private

Definition at line 65 of file action_list.h.

◆ m_integrator_types

std::vector<std::string> ActionList::m_integrator_types
private

Definition at line 66 of file action_list.h.

◆ m_Nlevels

int ActionList::m_Nlevels
private

Definition at line 64 of file action_list.h.

◆ m_vl

Bridge::VerboseLevel ActionList::m_vl
protected

Definition at line 61 of file action_list.h.


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