5#ifndef EVENT_LOOP_ALGS__WHITE_BOARD_SVC_H
6#define EVENT_LOOP_ALGS__WHITE_BOARD_SVC_H
78 const float*& values)
const;
88 template<
class T> T *
retrieve (
const std::string&
name)
const;
99 void setArray (
const std::string&
name,
const std::vector<float>& value);
101 const float *values);
139 const float*& values)
const;
153 const float *values);
174 template<
class T> T *WhiteBoardSvc ::
175 retrieve (
const std::string&
name)
const
#define RCU_ASSERT2_SOFT(x, y)
virtual const std::string & name() const
the interface for algorithms to access IWorker
T * retrieve(const std::string &name) const
returns: the content of the variable, casted to the given type guarantee: strong failures: variable n...
void setFloat(const std::string &name, float value)
returns: set/create a variable, assuming the given type guarantee: strong failures: given type not su...
void setTObject(TObject *object, bool swallow=true)
float getFloat(const std::string &name) const
returns: the content of the variable, assuming the given type guarantee: strong failures: variable no...
virtual TObject * doGetTObject(const std::string &name) const
void testInvariant() const
effects: test the invariant of this object guarantee: no-fail
ClassDef(WhiteBoardSvc, 1)
virtual const char * GetName() const
effects: return the name of this algorithm guarantee: no-fail
virtual void doGetArray(const std::string &name, std::size_t &size, const float *&values) const
void getArray(const std::string &name, std::size_t &size, const float *&values) const
virtual float doGetFloat(const std::string &name) const
returns: the content of the variable, assuming the given type guarantee: strong failures: variable no...
WhiteBoardSvc()
effects: standard constructor guarantee: strong failures: out of memory I rationale: this constructor...
virtual void doSetTObject(TObject *object, bool swallow)
void setArray(const std::string &name, const std::vector< float > &value)
void setArray(const std::string &name, std::size_t size, const float *values)
TObject * getTObject(const std::string &name) const
virtual void doSetArray(const std::string &name, std::size_t size, const float *values)
virtual bool doHasVar(const std::string &name) const
returns: whether we have the given variable guarantee: strong failures: out of memory II rationale: t...
virtual void doSetFloat(const std::string &name, float value)
returns: set/create a variable, assuming the given type guarantee: strong failures: given type not su...
bool hasVar(const std::string &name) const
returns: whether we have the given variable guarantee: strong failures: out of memory II
This module defines the arguments passed from the BATCH driver to the BATCH worker.
WhiteBoardSvc * getWhiteBoardSvc(IWorker *worker)
effects: get the whiteboard service for this worker guarantee: strong failures: formula service not c...