52#ifndef GUM_OBSERVATION_H
53#define GUM_OBSERVATION_H
101 void operator delete(
void* p) {
Base class for discrete random variable.
Safe Const Iterators for hashtables.
The class for generic Hash Tables.
HashTableConstIteratorSafe< const DiscreteVariable *, Idx > cbeginVariablesSafe() const
Returns an const safe iterator on the beginning of the list of variables in this observation.
double _reward_
The reward associated to this transition.
~Observation()
Default destructor.
INLINE Idx modality(const DiscreteVariable *var) const
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.
Observation()
Default constructor.
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.
std::string toString() const
HashTableConstIteratorSafe< const DiscreteVariable *, Idx > cendVariablesSafe() const
Returns an const safe iterator on the end of the list of variables in this observation.
INLINE void setRModality(const DiscreteVariable *var, Idx modality)
Returns the modality assumed by the given variable in this observation.
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.
HashTable< const DiscreteVariable *, Idx > _rInst_
static SmallObjectAllocator & instance()
void * allocate(const size_t &objectSize)
Allocates a block.
void deallocate(void *pDeallocatedObject, const size_t &objectSize)
Deallocates an object.
Base class for discrete random variable.
Size Idx
Type for indexes.
gum is the global namespace for all aGrUM entities
Headers of gum::SmallObjectAllocator.