29 #ifndef GUM_OBSERVATION_H 30 #define GUM_OBSERVATION_H 70 void*
operator new(
size_t s) {
73 void operator delete(
void* p) {
164 #endif // GUM_OBSERVATION_H double __reward
The reward associated to this transition.
Headers of gum::SmallObjectAllocator.
Base class for discrete random variable.
Safe Const Iterators for hashtables.
~Observation()
Default destructor.
HashTableConstIteratorSafe< const DiscreteVariable *, Idx > cendVariablesSafe() const
Returns an const safe iterator on the end of the list of variables in this observation.
Base class for discrete random variable.
gum is the global namespace for all aGrUM entities
The class for generic Hash Tables.
Observation()
Default constructor.
HashTableConstIteratorSafe< const DiscreteVariable *, Idx > cbeginVariablesSafe() const
Returns an const safe iterator on the beginning of the list of variables in this observation.
void setReward(double reward)
Returns the modality assumed by the given variable in this observation.
double reward() const
Returns the modality assumed by the given variable in this observation.
INLINE void setRModality(const DiscreteVariable *var, Idx modality)
Returns the modality assumed by the given variable in this observation.
INLINE Idx rModality(const DiscreteVariable *var) const
Returns the modality assumed by the given variable in this observation.
std::string toString() const
HashTable< const DiscreteVariable *, Idx > __rInst
INLINE Idx modality(const DiscreteVariable *var) const
Returns the modality assumed by the given variable in this observation.
void deallocate(void *pDeallocatedObject, const size_t &objectSize)
Deallocates an object.
Size Idx
Type for indexes.
void * allocate(const size_t &objectSize)
Allocates a block.
static SmallObjectAllocator & instance()
HashTable< const DiscreteVariable *, Idx > __varInst
Table giving for every variables its instantiation.
INLINE void setModality(const DiscreteVariable *var, Idx modality)
Sets the modality assumed by the given variable in this observation.
Class hash tables iterators.