Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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, 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< 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 ( const int  nlevel)

Definition at line 19 of file action_list.cpp.

Member Function Documentation

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.

Member Data Documentation

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

Definition at line 43 of file action_list.h.

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

Definition at line 66 of file action_list.h.

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

Definition at line 67 of file action_list.h.

int ActionList::m_Nlevels
private

Definition at line 65 of file action_list.h.

Bridge::VerboseLevel ActionList::m_vl
protected

Definition at line 62 of file action_list.h.


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