#include <InitSequencer.h>
Inheritance diagram for oasys::InitStep:
Definition at line 169 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 173 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 278 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 306 of file InitSequencer.cc.
virtual oasys::InitStep::~InitStep | ( | ) | [inline, virtual] |
Definition at line 184 of file InitSequencer.h.
int oasys::InitStep::run | ( | ) | [virtual] |
Run this component.
Returns 0 on no error.
Reimplemented in oasys::InitConfigStep.
Definition at line 318 of file InitSequencer.cc.
References done_, and run_component().
bool oasys::InitStep::dep_are_satisfied | ( | ) |
Definition at line 330 of file InitSequencer.cc.
References dependencies_.
const DepList& oasys::InitStep::dependencies | ( | ) | [inline] |
std::string oasys::InitStep::name | ( | ) | [inline] |
Definition at line 197 of file InitSequencer.h.
References name_.
Referenced by oasys::InitSequencer::add_step(), and oasys::InitSequencer::dfs().
bool oasys::InitStep::done | ( | ) | [inline] |
int oasys::InitStep::time | ( | ) | [inline] |
Definition at line 199 of file InitSequencer.h.
References time_.
Referenced by oasys::InitStepSort::operator()().
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 170 of file InitSequencer.h.
bool oasys::InitStep::done_ [protected] |
Definition at line 202 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 209 of file InitSequencer.h.
Referenced by add_dep(), dep_are_satisfied(), dependencies(), and InitStep().
bool oasys::InitStep::mark_ [private] |
Definition at line 211 of file InitSequencer.h.
int oasys::InitStep::time_ [private] |
Definition at line 212 of file InitSequencer.h.
Referenced by oasys::InitSequencer::dfs(), and time().