API Documentation
Loading...
Searching...
No Matches
Set< t_type > Class Template Reference

Container that stores unique elements in no particular order, and which allow for fast retrieval or insertion of individual elements based on their value. More...

#include <Set.h>

Inheritance diagram for Set< t_type >:
[legend]
Collaboration diagram for Set< t_type >:
[legend]

Public Member Functions

void add (const t_value &key)
 
void add (t_value &&key)
 
bool hasValue (const t_value &key) const
 
uint04 indexOf (const t_value &key) const
 
 Set ()
 
template<class t_type , class t_index_type , class t_memory_allocator , class t_memory_manager >
 Set (const Buffer< t_type, t_index_type, t_memory_allocator, t_memory_manager > &values)
 
template<class t_iter >
 Set (const t_iter &begin, const t_iter &end)
 
uint04 size () const
 
template<class t_index_type = uint04, class t_memory_allocator = ObjectAllocator<ObjectInfo<t_value>::Primitive, t_index_type>, class t_memory_manager = BufferAllocator<t_value, t_index_type, false>>
Buffer< t_value, t_index_type, t_memory_allocator, t_memory_manager > values () const
 

Detailed Description

template<class t_type>
class NDEVR::Set< t_type >

Container that stores unique elements in no particular order, and which allow for fast retrieval or insertion of individual elements based on their value.


Constructor & Destructor Documentation

◆ Set() [1/3]

template<class t_type >
Set ( )
inline

◆ Set() [2/3]

template<class t_type >
template<class t_iter >
Set ( const t_iter & begin,
const t_iter & end )
inline

◆ Set() [3/3]

template<class t_type >
template<class t_type , class t_index_type , class t_memory_allocator , class t_memory_manager >
Set ( const Buffer< t_type, t_index_type, t_memory_allocator, t_memory_manager > & values)
inline

Member Function Documentation

◆ add() [1/2]

template<class t_type >
void add ( const t_value & key)
inline

◆ add() [2/2]

template<class t_type >
void add ( t_value && key)
inline

◆ hasValue()

template<class t_type >
bool hasValue ( const t_value & key) const
inlinenodiscard

◆ indexOf()

template<class t_type >
uint04 indexOf ( const t_value & key) const
inlinenodiscard

◆ size()

template<class t_type >
uint04 size ( ) const
inlinenodiscard

◆ values()

template<class t_type >
template<class t_index_type = uint04, class t_memory_allocator = ObjectAllocator<ObjectInfo<t_value>::Primitive, t_index_type>, class t_memory_manager = BufferAllocator<t_value, t_index_type, false>>
Buffer< t_value, t_index_type, t_memory_allocator, t_memory_manager > values ( ) const
inlinenodiscard

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