51#ifndef GUM_ACTION_SET_H
52#define GUM_ACTION_SET_H
75 template <
typename GUM_SCALAR >
82 const GUM_SCALAR&
operator()(
const GUM_SCALAR& x,
const GUM_SCALAR& y)
const {
83 if (x > y) {
return x; }
84 if (x < y) {
return y; }
147 void operator delete(
void* p) {
213 if (!compared.
exists(*iter))
return false;
Headers of the ITerminalNodePolicy.
ActionSet & operator+=(const Idx &elem)
Ajout d'un élément.
ActionSet(const ActionSet &src)
Constructor.
bool operator!=(const ActionSet &compared) const
Ajout d'un élément.
SequenceIteratorSafe< Idx > endSafe() const
Iterator end.
friend std::ostream & operator<<(std::ostream &streamy, const ActionSet &objy)
bool exists(const Idx &elem) const
ActionSet & operator+=(const ActionSet &src)
Use to insert the content of another set inside this one.
SequenceIteratorSafe< Idx > beginSafe() const
Iterator beginning.
ActionSet & operator-=(const ActionSet &src)
Use to insert the content of another set inside this one.
bool operator==(const ActionSet &compared) const
Compares two ActionSet to check if they are equals.
ActionSet & operator=(const ActionSet &src)
Constructor.
Sequence< Idx > * _actionSeq_
The very bone of the ActionSet.
const Idx & operator[](const Idx i) const
Gives the ith element.
Size size() const
Gives the size.
std::string toString() const
static SmallObjectAllocator & instance()
void * allocate(const size_t &objectSize)
Allocates a block.
void deallocate(void *pDeallocatedObject, const size_t &objectSize)
Deallocates an object.
Class for implementation of factored markov decision process.
This files contains several function objects that are not (yet) defined in the STL.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Size Idx
Type for indexes.
aGrUM's inline/outline selection
gum is the global namespace for all aGrUM entities
<agrum/FMDP/planning/actionSet.h>
const GUM_SCALAR & operator()(const GUM_SCALAR &x, const GUM_SCALAR &y) const