![]() |
aGrUM 3.1.1
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. | |
| auto | operator<=> (const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &compared) const |
| Ordering comparisons based on val (C++20 spaceship operator). | |
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 62 of file argMaxSet_tpl.h.
References ArgMaxSet(), and _argMaxSeq_.
Referenced by ArgMaxSet(), ArgMaxSet(), ArgMaxSet(), ~ArgMaxSet(), operator delete(), operator new(), 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 71 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 83 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 105 of file argMaxSet_tpl.h.
References ArgMaxSet(), and _argMaxSeq_.
| SequenceIteratorSafe< GUM_SCALAR_SEQ > gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::beginSafe | ( | ) | const |
Iterator beginning.
Definition at line 170 of file argMaxSet_tpl.h.
References _argMaxSeq_.
Referenced by gum::StructuredPlaner< GUM_ELEMENT >::_transferActionIds_(), operator+=(), and operator==().
| SequenceIteratorSafe< GUM_SCALAR_SEQ > gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::endSafe | ( | ) | const |
Iterator end.
Definition at line 176 of file argMaxSet_tpl.h.
References _argMaxSeq_.
Referenced by gum::StructuredPlaner< GUM_ELEMENT >::_transferActionIds_(), operator+=(), and operator==().
| bool gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::exists | ( | const GUM_SCALAR_SEQ & | elem | ) | const |
Definition at line 186 of file argMaxSet_tpl.h.
References _argMaxSeq_.
Referenced by operator==().
| void gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator delete | ( | void * | p | ) |
Constructor.
Definition at line 162 of file argMaxSet_tpl.h.
References ArgMaxSet(), gum::SmallObjectAllocator::deallocate(), and gum::SmallObjectAllocator::instance().
| void * gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator new | ( | size_t | s | ) |
Allocators and Deallocators redefinition.
Definition at line 157 of file argMaxSet_tpl.h.
References ArgMaxSet(), gum::SmallObjectAllocator::allocate(), and gum::SmallObjectAllocator::instance().
| 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 129 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 | ) |
| auto gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator<=> | ( | const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > & | compared | ) | const |
Ordering comparisons based on val (C++20 spaceship operator).
Definition at line 151 of file argMaxSet_tpl.h.
References ArgMaxSet(), and value().
| 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 93 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 140 of file argMaxSet_tpl.h.
References ArgMaxSet(), _argMaxSeq_, _val_, beginSafe(), endSafe(), exists(), and value().
| const GUM_SCALAR_SEQ & gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::operator[] | ( | const Idx | i | ) | const |
| Idx gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::size | ( | ) | const |
| const GUM_SCALAR_VAL & gum::ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ >::value | ( | ) | const |
Returns the value on which comparison are made.
Definition at line 181 of file argMaxSet_tpl.h.
References _val_.
Referenced by ArgMaxSet(), operator<<, operator<=>(), operator=(), and operator==().
|
friend |
Definition at line 185 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 181 of file argMaxSet.h.
Referenced by ArgMaxSet(), ArgMaxSet(), ArgMaxSet(), ~ArgMaxSet(), beginSafe(), endSafe(), exists(), operator+=(), operator+=(), operator<<, operator=(), operator==(), and size().
|
private |
Definition at line 182 of file argMaxSet.h.
Referenced by ArgMaxSet(), ArgMaxSet(), operator=(), operator==(), and value().