![]() |
aGrUM
0.14.2
|
A class to store the optimal actions. More...
#include <agrum/FMDP/planning/actionSet.h>
Public Member Functions | |
Size | size () const |
Gives the size. More... | |
bool | exists (const Idx &elem) const |
CNL | |
ActionSet () | |
Constructor. More... | |
ActionSet (const ActionSet &src) | |
Constructor. More... | |
ActionSet & | operator= (const ActionSet &src) |
Constructor. More... | |
~ActionSet () | |
Destructor. More... | |
void * | operator new (size_t s) |
Allocators and Deallocators redefinition. More... | |
void | operator delete (void *p) |
Constructor. More... | |
Iterators | |
SequenceIteratorSafe< Idx > | beginSafe () const |
Iterator beginning. More... | |
SequenceIteratorSafe< Idx > | endSafe () const |
Iterator end. More... | |
Operators | |
ActionSet & | operator+= (const Idx &elem) |
Ajout d'un élément. More... | |
ActionSet & | operator+= (const ActionSet &src) |
Use to insert the content of another set inside this one. More... | |
ActionSet & | operator-= (const ActionSet &src) |
Use to insert the content of another set inside this one. More... | |
const Idx & | operator[] (const Idx i) const |
Gives the ith element. More... | |
bool | operator== (const ActionSet &compared) const |
Compares two ActionSet to check if they are equals. More... | |
bool | operator!= (const ActionSet &compared) const |
Ajout d'un élément. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &streamy, const ActionSet &objy) |
A class to store the optimal actions.
Stores the ids of optimal actions. To be used as leaves on optimal policy tree or function graph
Definition at line 85 of file actionSet.h.
|
inline |
Constructor.
Definition at line 95 of file actionSet.h.
|
inline |
Constructor.
Definition at line 100 of file actionSet.h.
References beginSafe(), endSafe(), and gum::SequenceImplementation< Key, Alloc, Gen >::insert().
|
inline |
Destructor.
Definition at line 117 of file actionSet.h.
|
inline |
Iterator beginning.
Definition at line 142 of file actionSet.h.
Referenced by ActionSet(), operator+=(), operator-=(), operator=(), operator==(), and gum::StructuredPlaner< double >::optimalPolicy2String().
|
inline |
Iterator end.
Definition at line 149 of file actionSet.h.
Referenced by ActionSet(), operator+=(), operator-=(), operator=(), operator==(), and gum::StructuredPlaner< double >::optimalPolicy2String().
Definition at line 210 of file actionSet.h.
Referenced by operator==().
|
inline |
Constructor.
Definition at line 128 of file actionSet.h.
References gum::SmallObjectAllocator::deallocate(), and gum::SmallObjectAllocator::instance().
|
inline |
Allocators and Deallocators redefinition.
Definition at line 125 of file actionSet.h.
References gum::SmallObjectAllocator::allocate(), and gum::SmallObjectAllocator::instance().
Ajout d'un élément.
Definition at line 199 of file actionSet.h.
Ajout d'un élément.
Definition at line 161 of file actionSet.h.
Use to insert the content of another set inside this one.
Definition at line 169 of file actionSet.h.
References beginSafe(), and endSafe().
Use to insert the content of another set inside this one.
Definition at line 178 of file actionSet.h.
References beginSafe(), and endSafe().
Constructor.
Definition at line 107 of file actionSet.h.
References beginSafe(), endSafe(), and gum::SequenceImplementation< Key, Alloc, Gen >::insert().
Compares two ActionSet to check if they are equals.
Definition at line 192 of file actionSet.h.
References beginSafe(), endSafe(), and exists().
Gives the ith element.
Definition at line 187 of file actionSet.h.
|
inline |
Gives the size.
Definition at line 208 of file actionSet.h.
Referenced by gum::IDecisionStrategy::initialize(), gum::E_GreedyDecider::stateOptimalPolicy(), and gum::SDYNA::takeAction().
|
friend |
Definition at line 216 of file actionSet.h.
The very bone of the ActionSet.
Definition at line 214 of file actionSet.h.