![]() |
NDEVR
API Documentation
|
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...
Public Member Functions | |
| Set () | |
| Default constructor. | |
| template<class t_type, class t_memory_manager> | |
| Set (const Buffer< t_type, t_memory_manager > &values) | |
| Constructs a Set from a Buffer, inserting all Buffer elements. | |
| template<class t_iter> | |
| Set (const t_iter &begin, const t_iter &end) | |
| Constructs a Set from an iterator range. | |
| template<class t_type> | |
| Set (std::initializer_list< t_type > l) | |
| Constructor that allows for an initializer list, allowing { and } to be used. | |
| void | add (const t_value &key) |
| Inserts a value into the Set by const reference. | |
| void | add (t_value &&key) |
| Inserts a value into the Set by move. | |
| template<class t_add_type> | |
| void | addAll (const Buffer< t_add_type > &key) |
| Inserts all elements from the given Buffer into the Set. | |
| bool | hasValue (const t_value &key) const |
| Checks whether the Set contains the given value. | |
| uint04 | indexOf (const t_value &key) const |
| Finds the iteration index of a value within the Set. | |
| uint04 | size () const |
| Returns the number of elements in the Set. | |
| template<class t_index_type = uint04, class t_memory_manager = BufferAllocator<t_value, DetermineAlignment<sizeof(t_value)>(), ObjectInfo<t_value>::Primitive, t_index_type, false>> | |
| Buffer< t_value, t_memory_manager > | values () const |
| Returns all elements in the Set as a Buffer. | |
Container that stores unique elements in no particular order, and which allow for fast retrieval or insertion of individual elements based on their value.
|
inline |
|
inline |
|
inline |
Inserts a value into the Set by const reference.
Duplicates are ignored.
| [in] | key | The value to insert. |
Definition at line 104 of file Set.h.
Referenced by Set< HyperGraphAction * >::addAll(), and GravityIntersection::FindGravityPoints().
|
inline |
|
inlinenodiscard |
Checks whether the Set contains the given value.
| [in] | key | The value to search for. |
Definition at line 96 of file Set.h.
Referenced by FactoryModelFilters::FilterGeometryModels(), and FactoryModelFilters::FilterGeometryModels().
Returns the number of elements in the Set.
Definition at line 158 of file Set.h.
Referenced by SparseOptimizer::initializeOptimization(), SparseOptimizer::initializeOptimization(), OptimizableGraph::isSolverSuitable(), and Set< HyperGraphAction * >::values().
|
inlinenodiscard |
Returns all elements in the Set as a Buffer.
Definition at line 131 of file Set.h.
Referenced by GravityIntersection::FindGravityPoints(), and Set< HyperGraphAction * >::values().