SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND


Platform::Containers
Template Class HashSet

GeneralContainerType
   |
   +-GeneralCollectionType
        |
        +-GeneralSetType
             |
             +-HashSet

Implemented in:
Platform.Containers.HashSet.h

template <typename Element, typename Tester = Lang::TypeActors::EqualityTester<Element>, typename Hasher = Lang::TypeActors::Hasher<Element>>
class HashSet:
public GeneralSetType

A dynamically sized, unordered hash set container.

See Also:
Containers

Inner Compounds, Typedefs, and Enumscollapse
typedef ElementType
          DOCTODO.
typedef EntryType
          DOCTODO.
typedef EqualityTesterType
          DOCTODO.
typedef HasherType
          DOCTODO.

Inner Compounds, Typedefs, and Enums inherited from class GeneralSetTypecollapse
ConstEnumerator, ConstIterator, Enumerator, Iterator

Fields inherited from class GeneralContainerTypecollapse
base

Constructor Summarycollapse
HashSet()
          DOCTODO.
HashSet(const HashSet& container)
          DOCTODO.
template <typename ContainerX>
HashSet(const ContainerX& container)

          DOCTODO.
HashSet(Int capacity)
          DOCTODO.
HashSet(Int capacity, Float loadFactor)
          DOCTODO.
~HashSet()
          Destructor.

Method Summarycollapse
template <typename Collection,
typename Predicate>
Collection&
collectEntries(Collection& collection, Predicate function) const
          DOCTODO.
ElementType extractFirst()
          DOCTODO.
ElementType extractLast()
          DOCTODO.
const ElementType& first() const
          DOCTODO.
const ElementType& last() const
          DOCTODO.
HashSet& operator=(const HashSet& container)
          DOCTODO.
Void removeFirst()
          DOCTODO.
Void removeLast()
          DOCTODO.

Methods inherited from class GeneralContainerTypecollapse
compareTo, deepSize, empty, equals, exchangeWith, hashCode, isEmpty, size, toString, toXml

Methods inherited from class GeneralCollectionTypecollapse
contains, containsAll, containsAll, remove, removeAll, removeAll, retainAll, retainAll

Methods inherited from class GeneralSetTypecollapse
add, addAll, addAll

Friend Summarycollapse
friend Io::ISerializer& operator<<(Io::ISerializer& serializer, const HashSet& container)
          Serializes the state of a HashSet object.
friend Io::IDeserializer& operator>>(Io::IDeserializer& deserializer, HashSet& container)
          Deserializes the state of a HashSet object.

 

Constructor Detail

HashSet[inline]

HashSet()

DOCTODO.


HashSet[inline]

HashSet(const HashSet& container)

DOCTODO.

Parameters:
container - DOCTODO

HashSet[explicit, inline]

template <typename ContainerX>
HashSet(const ContainerX& container)

DOCTODO.

Parameters:
container - DOCTODO

HashSet[explicit, inline]

HashSet(Int capacity)

DOCTODO.

Parameters:
capacity - DOCTODO

HashSet[explicit, inline]

HashSet(Int capacity, Float loadFactor)

DOCTODO.

Parameters:
capacity - DOCTODO
loadFactor - DOCTODO

~HashSet[inline]

~HashSet()

Destructor.

 

Method Detail

collectEntries[inline]

template <typename Collection, typename Predicate>
Collection& collectEntries(Collection& collection, Predicate function) const

DOCTODO.

Parameters:
collection - DOCTODO
function - DOCTODO
Returns:
DOCTODO

extractFirst[inline]

ElementType extractFirst()

DOCTODO.

Returns:
DOCTODO

extractLast[inline]

ElementType extractLast()

DOCTODO.

Returns:
DOCTODO

first[inline]

const ElementType& first() const

DOCTODO.

Returns:
DOCTODO

last[inline]

const ElementType& last() const

DOCTODO.

Returns:
DOCTODO

operator=[inline]

HashSet& operator=(const HashSet& container)

DOCTODO.

Parameters:
container - DOCTODO
Returns:
DOCTODO

removeFirst[inline]

Void removeFirst()

DOCTODO.


removeLast[inline]

Void removeLast()

DOCTODO.

 

Friend Detail

operator<<[inline]

friend Io::ISerializer& operator<<(Io::ISerializer& serializer, const HashSet& container)

Serializes the state of a HashSet object.

Parameters:
container - a hash set object to serialize
serializer - a serializer to receive state data
Returns:
the reference to the serializer

operator>>[inline]

friend Io::IDeserializer& operator>>(Io::IDeserializer& deserializer, HashSet& container)

Deserializes the state of a HashSet object.

Parameters:
container - a hash set object to deserialize
deserializer - a deserializer to retrieve state data from
Returns:
the reference to the deserializer


SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND