Class that represents bounded size set type. More...

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

Inheritance diagram for SPL::bset< K, msize >:
Inheritance graph
node node node
[legend]

Detailed Description

template<class K, int32_t msize>
class SPL::bset< K, msize >

Class that represents bounded size set type.

Member Typedef Documentation

◆ value_type

template<class K , int32_t msize>

value type

◆ size_type

template<class K , int32_t msize>

size type

◆ hasher

template<class K , int32_t msize>

hasher type

◆ reference

template<class K , int32_t msize>

element reference type

◆ const_reference

template<class K , int32_t msize>

element constant reference type

◆ pointer

template<class K , int32_t msize>

element pointer type

◆ const_pointer

template<class K , int32_t msize>

element constant pointer type

◆ iterator

template<class K , int32_t msize>

iterator type

◆ const_iterator

template<class K , int32_t msize>

constant iterator type

Constructor & Destructor Documentation

◆ bset() [1/9]

template<class K , int32_t msize>

Empty constructor

◆ bset() [2/9]

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

Construct from a sequence

Parameters

◆ bset() [3/9]

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

Construct from an assignable set

Parameters

◆ bset() [4/9]

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

Construct from an assignable bset

Parameters

◆ bset() [5/9]

template<class K , int32_t msize>

Copy constructor

Parameters

◆ bset() [6/9]

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

Copy constructor

Parameters

◆ bset() [7/9]

template<class K , int32_t msize>

Construct from an std::unordered_set

Parameters

◆ bset() [8/9]

template<class K , int32_t msize>

Construct from a reflective bounded size set

Parameters

◆ bset() [9/9]

template<class K , int32_t msize>

Construct from a value handle

Parameters

◆ ~bset()

template<class K , int32_t msize>

Destructor.

Member Function Documentation

◆ operator=() [1/3]

template<class K , int32_t msize>

Assignment operator (from another bounded size set)

Parameters
Returns
self

◆ operator=() [2/3]

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

Assignment operator (from another bounded size set)

Parameters
Returns
self

◆ operator=() [3/3]

template<class K , int32_t msize>

Assignment operator (from an std unordered_set)

Parameters
Returns
self

◆ operator==() [1/2]

template<class K , int32_t msize>

Equality comparison

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

◆ operator==() [2/2]

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

Equality comparison

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

◆ operator!=() [1/2]

template<class K , int32_t msize>

Non-equality comparison

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

◆ operator!=() [2/2]

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

Non-equality comparison

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

◆ begin() [1/2]

template<class K , int32_t msize>

Get a begin iterator

Returns
begin iterator

◆ begin() [2/2]

template<class K , int32_t msize>

Get a begin const iterator

Returns
begin const iterator

◆ end() [1/2]

template<class K , int32_t msize>

Get an end iterator

Returns
end iterator

◆ end() [2/2]

template<class K , int32_t msize>

Get an end const iterator

Returns
end const iterator

◆ max_size()

template<class K , int32_t msize>

Get the bounded size of the set

Returns
bounded size of the set

◆ size()

template<class K , int32_t msize>

Get the number of used elements

Returns
number of used elements

◆ hash_funct()

template<class K , int32_t msize>

Get the hash function

Returns
the hash function

◆ clear()

template<class K , int32_t msize>

Remove all elements

◆ empty()

template<class K , int32_t msize>

Check if empty

Returns
true if empty, false otherwise

◆ find() [1/2]

template<class K , int32_t msize>

Find an element in the set

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

◆ find() [2/2]

template<class K , int32_t msize>

Find an element in the set

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

◆ count()

template<class K , int32_t msize>

Count the number of elements with a given key

Parameters
Returns
the number of elements with the given key

◆ operator[]()

template<class K , int32_t msize>

Get the element with a given key, create it if it does not exist

Parameters
Returns
reference to the element

◆ add()

template<class K , int32_t msize>

Insert into set

Parameters
Returns
*this

◆ insert() [1/2]

template<class K , int32_t msize>

Insert a given element. If there is no space left in the bounded set, one of the existing items is replaced.

Parameters
Returns
a iterator-bool pair, where the iterator points to the inserted element and the bool is true if no existing element was replaced, and false otherwise

◆ insert() [2/2]

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

Insert a given sequence of elements

Parameters

◆ erase() [1/3]

template<class K , int32_t msize>

Remove an element at a given position

Parameters

◆ erase() [2/3]

template<class K , int32_t msize>

Remove elements with a given key

Parameters
Returns
the number of elements removed

◆ erase() [3/3]

template<class K , int32_t msize>

Remove a sequence of elements

Parameters

◆ getData()

template<class K , int32_t msize>

Get the C array representation

Returns
C array representation

◆ swap()

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

Swap

Parameters

◆ serialize() [1/2]

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

Serialize (binary)

Parameters

◆ deserialize() [1/2]

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

Deserialize (binary)

Parameters

◆ serialize() [2/2]

template<class K , int32_t msize>

Serialize (character)

Parameters

Implements SPL::Collection.

◆ serializeWithPrecision()

template<class K , int32_t msize>

Serialize (character), with maximum precision for floats

Parameters

Implements SPL::Collection.

◆ deserialize() [2/2]

template<class K , int32_t msize>

Deserialize (character)

Parameters

Implements SPL::Collection.

◆ deserializeWithNanAndInfs()

template<class K , int32_t msize>

Deserialize with Inf and Nan (character)

Parameters

◆ hashCode()

template<class K , int32_t msize>

Get hash code

Returns
hash code

Implements SPL::Collection.

◆ normalize()

template<class K , int32_t msize>

Normalize the contents of the set via rehashing

◆ getBoundedSize()

template<class K , int32_t msize>

Get the bounded size of the set

Returns
bounded size of the set

Implements SPL::BSet.

◆ getUsedSize()

template<class K , int32_t msize>

Get the number of used elements

Returns
number of used elements

Implements SPL::BSet.

◆ equals()

template<class K , int32_t msize>

Compare with another collection

Parameters
Returns
true if equal, false otherwise

Implements SPL::Collection.

◆ assignFrom()

template<class K , int32_t msize>

Assign this collection using another collection

Parameters
Exceptions

Implements SPL::Collection.

◆ swapWith()

template<class K , int32_t msize>

Swap this collection with another collection

Parameters
Exceptions

Implements SPL::Collection.

◆ clone()

template<class K , int32_t msize>

Create a clone of the collection object

Returns
clone of the collection object

Implements SPL::Collection.

◆ getElementMetaType()

template<class K , int32_t msize>

Get element type

Returns
element type of this set

Implements SPL::Set.

◆ createElement()

template<class K , int32_t msize>

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 , int32_t msize>

Get the size of the set

Returns
size of the set

Implements SPL::Set.

◆ findElement() [1/2]

template<class K , int32_t msize>

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 , int32_t msize>

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 , int32_t msize>

Insert an element

Parameters

Implements SPL::Set.

◆ removeElement()

template<class K , int32_t msize>

remove the element with the given value

Parameters

Implements SPL::Set.

◆ removeAllElements()

template<class K , int32_t msize>

Remove all elements

Implements SPL::Set.

◆ getBeginIterator() [1/2]

template<class K , int32_t msize>

Get a begin iterator

Returns
begin iterator

Implements SPL::Set.

◆ getBeginIterator() [2/2]

template<class K , int32_t msize>

Get a begin const iterator

Returns
begin const iterator

Implements SPL::Set.

◆ getEndIterator() [1/2]

template<class K , int32_t msize>

Get an end iterator

Returns
end iterator

Implements SPL::Set.

◆ getEndIterator() [2/2]

template<class K , int32_t msize>

Get an end cost iterator

Returns
end const iterator

Implements SPL::Set.

◆ getSerializedSize()

template<class K , int32_t msize>

Get the size in bytes when serialized

Returns
size in bytes when serialized

Implements SPL::Collection.

◆ getIterManager()

template<class K , int32_t msize>

Implements SPL::Set.


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