![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
Class to handle efficiently argMaxSet. More...
#include <agrum/base/multidim/patterns/argMaxSet.h>
Public Member Functions | |
| Idx | size () const |
| Gives the size. | |
| const GUM_SCALAR_VAL & | value () const |
| Returns the value on which comparison are made. | |
| bool | exists (const GUM_SCALAR_SEQ &elem) const |
CNL | |
| ArgMaxSet () | |
| Constructor. | |
| ArgMaxSet (const GUM_SCALAR_VAL &val, const GUM_SCALAR_SEQ &elem) | |
| Constructor. | |
| ArgMaxSet (const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &src) | |
| Copy Constructor. | |
| ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > & | operator= (const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &src) |
| Constructor. | |
| ~ArgMaxSet () | |
| Destructor. | |
| void * | operator new (size_t s) |
| Allocators and Deallocators redefinition. | |
| void | operator delete (void *p) |
| Constructor. | |
Iterators | |
| SequenceIteratorSafe< GUM_SCALAR_SEQ > | beginSafe () const |
| Iterator beginning. | |
| SequenceIteratorSafe< GUM_SCALAR_SEQ > | endSafe () const |
| Iterator end. | |
Operators | |
| ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > & | operator+= (const GUM_SCALAR_SEQ &elem) |
| Ajout d'un élément. | |
| ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > & | operator+= (const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &src) |
| Use to insert the content of another set inside this one. | |
| const GUM_SCALAR_SEQ & | operator[] (const Idx i) const |
| Gives the ith element. | |
| bool | operator== (const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &compared) const |
| Compares two ArgMaxSet to check if they are equals. | |
| bool | operator!= (const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &compared) const |
| Ajout d'un élément. | |
| bool | operator< (const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &compared) const |
| Checks if val is lower or higher from the compared ArgMaxSet val. | |
| bool | operator> (const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &compared) const |
| Ajout d'un élément. | |
| bool | operator<= (const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &compared) const |
| Ajout d'un élément. | |
| bool | operator>= (const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &compared) const |
| Ajout d'un élément. | |
Private Attributes | |
| Sequence< GUM_SCALAR_SEQ > * | _argMaxSeq_ |
| The very bone of the ArgMaxSet. | |
| GUM_SCALAR_VAL | _val_ |
Friends | |
| std::ostream & | operator<< (std::ostream &streamy, const ArgMaxSet &objy) |
Class to handle efficiently argMaxSet.
A class containing the set of object assoicated to a maximum.
This set contains the ids of the obj
Definition at line 78 of file argMaxSet.h.
| gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::ArgMaxSet | ( | ) |
Constructor.
Definition at line 61 of file argMaxSet_tpl.h.
References ArgMaxSet(), and _argMaxSeq_.
Referenced by ArgMaxSet(), ArgMaxSet(), ArgMaxSet(), ~ArgMaxSet(), operator delete(), operator!=(), operator+=(), operator<(), operator<<, operator<=(), operator=(), operator==(), operator>(), and operator>=().
| gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::ArgMaxSet | ( | const GUM_SCALAR_VAL & | val, |
| const GUM_SCALAR_SEQ & | elem ) |
Constructor.
Definition at line 70 of file argMaxSet_tpl.h.
References ArgMaxSet(), _argMaxSeq_, and _val_.
| gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::ArgMaxSet | ( | const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > & | src | ) |
Copy Constructor.
Definition at line 82 of file argMaxSet_tpl.h.
References ArgMaxSet(), _argMaxSeq_, _val_, gum::operator+=(), and value().
| gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::~ArgMaxSet | ( | ) |
Destructor.
Definition at line 104 of file argMaxSet_tpl.h.
References ArgMaxSet(), and _argMaxSeq_.
|
inline |
Iterator beginning.
Definition at line 129 of file argMaxSet.h.
References _argMaxSeq_.
Referenced by gum::StructuredPlaner< GUM_SCALAR >::_transferActionIds_(), operator+=(), and operator==().
|
inline |
Iterator end.
Definition at line 134 of file argMaxSet.h.
References _argMaxSeq_.
Referenced by gum::StructuredPlaner< GUM_SCALAR >::_transferActionIds_(), operator+=(), and operator==().
|
inline |
Definition at line 199 of file argMaxSet.h.
References _argMaxSeq_.
Referenced by operator==().
|
inline |
Constructor.
Definition at line 113 of file argMaxSet.h.
References ArgMaxSet(), gum::SmallObjectAllocator::deallocate(), and gum::SmallObjectAllocator::instance().
|
inline |
Allocators and Deallocators redefinition.
Definition at line 111 of file argMaxSet.h.
References gum::SmallObjectAllocator::allocate(), and gum::SmallObjectAllocator::instance().
|
inline |
Ajout d'un élément.
Definition at line 164 of file argMaxSet.h.
References ArgMaxSet().
| ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > & gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator+= | ( | const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > & | src | ) |
Use to insert the content of another set inside this one.
Definition at line 128 of file argMaxSet_tpl.h.
References ArgMaxSet(), _argMaxSeq_, beginSafe(), and endSafe().
| ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > & gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator+= | ( | const GUM_SCALAR_SEQ & | elem | ) |
|
inline |
Checks if val is lower or higher from the compared ArgMaxSet val.
Definition at line 171 of file argMaxSet.h.
References ArgMaxSet(), _val_, and value().
|
inline |
Ajout d'un élément.
Definition at line 179 of file argMaxSet.h.
References ArgMaxSet().
| ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > & gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator= | ( | const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > & | src | ) |
Constructor.
Definition at line 92 of file argMaxSet_tpl.h.
References ArgMaxSet(), _argMaxSeq_, _val_, gum::operator+=(), and value().
| bool gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator== | ( | const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > & | compared | ) | const |
Compares two ArgMaxSet to check if they are equals.
Definition at line 139 of file argMaxSet_tpl.h.
References ArgMaxSet(), _argMaxSeq_, _val_, beginSafe(), endSafe(), exists(), and value().
|
inline |
Ajout d'un élément.
Definition at line 175 of file argMaxSet.h.
References ArgMaxSet().
|
inline |
Ajout d'un élément.
Definition at line 183 of file argMaxSet.h.
References ArgMaxSet().
|
inline |
|
inline |
|
inline |
Returns the value on which comparison are made.
Definition at line 197 of file argMaxSet.h.
References _val_.
Referenced by ArgMaxSet(), operator<(), operator<<, operator=(), and operator==().
|
friend |
Definition at line 207 of file argMaxSet.h.
References ArgMaxSet(), _argMaxSeq_, gum::SequenceImplementation< Key, std::is_scalar< Key >::value >::toString(), and value().
|
private |
The very bone of the ArgMaxSet.
Definition at line 203 of file argMaxSet.h.
Referenced by ArgMaxSet(), ArgMaxSet(), ArgMaxSet(), ~ArgMaxSet(), beginSafe(), endSafe(), exists(), operator+=(), operator+=(), operator<<, operator=(), operator==(), operator[](), and size().
|
private |
Definition at line 204 of file argMaxSet.h.
Referenced by ArgMaxSet(), ArgMaxSet(), operator<(), operator=(), operator==(), and value().