|
Dynalib Utils
|
#include <DynaHashSet.h>


Public Member Functions | |
| DynaHashSet () | |
| DynaHashSet (int size) | |
| virtual | ~DynaHashSet () |
| DynaHashSet (const DynaHashSet< V > &other) | |
| DynaHashSet< V > * | copy () override |
| int | count () const |
| int | capacity () const |
| int | freeCells () const |
| bool | isEmpty () const |
| bool | contains (V *obj) |
| bool | isOwnsMembers () const |
| void | setOwnsMembers (bool ownsMembers) |
| SetEntry< V > * | getEntry (V *value) |
| SetEntry< V > * | getEntry (V value) |
| bool | add (V *value) |
| bool | add (V value) |
| V * | remove (V *value) |
| V * | remove (V value) |
| void | deleteEntry (V *value) |
| void | deleteEntry (V value) |
| SetEntry< V > * | removeEntry (SetEntry< V > *entry) |
| void | clear () |
| DynaSetIter< V > | begin () |
| DynaSetIter< V > | end () |
| SetIter< V > | values () |
Public Member Functions inherited from ICopyable< DynaHashSet< V > > | |
| ICopyable ()=default | |
| virtual | ~ICopyable ()=default |
Static Public Attributes | |
| static V | nullObjectInstance |
| static V * | nullObject = &nullObjectInstance |
Protected Member Functions | |
| void | _init (int size) |
| int | _getHashCode (const V *value) const |
| void | _reHash (int newCapacity) |
| int | _getTableIndex (V *value) |
Protected Attributes | |
| SetEntry< V > ** | _table = nullptr |
| int | _count |
| int | _capacity |
| int | _freeCells |
| int | _modCount |
| bool | _ownsMembers |
Static Protected Attributes | |
| static constexpr int | INITIAL_SIZE = 3 |
| static constexpr double | LOAD_FACTOR = 0.75 |
| static SetEntry< V > | deletedObjectInstance = SetEntry<V>(DynaHashSet<V>::nullObject, false) |
| static SetEntry< V > * | deletedObject = &deletedObjectInstance |
Friends | |
| class | SetEntry< V > |
| class | DynaSetIter< V > |
| class | SetIter< V > |
|
explicit |
DynaHashMap Constructor
| K | |
| V |
|
explicit |
|
virtual |
| DynaHashSet< V >::DynaHashSet | ( | const DynaHashSet< V > & | other | ) |
|
protected |
|
protected |
|
protected |
|
protected |
| bool DynaHashSet< V >::add | ( | V * | value | ) |
| bool DynaHashSet< V >::add | ( | V | value | ) |
| DynaSetIter< V > DynaHashSet< V >::begin | ( | ) |
|
inline |
| void DynaHashSet< V >::clear | ( | ) |
|
inline |
|
overridevirtual |
Implements ICopyable< DynaHashSet< V > >.
|
inline |
| void DynaHashSet< V >::deleteEntry | ( | V * | value | ) |
| void DynaHashSet< V >::deleteEntry | ( | V | value | ) |
| DynaSetIter< V > DynaHashSet< V >::end | ( | ) |
|
inline |
| SetEntry< V > * DynaHashSet< V >::getEntry | ( | V * | value | ) |
| SetEntry< V > * DynaHashSet< V >::getEntry | ( | V | value | ) |
|
inline |
|
inline |
| V * DynaHashSet< V >::remove | ( | V * | value | ) |
| V * DynaHashSet< V >::remove | ( | V | value | ) |
| SetEntry< V > * DynaHashSet< V >::removeEntry | ( | SetEntry< V > * | entry | ) |
|
inline |
| SetIter< V > DynaHashSet< V >::values | ( | ) |
|
friend |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
static |
|
static |
1.8.13