![]() |
aGrUM
0.16.0
|
Class to handle efficiently argMaxSet. More...
#include <agrum/multidim/patterns/argMaxSet.h>
Public Member Functions | |
Idx | size () const |
Gives the size. More... | |
const GUM_SCALAR_VAL & | value () const |
Returns the value on which comparison are made. More... | |
bool | exists (const GUM_SCALAR_SEQ &elem) const |
CNL | |
ArgMaxSet () | |
Constructor. More... | |
ArgMaxSet (const GUM_SCALAR_VAL &val, const GUM_SCALAR_SEQ &elem) | |
Constructor. More... | |
ArgMaxSet (const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &src) | |
Copy Constructor. More... | |
ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > & | operator= (const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &src) |
Constructor. More... | |
~ArgMaxSet () | |
Destructor. More... | |
void * | operator new (size_t s) |
Allocators and Deallocators redefinition. More... | |
void | operator delete (void *p) |
Constructor. More... | |
Iterators | |
SequenceIteratorSafe< GUM_SCALAR_SEQ > | beginSafe () const |
Iterator beginning. More... | |
SequenceIteratorSafe< GUM_SCALAR_SEQ > | endSafe () const |
Iterator end. More... | |
Operators | |
ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > & | operator+= (const GUM_SCALAR_SEQ &elem) |
Ajout d'un élément. More... | |
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. More... | |
const GUM_SCALAR_SEQ & | operator[] (const Idx i) const |
Gives the ith element. More... | |
bool | operator== (const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &compared) const |
Compares two ArgMaxSet to check if they are equals. More... | |
bool | operator!= (const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &compared) const |
Ajout d'un élément. More... | |
bool | operator< (const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &compared) const |
Checks if val is lower or higher from the compared ArgMaxSet val. More... | |
bool | operator> (const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &compared) const |
Ajout d'un élément. More... | |
bool | operator<= (const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &compared) const |
Ajout d'un élément. More... | |
bool | operator>= (const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &compared) const |
Ajout d'un élément. More... | |
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 57 of file argMaxSet.h.
gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::ArgMaxSet | ( | ) |
Constructor.
Definition at line 42 of file argMaxSet_tpl.h.
gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::ArgMaxSet | ( | const GUM_SCALAR_VAL & | val, |
const GUM_SCALAR_SEQ & | elem | ||
) |
Constructor.
Definition at line 51 of file argMaxSet_tpl.h.
References gum::SequenceImplementation< Key, Alloc, Gen >::insert().
gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::ArgMaxSet | ( | const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > & | src | ) |
Copy Constructor.
Definition at line 63 of file argMaxSet_tpl.h.
References gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator=(), and gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::value().
gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::~ArgMaxSet | ( | ) |
Destructor.
Definition at line 85 of file argMaxSet_tpl.h.
References gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator+=().
|
inline |
Iterator beginning.
Definition at line 108 of file argMaxSet.h.
References gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::__argMaxSeq, and gum::SequenceImplementation< Key, Alloc, Gen >::beginSafe().
Referenced by gum::StructuredPlaner< double >::__transferActionIds(), gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator+=(), and gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator==().
|
inline |
Iterator end.
Definition at line 115 of file argMaxSet.h.
References gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::__argMaxSeq, gum::SequenceImplementation< Key, Alloc, Gen >::endSafe(), and gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator+=().
Referenced by gum::StructuredPlaner< double >::__transferActionIds(), gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator+=(), and gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator==().
|
inline |
Definition at line 187 of file argMaxSet.h.
References gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::__argMaxSeq, and gum::SequenceImplementation< Key, Alloc, Gen >::exists().
Referenced by gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator==().
|
inline |
Constructor.
Definition at line 93 of file argMaxSet.h.
References gum::SmallObjectAllocator::deallocate(), and gum::SmallObjectAllocator::instance().
|
inline |
Allocators and Deallocators redefinition.
Definition at line 90 of file argMaxSet.h.
References gum::SmallObjectAllocator::allocate(), and gum::SmallObjectAllocator::instance().
|
inline |
Ajout d'un élément.
Definition at line 150 of file argMaxSet.h.
ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > & gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator+= | ( | const GUM_SCALAR_SEQ & | elem | ) |
Ajout d'un élément.
Definition at line 100 of file argMaxSet_tpl.h.
Referenced by gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::endSafe(), and gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::~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 111 of file argMaxSet_tpl.h.
References gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::beginSafe(), and gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::endSafe().
|
inline |
Checks if val is lower or higher from the compared ArgMaxSet val.
Definition at line 158 of file argMaxSet.h.
References gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::__val, and gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::value().
|
inline |
Ajout d'un élément.
Definition at line 166 of file argMaxSet.h.
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 74 of file argMaxSet_tpl.h.
References gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::value().
Referenced by gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::ArgMaxSet().
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 121 of file argMaxSet_tpl.h.
References gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::beginSafe(), gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::endSafe(), gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::exists(), and gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::value().
Referenced by gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator[]().
|
inline |
Ajout d'un élément.
Definition at line 162 of file argMaxSet.h.
|
inline |
Ajout d'un élément.
Definition at line 170 of file argMaxSet.h.
|
inline |
Gives the ith element.
Definition at line 141 of file argMaxSet.h.
References gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::__argMaxSeq, gum::SequenceImplementation< Key, Alloc, Gen >::atPos(), and gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator==().
|
inline |
Gives the size.
Definition at line 180 of file argMaxSet.h.
References gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::__argMaxSeq, and gum::SequenceImplementation< Key, Alloc, Gen >::size().
|
inline |
Returns the value on which comparison are made.
Definition at line 185 of file argMaxSet.h.
References gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::__val.
Referenced by gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::ArgMaxSet(), gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator<(), gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator=(), and gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator==().
|
friend |
Definition at line 197 of file argMaxSet.h.
|
private |
The very bone of the ArgMaxSet.
Definition at line 193 of file argMaxSet.h.
Referenced by gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::beginSafe(), gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::endSafe(), gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::exists(), gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator[](), and gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::size().
|
private |
Definition at line 194 of file argMaxSet.h.
Referenced by gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator<(), and gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::value().