![]() |
aGrUM
0.16.0
|
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 88 of file actionSet.h.
|
inline |
Constructor.
Definition at line 98 of file actionSet.h.
|
inline |
Constructor.
Definition at line 103 of file actionSet.h.
References beginSafe(), endSafe(), and gum::SequenceImplementation< Key, Alloc, Gen >::insert().
|
inline |
Destructor.
Definition at line 120 of file actionSet.h.
|
inline |
Iterator beginning.
Definition at line 145 of file actionSet.h.
Referenced by ActionSet(), operator+=(), operator-=(), operator=(), operator==(), and gum::StructuredPlaner< double >::optimalPolicy2String().
|
inline |
Iterator end.
Definition at line 152 of file actionSet.h.
Referenced by ActionSet(), operator+=(), operator-=(), operator=(), operator==(), and gum::StructuredPlaner< double >::optimalPolicy2String().
Definition at line 213 of file actionSet.h.
Referenced by operator==().
|
inline |
Constructor.
Definition at line 131 of file actionSet.h.
References gum::SmallObjectAllocator::deallocate(), and gum::SmallObjectAllocator::instance().
|
inline |
Allocators and Deallocators redefinition.
Definition at line 128 of file actionSet.h.
References gum::SmallObjectAllocator::allocate(), and gum::SmallObjectAllocator::instance().
Ajout d'un élément.
Definition at line 202 of file actionSet.h.
Ajout d'un élément.
Definition at line 164 of file actionSet.h.
Use to insert the content of another set inside this one.
Definition at line 172 of file actionSet.h.
References beginSafe(), and endSafe().
Use to insert the content of another set inside this one.
Definition at line 181 of file actionSet.h.
References beginSafe(), and endSafe().
Constructor.
Definition at line 110 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 195 of file actionSet.h.
References beginSafe(), endSafe(), and exists().
Gives the ith element.
Definition at line 190 of file actionSet.h.
|
inline |
Gives the size.
Definition at line 211 of file actionSet.h.
Referenced by gum::IDecisionStrategy::initialize(), gum::E_GreedyDecider::stateOptimalPolicy(), and gum::SDYNA::takeAction().
|
friend |
Definition at line 219 of file actionSet.h.
The very bone of the ActionSet.
Definition at line 217 of file actionSet.h.