#include <InitSequencer.h>

Definition at line 148 of file InitSequencer.h.
Public Types | |
| typedef std::vector < std::string > | DepList |
Public Member Functions | |
| InitStep (const std::string &the_namespace, const std::string &name) | |
| InitStep (const std::string &the_namespace, const std::string &name, int depsize,...) | |
| InitStep (const std::string &the_namespace, const std::string &name, const DepList &deps) | |
| virtual | ~InitStep () |
| virtual int | run () |
| Run this component. | |
| bool | dep_are_satisfied () |
| |
| const DepList & | dependencies () |
| std::string | name () |
| bool | done () |
| int | time () |
Protected Member Functions | |
| virtual int | run_component ()=0 |
| Override this to start the component. | |
Protected Attributes | |
| bool | done_ |
Private Member Functions | |
| void | add_dep (const std::string &dep) |
Private Attributes | |
| std::string | name_ |
| DepList | dependencies_ |
| bool | mark_ |
| int | time_ |
Friends | |
| class | InitSequencer |
| typedef std::vector<std::string> oasys::InitStep::DepList |
Definition at line 152 of file InitSequencer.h.
| oasys::InitStep::InitStep | ( | const std::string & | the_namespace, | |
| const std::string & | name | |||
| ) |
Takes a list of depsize (const char*) dependency names.
Definition at line 294 of file InitSequencer.cc.
| oasys::InitStep::InitStep | ( | const std::string & | the_namespace, | |
| const std::string & | name, | |||
| int | depsize, | |||
| ... | ||||
| ) |
| oasys::InitStep::InitStep | ( | const std::string & | the_namespace, | |
| const std::string & | name, | |||
| const DepList & | deps | |||
| ) |
Definition at line 322 of file InitSequencer.cc.
| virtual oasys::InitStep::~InitStep | ( | ) | [inline, virtual] |
Definition at line 163 of file InitSequencer.h.
| int oasys::InitStep::run | ( | ) | [virtual] |
Run this component.
Returns 0 on no error.
Reimplemented in oasys::InitConfigStep.
Definition at line 334 of file InitSequencer.cc.
References done_, and run_component().
Referenced by oasys::InitSequencer::run_steps().
| bool oasys::InitStep::dep_are_satisfied | ( | ) |
Definition at line 346 of file InitSequencer.cc.
References dependencies_.
Referenced by oasys::InitSequencer::run_steps().
| const DepList& oasys::InitStep::dependencies | ( | ) | [inline] |
Definition at line 175 of file InitSequencer.h.
References dependencies_.
Referenced by oasys::InitSequencer::mark_dep(), oasys::InitSequencer::print_dot(), and oasys::InitSequencer::topo_sort().
| std::string oasys::InitStep::name | ( | ) | [inline] |
Definition at line 176 of file InitSequencer.h.
References name_.
Referenced by oasys::InitSequencer::add_step(), oasys::InitSequencer::dfs(), oasys::InitSequencer::mark_dep(), oasys::InitSequencer::print_dot(), oasys::InitSequencer::run_steps(), and oasys::InitSequencer::topo_sort().
| bool oasys::InitStep::done | ( | ) | [inline] |
Definition at line 177 of file InitSequencer.h.
References done_.
Referenced by oasys::InitSequencer::run_steps().
| int oasys::InitStep::time | ( | ) | [inline] |
Definition at line 178 of file InitSequencer.h.
References time_.
Referenced by oasys::InitStepSort::operator()(), and oasys::InitSequencer::run_steps().
| virtual int oasys::InitStep::run_component | ( | ) | [protected, pure virtual] |
| void oasys::InitStep::add_dep | ( | const std::string & | dep | ) | [inline, private] |
friend class InitSequencer [friend] |
Definition at line 149 of file InitSequencer.h.
bool oasys::InitStep::done_ [protected] |
Definition at line 181 of file InitSequencer.h.
Referenced by oasys::InitConfigStep::configuration_done(), done(), and run().
std::string oasys::InitStep::name_ [private] |
DepList oasys::InitStep::dependencies_ [private] |
Definition at line 188 of file InitSequencer.h.
Referenced by add_dep(), dep_are_satisfied(), dependencies(), and InitStep().
bool oasys::InitStep::mark_ [private] |
Definition at line 190 of file InitSequencer.h.
Referenced by oasys::InitSequencer::mark_dep(), and oasys::InitSequencer::run_steps().
int oasys::InitStep::time_ [private] |
Definition at line 191 of file InitSequencer.h.
Referenced by oasys::InitSequencer::dfs(), time(), and oasys::InitSequencer::topo_sort().
1.5.3