Class that represents a set type (extends from std::unordered_set).
More...

#include <SPL/Runtime/Type/Set.h>

Inheritance diagram for SPL::set< K >:
Inheritance graph
node node node
[legend]

Detailed Description

template<class K>
class SPL::set< K >

Class that represents a set type (extends from std::unordered_set).

Constructor & Destructor Documentation

◆ set() [1/9]

template<class K >

Default constructor

◆ set() [2/9]

template<class K >

Construct from a unordered_set

Parameters

◆ set() [3/9]

template<class K >

Copy constructor

Parameters

◆ set() [4/9]

template<class K >
template<int32_t msize>

Construct from a bounded set

Parameters

◆ set() [5/9]

template<class K >
template<class InputIterator >

Construct from a sequence

Parameters

◆ set() [6/9]

template<class K >

Construct from a reflective set

Parameters

◆ set() [7/9]

template<class K >

Construct from a value handle

Parameters

◆ set() [8/9]

template<class K >
template<class K2 >

Construct from an assignable set

Parameters

◆ set() [9/9]

template<class K >
template<class K2 , int32_t msize>

Construct from an assignable bset

Parameters

◆ ~set()

template<class K >

Destructor

Member Function Documentation

◆ add()

template<class K >

Insert into set

Parameters
Returns
*this

◆ operator=() [1/2]

template<class K >

Assignment operator (from another set)

Parameters
Returns
self

◆ operator=() [2/2]

template<class K >

Assignment operator (from a unordered_set)

Parameters
Returns
self

◆ operator==()

template<class K >

Equality comparison

Parameters
Returns
true if the contained elements are the same, false otherwise

◆ operator!=()

template<class K >

Non-equality comparison

Parameters
Returns
true if the contained elements are not the same, false otherwise

◆ serialize() [1/2]

template<class K >
template<class BufferType >

Serialize (binary)

Parameters

◆ deserialize() [1/2]

template<class K >
template<class BufferType >

Deserialize (binary)

Parameters

◆ serialize() [2/2]

template<class K >

Serialize (character)

Parameters

Implements SPL::Collection.

◆ serializeWithPrecision()

template<class K >

Serialize (character), with maximum precision for floats

Parameters

Implements SPL::Collection.

◆ deserialize() [2/2]

template<class K >

Deserialize (character)

Parameters

Implements SPL::Collection.

◆ deserializeWithNanAndInfs()

template<class K >

Deserialize with Inf and Nan (character)

Parameters

◆ hashCode()

template<class K >

Get hash code

Returns
hash code

Implements SPL::Collection.

◆ equals()

template<class K >

Compare with another collection

Parameters
Returns
true if equal, false otherwise

Implements SPL::Collection.

◆ clone()

template<class K >

Create a clone of the collection object

Returns
clone of the collection object

Implements SPL::Collection.

◆ assignFrom()

template<class K >

Assign this collection using another collection

Parameters
Exceptions

Implements SPL::Collection.

◆ swapWith()

template<class K >

Swap this collection with another collection

Parameters
Exceptions

Implements SPL::Collection.

◆ getElementMetaType()

template<class K >

Get element type

Returns
element type of this set

Implements SPL::Set.

◆ createElement()

template<class K >

Create a new element. The returned value handle is a wrapper for the object allocated on the heap. As a result, the caller is responsible for cleaning up the memory by calling ValueHandle::deleteValue()

Returns
value handle for the new element

Implements SPL::Set.

◆ getSize()

template<class K >

Get the size of the set

Returns
size of the set

Implements SPL::Set.

◆ findElement() [1/2]

template<class K >

Find an element in the set

Parameters
Returns
an iterator for the element if found, the end iterator otherwise

Implements SPL::Set.

◆ findElement() [2/2]

template<class K >

Find an element in the set

Parameters
Returns
an iterator for the element if found, the end iterator otherwise

Implements SPL::Set.

◆ insertElement()

template<class K >

Insert an element

Parameters

Implements SPL::Set.

◆ removeElement()

template<class K >

remove the element with the given value

Parameters

Implements SPL::Set.

◆ removeAllElements()

template<class K >

Remove all elements

Implements SPL::Set.

◆ getBeginIterator() [1/2]

template<class K >

Get a begin iterator

Returns
begin iterator

Implements SPL::Set.

◆ getBeginIterator() [2/2]

template<class K >

Get a begin const iterator

Returns
begin const iterator

Implements SPL::Set.

◆ getEndIterator() [1/2]

template<class K >

Get an end iterator

Returns
end iterator

Implements SPL::Set.

◆ getEndIterator() [2/2]

template<class K >

Get an end cost iterator

Returns
end const iterator

Implements SPL::Set.

◆ getSerializedSize()

template<class K >

Get the size in bytes when serialized

Returns
size in bytes when serialized

Implements SPL::Collection.

◆ getIterManager()

template<class K >

Implements SPL::Set.


The documentation for this class was generated from the following files: