56#ifndef GUM_ARG_MAX_SET_H
57#define GUM_ARG_MAX_SET_H
77 template <
typename GUM_SCALAR_VAL,
typename GUM_SCALAR_SEQ >
93 ArgMaxSet(
const GUM_SCALAR_VAL& val,
const GUM_SCALAR_SEQ& elem);
113 void operator delete(
void* p) {
165 return !(*
this == compared);
172 return _val_ < compared.
value() ? true :
false;
176 return compared < *
this;
180 return !(*
this > compared);
184 return !(*
this < compared);
Outlined implementation of ArgMaxSet.
Class to handle efficiently argMaxSet.
bool operator>=(const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &compared) const
Ajout d'un élément.
Idx size() const
Gives the size.
const GUM_SCALAR_VAL & value() const
Returns the value on which comparison are made.
friend std::ostream & operator<<(std::ostream &streamy, const ArgMaxSet &objy)
bool operator<=(const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &compared) const
Ajout d'un élément.
SequenceIteratorSafe< GUM_SCALAR_SEQ > beginSafe() const
Iterator beginning.
ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > & operator=(const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &src)
Constructor.
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
Compares two ArgMaxSet to check if they are equals.
bool exists(const GUM_SCALAR_SEQ &elem) const
SequenceIteratorSafe< GUM_SCALAR_SEQ > endSafe() const
Iterator end.
bool operator!=(const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &compared) const
Ajout d'un élément.
const GUM_SCALAR_SEQ & operator[](const Idx i) const
Gives the ith element.
ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > & operator+=(const GUM_SCALAR_SEQ &elem)
Ajout d'un élément.
Sequence< GUM_SCALAR_SEQ > * _argMaxSeq_
The very bone of the ArgMaxSet.
bool operator<(const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &compared) const
Checks if val is lower or higher from the compared ArgMaxSet val.
std::string toString() const
static SmallObjectAllocator & instance()
void * allocate(const size_t &objectSize)
Allocates a block.
void deallocate(void *pDeallocatedObject, const size_t &objectSize)
Deallocates an object.
Size Idx
Type for indexes.
gum is the global namespace for all aGrUM entities
Header file of gum::Sequence, a class for storing (ordered) sequences of objects.
Headers of gum::SmallObjectAllocator.