|
Safe DDS
|
Set-like data structure. More...
#include <PreallocSet.hpp>
Public Member Functions | |
| PreallocSet () noexcept | |
| Default constructor. More... | |
| PreallocSet (const PreallocMemoryConfig &configuration) noexcept | |
| constructor. More... | |
| bool | init (const memory::container::PreallocMemoryConfig &config) noexcept |
| Method required for 2 step initialization. More... | |
| virtual | ~PreallocSet () noexcept |
| Virtual destructor. More... | |
| PreallocSet (const PreallocSet &) noexcept=delete | |
| Copy deleted. More... | |
| PreallocSet (PreallocSet &&) noexcept=delete | |
| Movement deleted. More... | |
| PreallocSet & | operator= (const PreallocSet &) noexcept=delete |
| Copy operator delete. More... | |
| PreallocSet & | operator= (PreallocSet &&) noexcept=delete |
| Movement operator delete due private references. More... | |
| T * | at (uint32_t pos) noexcept override |
| Get element of given index. More... | |
| const T * | at (uint32_t pos) const noexcept override |
| Get element of given index. More... | |
| bool | add (const T &value) noexcept override |
| Push back a new element. More... | |
| void | remove (const T &value) noexcept override |
| Remove element from the set. More... | |
| bool | find (const T &value) noexcept override |
| Check if value is present on set. More... | |
| uint32_t | capacity () const noexcept override |
| Max capacity of the container. More... | |
| uint32_t | size () const noexcept override |
| Used size of the container. More... | |
| void | clear () noexcept override |
| Remove all elements from the container. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from eprosima::safedds::memory::ISet< T > | |
| ~ISet () noexcept=default | |
| Protected destructor ownership defined on creation. More... | |
| ISet () noexcept=default | |
| Default creation. More... | |
| ISet (const ISet &) noexcept=default | |
| Default deleted. More... | |
| ISet (ISet &&) noexcept=default | |
| Default deleted. More... | |
| ISet & | operator= (const ISet &) noexcept=default |
| Copy operator allowed. More... | |
| ISet & | operator= (ISet &&) noexcept=default |
| Movement operator allowed. More... | |
Protected Member Functions inherited from eprosima::safedds::memory::IContainerBase | |
| ~IContainerBase () noexcept=default | |
| Protected destructor ownership defined on creation. More... | |
| IContainerBase () noexcept=default | |
| Default creation. More... | |
| IContainerBase (const IContainerBase &) noexcept=default | |
| Copy allowed. More... | |
| IContainerBase (IContainerBase &&) noexcept=default | |
| Movement allowed. More... | |
| IContainerBase & | operator= (const IContainerBase &) noexcept=default |
| Copy operator deleted. More... | |
| IContainerBase & | operator= (IContainerBase &&) noexcept=default |
| Movement operator deleted. More... | |
Set-like data structure.
|
inlineexplicitnoexcept |
Default constructor.
Constructs a list with preallocated empty nodes.
|
inlineexplicitnoexcept |
constructor.
Constructs a set with preallocated empty nodes.
| configuration | memory configuration. |
|
inlinevirtualnoexcept |
Virtual destructor.
|
deletenoexcept |
Copy deleted.
|
deletenoexcept |
Movement deleted.
|
inlineoverridevirtualnoexcept |
Push back a new element.
| value | value to add to the list. |
Implements eprosima::safedds::memory::ISet< T >.
|
inlineoverridevirtualnoexcept |
Get element of given index.
| pos | position index. |
Implements eprosima::safedds::memory::ISet< T >.
|
inlineoverridevirtualnoexcept |
Get element of given index.
| pos | position index. |
Implements eprosima::safedds::memory::ISet< T >.
|
inlineoverridevirtualnoexcept |
Max capacity of the container.
Implements eprosima::safedds::memory::IContainerBase.
|
inlineoverridevirtualnoexcept |
Remove all elements from the container.
Implements eprosima::safedds::memory::IContainerBase.
|
inlineoverridevirtualnoexcept |
Check if value is present on set.
| value | value to find. |
Implements eprosima::safedds::memory::ISet< T >.
|
inlinenoexcept |
Method required for 2 step initialization.
| config | Preallocated memory configuration. |
|
deletenoexcept |
Copy operator delete.
|
deletenoexcept |
Movement operator delete due private references.
|
inlineoverridevirtualnoexcept |
Remove element from the set.
| value | value to remove from set. |
Implements eprosima::safedds::memory::ISet< T >.
|
inlineoverridevirtualnoexcept |