32 #ifndef GUM_OBSERVATION_H 33 #define GUM_OBSERVATION_H 35 #include <agrum/tools/core/hashTable.h> 36 #include <agrum/tools/core/smallobjectallocator/smallObjectAllocator.h> 38 #include <agrum/tools/variables/discreteVariable.h> 74 return SmallObjectAllocator::instance().allocate(s);
77 SmallObjectAllocator::instance().deallocate(p,
sizeof(Observation));
141 return varInst__.cbeginSafe();
150 return varInst__.cendSafe();
HashTable< const DiscreteVariable *, Idx > rInst__
void operator delete(void *p)
Default constructor.
double reward__
The reward associated to this transition.
INLINE void emplace(Args &&... args)
~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.
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.
std::string toString() const
HashTable< const DiscreteVariable *, Idx > varInst__
Table giving for every variables its instantiation.
void * operator new(size_t s)
Allocators and Deallocators redefinition.