Public Member Functions | |
void | testInvariant () const |
WhiteBoardSvc () | |
bool | hasVar (const std::string &name) const |
float | getFloat (const std::string &name) const |
void | getArray (const std::string &name, std::size_t &size, const float *&values) const |
TObject * | getTObject (const std::string &name) const |
template<class T > | |
T * | retrieve (const std::string &name) const |
void | setFloat (const std::string &name, float value) |
void | setArray (const std::string &name, const std::vector< float > &value) |
void | setArray (const std::string &name, std::size_t size, const float *values) |
void | setTObject (TObject *object, bool swallow=true) |
virtual const char * | GetName () const |
EL::WhiteBoardSvc::WhiteBoardSvc | ( | ) |
effects: standard constructor guarantee: strong failures: out of memory I rationale: this constructor has to be public to allow root streaming. normally I would have made it protected to prevent the user from creating an object of base class type.
float EL::WhiteBoardSvc::getFloat | ( | const std::string & | name | ) | const |
returns: the content of the variable, assuming the given type guarantee: strong failures: variable not found failures: variable of wrong type failures: given type not supported postcondition(3): result != 0
virtual const char* EL::WhiteBoardSvc::GetName | ( | ) | const [virtual] |
effects: return the name of this algorithm guarantee: no-fail
bool EL::WhiteBoardSvc::hasVar | ( | const std::string & | name | ) | const |
returns: whether we have the given variable guarantee: strong failures: out of memory II
T * EL::WhiteBoardSvc::retrieve | ( | const std::string & | name | ) | const [inline] |
returns: the content of the variable, casted to the given type guarantee: strong failures: variable not found failures: variable of wrong type failures: TObject type not supported
no invariant used
void EL::WhiteBoardSvc::setFloat | ( | const std::string & | name, | |
float | value | |||
) |
returns: set/create a variable, assuming the given type guarantee: strong failures: given type not supported failures: variable can not be set failures: out of memory II requires(4): TObject != 0
void EL::WhiteBoardSvc::testInvariant | ( | ) | const |
effects: test the invariant of this object guarantee: no-fail
Reimplemented from EL::Algorithm.