![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
Class to handle efficiently argMaxSet. More...
#include <agrum/tools/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 41 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 50 of file argMaxSet_tpl.h.
References gum::Set< Key, Alloc >::emplace().
gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::ArgMaxSet | ( | const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > & | src | ) |
Copy Constructor.
Definition at line 62 of file argMaxSet_tpl.h.
References gum::Set< Key, Alloc >::emplace().
gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::~ArgMaxSet | ( | ) |
Destructor.
Definition at line 84 of file argMaxSet_tpl.h.
References gum::Set< Key, Alloc >::emplace().
|
inline |
Iterator beginning.
Definition at line 107 of file argMaxSet.h.
|
inline |
Iterator end.
Definition at line 112 of file argMaxSet.h.
|
inline |
Definition at line 173 of file argMaxSet.h.
|
inline |
Constructor.
Definition at line 91 of file argMaxSet.h.
|
inline |
Allocators and Deallocators redefinition.
Definition at line 90 of file argMaxSet.h.
|
inline |
Ajout d'un élément.
Definition at line 141 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 98 of file argMaxSet_tpl.h.
References gum::Set< Key, Alloc >::emplace().
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 108 of file argMaxSet_tpl.h.
References gum::Set< Key, Alloc >::emplace().
|
inline |
Checks if val is lower or higher from the compared ArgMaxSet val.
Definition at line 148 of file argMaxSet.h.
References gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::_val_.
|
inline |
Ajout d'un élément.
Definition at line 154 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 72 of file argMaxSet_tpl.h.
References gum::Set< Key, Alloc >::emplace().
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 119 of file argMaxSet_tpl.h.
References gum::Set< Key, Alloc >::emplace().
|
inline |
Ajout d'un élément.
Definition at line 151 of file argMaxSet.h.
|
inline |
Ajout d'un élément.
Definition at line 157 of file argMaxSet.h.
|
inline |
Gives the ith element.
Definition at line 135 of file argMaxSet.h.
|
inline |
Gives the size.
Definition at line 166 of file argMaxSet.h.
|
inline |
Returns the value on which comparison are made.
Definition at line 171 of file argMaxSet.h.
References gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::_val_.
|
friend |
Definition at line 181 of file argMaxSet.h.
|
private |
The very bone of the ArgMaxSet.
Definition at line 177 of file argMaxSet.h.
|
private |
Definition at line 178 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().