56#ifndef GUM_ARG_MAX_SET_H
57#define GUM_ARG_MAX_SET_H
77 template < GUM_Numeric GUM_SCALAR_VAL, GUM_Numeric GUM_SCALAR_SEQ >
93 ArgMaxSet(
const GUM_SCALAR_VAL& val,
const GUM_SCALAR_SEQ& elem);
111 void*
operator new(
size_t s);
113 void operator delete(
void* p);
175 const GUM_SCALAR_VAL&
value()
const;
177 bool exists(
const GUM_SCALAR_SEQ& elem)
const;
Outlined implementation of ArgMaxSet.
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)
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
Compares two ArgMaxSet to check if they are equals.
bool exists(const GUM_SCALAR_SEQ &elem) const
auto operator<=>(const ArgMaxSet< GUM_SCALAR_VAL, GUM_SCALAR_SEQ > &compared) const
Ordering comparisons based on val (C++20 spaceship operator).
SequenceIteratorSafe< GUM_SCALAR_SEQ > endSafe() const
Iterator end.
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.
std::string toString() const
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.