![]() |
aGrUM 3.0.0
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. | |
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 98 of file actionSet.h.
| INLINE gum::ActionSet::ActionSet | ( | ) |
Constructor.
Definition at line 48 of file actionSet_inl.h.
References ActionSet(), and _actionSeq_.
Referenced by ActionSet(), ActionSet(), ~ActionSet(), operator delete(), operator+=(), operator+=(), operator-=(), operator<<, operator=(), and operator==().
| INLINE gum::ActionSet::ActionSet | ( | const ActionSet & | src | ) |
Constructor.
Definition at line 53 of file actionSet_inl.h.
References ActionSet(), _actionSeq_, beginSafe(), and endSafe().
| INLINE gum::ActionSet::~ActionSet | ( | ) |
Destructor.
Definition at line 67 of file actionSet_inl.h.
References ActionSet(), and _actionSeq_.
| INLINE SequenceIteratorSafe< Idx > gum::ActionSet::beginSafe | ( | ) | const |
Iterator beginning.
Definition at line 80 of file actionSet_inl.h.
References _actionSeq_.
Referenced by ActionSet(), operator+=(), operator-=(), operator=(), operator==(), and gum::StructuredPlaner< double >::optimalPolicy2String().
| INLINE SequenceIteratorSafe< Idx > gum::ActionSet::endSafe | ( | ) | const |
Iterator end.
Definition at line 84 of file actionSet_inl.h.
References _actionSeq_.
Referenced by ActionSet(), operator+=(), operator-=(), operator=(), operator==(), and gum::StructuredPlaner< double >::optimalPolicy2String().
Definition at line 113 of file actionSet_inl.h.
References _actionSeq_.
Referenced by operator==().
| INLINE void gum::ActionSet::operator delete | ( | void * | p | ) |
Constructor.
Definition at line 76 of file actionSet_inl.h.
References ActionSet(), gum::SmallObjectAllocator::deallocate(), and gum::SmallObjectAllocator::instance().
| INLINE void * gum::ActionSet::operator new | ( | size_t | s | ) |
Allocators and Deallocators redefinition.
Definition at line 72 of file actionSet_inl.h.
References gum::SmallObjectAllocator::allocate(), and gum::SmallObjectAllocator::instance().
Use to insert the content of another set inside this one.
Definition at line 91 of file actionSet_inl.h.
References ActionSet(), _actionSeq_, beginSafe(), and endSafe().
Ajout d'un élément.
Definition at line 86 of file actionSet_inl.h.
References ActionSet(), and _actionSeq_.
Use to insert the content of another set inside this one.
Definition at line 97 of file actionSet_inl.h.
References ActionSet(), _actionSeq_, beginSafe(), and endSafe().
Constructor.
Definition at line 60 of file actionSet_inl.h.
References ActionSet(), _actionSeq_, beginSafe(), and endSafe().
Compares two ActionSet to check if they are equals.
Definition at line 103 of file actionSet_inl.h.
References ActionSet(), _actionSeq_, beginSafe(), endSafe(), and exists().
| INLINE Size gum::ActionSet::size | ( | ) | const |
Gives the size.
Definition at line 111 of file actionSet_inl.h.
References _actionSeq_.
Referenced by gum::E_GreedyDecider::stateOptimalPolicy(), and gum::SDYNA::takeAction().
|
friend |
Definition at line 115 of file actionSet_inl.h.
References ActionSet(), _actionSeq_, and gum::SequenceImplementation< Key, std::is_scalar< Key >::value >::toString().
The very bone of the ActionSet.
Definition at line 186 of file actionSet.h.
Referenced by ActionSet(), ActionSet(), ~ActionSet(), beginSafe(), endSafe(), exists(), operator+=(), operator+=(), operator-=(), operator<<, operator=(), operator==(), operator[](), and size().