28#ifndef __ADS_LinkedHashSet
29 #define __ADS_LinkedHashSet
65template<
class T ,
class H = std::hash< T > >
84 [[nodiscard]] std::size_t
size(
void )
const;
87 [[nodiscard]]
bool empty(
void )
const;
90 [[nodiscard]]
bool contains(
const T & x )
const;
147 return( f_order.begin() );
162 [[nodiscard]]
bool indexed(
void )
const;
175#include "ADS/set/impl/LinkedHashSet.tpp"
The hash table with lists of overflow of section 7.2.1, a realization of the DICTIONARY [see ADT....
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
The LIST of the book: a SEQUENCE [see ADT.h] realized as a bidirectional circular list of cells with ...
The operations of chapter 8 on any SET that can be copied and has the foreach, forEach( f ): the unio...
a hash table with lists of overflow
Definition ChainedHashTable.h:103
void forEach(F &&f) const
f( x ) on the items in the order of insertion, time
void insert(const T &x)
into the set: a new item goes to the end of the order, and an item already there keeps its place
bool contains(const T &x) const
whether is in the set, by a search in the table
T value_type
the items
Definition LinkedHashSet.h:136
const_iterator cbegin(void) const
as begin()
Definition LinkedHashSet.h:152
const T & const_reference
a constant reference
Definition LinkedHashSet.h:140
const T & reference
a constant reference
Definition LinkedHashSet.h:139
std::ptrdiff_t difference_type
the distances
Definition LinkedHashSet.h:138
LinkedHashSet(void)
the empty set
const_iterator cend(void) const
as end()
Definition LinkedHashSet.h:154
const_iterator end(void) const
the iterator past the last item inserted
Definition LinkedHashSet.h:150
std::size_t size_type
the sizes
Definition LinkedHashSet.h:137
bool empty(void) const
whether the set has no item
const_iterator iterator
the same, constant
Definition LinkedHashSet.h:143
T Item
the type of the items
Definition LinkedHashSet.h:71
LinkedHashSet & operator=(const LinkedHashSet &)=delete
no assignment, which would copy the positions into the list of another set
LinkedHashSet(const LinkedHashSet &o)
a copy, with positions into its own list
typename List< T >::const_iterator const_iterator
the iterator of the list of the order, constant
Definition LinkedHashSet.h:142
const_iterator begin(void) const
the iterator on the first item inserted
Definition LinkedHashSet.h:146
std::size_t size(void) const
the number of items
void remove(const T &x)
out of the set, and out of the order
a SEQUENCE realized as a bidirectional circular list with a sentinel, its cells from a pool if Pooled
Definition List.h:118
Iterator< true > const_iterator
the iterator on the constant items
Definition List.h:324
Cell * Pos
a position is the address of a cell
Definition List.h:132