![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
A class to store the optimal actions. More...
#include <agrum/FMDP/planning/actionSet.h>
Public Member Functions | |
| Size | size () const |
| Gives the size. | |
| bool | exists (const Idx &elem) const |
CNL | |
| ActionSet () | |
| Constructor. | |
| ActionSet (const ActionSet &src) | |
| Constructor. | |
| ActionSet & | operator= (const ActionSet &src) |
| Constructor. | |
| ~ActionSet () | |
| Destructor. | |
| void * | operator new (size_t s) |
| Allocators and Deallocators redefinition. | |
| void | operator delete (void *p) |
| Constructor. | |
Iterators | |
| SequenceIteratorSafe< Idx > | beginSafe () const |
| Iterator beginning. | |
| SequenceIteratorSafe< Idx > | endSafe () const |
| Iterator end. | |
Operators | |
| ActionSet & | operator+= (const Idx &elem) |
| Ajout d'un élément. | |
| ActionSet & | operator+= (const ActionSet &src) |
| Use to insert the content of another set inside this one. | |
| ActionSet & | operator-= (const ActionSet &src) |
| Use to insert the content of another set inside this one. | |
| const Idx & | operator[] (const Idx i) const |
| Gives the ith element. | |
| bool | operator== (const ActionSet &compared) const |
| Compares two ActionSet to check if they are equals. | |
| bool | operator!= (const ActionSet &compared) const |
| Ajout d'un élément. | |
Private Attributes | |
| Sequence< Idx > * | _actionSeq_ |
| The very bone of the ActionSet. | |
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 105 of file actionSet.h.
|
inline |
Constructor.
Definition at line 115 of file actionSet.h.
References ActionSet(), and _actionSeq_.
Referenced by ActionSet(), ActionSet(), ~ActionSet(), operator delete(), operator!=(), operator+=(), operator+=(), operator-=(), operator<<, operator=(), and operator==().
|
inline |
Constructor.
Definition at line 120 of file actionSet.h.
References ActionSet(), _actionSeq_, beginSafe(), and endSafe().
|
inline |
Destructor.
Definition at line 137 of file actionSet.h.
References ActionSet(), and _actionSeq_.
|
inline |
Iterator beginning.
Definition at line 161 of file actionSet.h.
References _actionSeq_.
Referenced by ActionSet(), gum::StructuredPlaner< double >::~StructuredPlaner(), operator+=(), operator-=(), operator=(), and operator==().
|
inline |
Iterator end.
Definition at line 166 of file actionSet.h.
References _actionSeq_.
Referenced by ActionSet(), gum::StructuredPlaner< double >::~StructuredPlaner(), operator+=(), operator-=(), operator=(), and operator==().
Definition at line 226 of file actionSet.h.
References _actionSeq_.
Referenced by operator==().
|
inline |
Constructor.
Definition at line 147 of file actionSet.h.
References ActionSet(), gum::SmallObjectAllocator::deallocate(), and gum::SmallObjectAllocator::instance().
|
inline |
Allocators and Deallocators redefinition.
Definition at line 145 of file actionSet.h.
References gum::SmallObjectAllocator::allocate(), and gum::SmallObjectAllocator::instance().
Ajout d'un élément.
Definition at line 217 of file actionSet.h.
References ActionSet().
Use to insert the content of another set inside this one.
Definition at line 186 of file actionSet.h.
References ActionSet(), _actionSeq_, beginSafe(), and endSafe().
Ajout d'un élément.
Definition at line 178 of file actionSet.h.
References ActionSet(), and _actionSeq_.
Use to insert the content of another set inside this one.
Definition at line 195 of file actionSet.h.
References ActionSet(), _actionSeq_, beginSafe(), and endSafe().
Constructor.
Definition at line 127 of file actionSet.h.
References ActionSet(), _actionSeq_, beginSafe(), and endSafe().
Compares two ActionSet to check if they are equals.
Definition at line 209 of file actionSet.h.
References ActionSet(), _actionSeq_, beginSafe(), endSafe(), and exists().
|
inline |
Gives the size.
Definition at line 224 of file actionSet.h.
References _actionSeq_.
Referenced by gum::E_GreedyDecider::stateOptimalPolicy(), and gum::SDYNA::takeAction().
|
friend |
Definition at line 232 of file actionSet.h.
References ActionSet(), _actionSeq_, and gum::SequenceImplementation< Key, std::is_scalar< Key >::value >::toString().
The very bone of the ActionSet.
Definition at line 230 of file actionSet.h.
Referenced by ActionSet(), ActionSet(), ~ActionSet(), beginSafe(), endSafe(), exists(), operator+=(), operator+=(), operator-=(), operator<<, operator=(), operator==(), operator[](), and size().