|
Safe DDS
|
List-like data structure. More...
#include <IList.hpp>
Public Member Functions | |
| virtual V * | at (uint32_t pos) noexcept=0 |
| Get element of given index. More... | |
| virtual const V * | at (uint32_t pos) const noexcept=0 |
| Get element of given index. More... | |
| virtual bool | add (const V &value) noexcept=0 |
| Push back a new element. More... | |
| virtual void | remove_position (uint32_t pos) noexcept=0 |
| Remove element of given position. More... | |
| virtual V * | insert (uint32_t pos) noexcept=0 |
| Insert element on a given position. More... | |
Public Member Functions inherited from eprosima::safedds::memory::IContainerBase | |
| virtual uint32_t | capacity () const noexcept=0 |
| Max capacity of the container. More... | |
| virtual uint32_t | size () const noexcept=0 |
| Used size of the container. More... | |
| virtual void | clear () noexcept=0 |
| Remove all elements from the container. More... | |
Protected Member Functions | |
| ~IList () noexcept=default | |
| Protected destructor ownership defined on creation. More... | |
| IList () noexcept=default | |
| Default creation. More... | |
| IList (const IList &) noexcept=default | |
| Default deleted. More... | |
| IList (IList &&) noexcept=default | |
| Default deleted. More... | |
| IList & | operator= (const IList &) noexcept=default |
| Copy operator allowed. More... | |
| IList & | operator= (IList &&) 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... | |
List-like data structure.
|
protecteddefaultnoexcept |
Protected destructor ownership defined on creation.
|
protecteddefaultnoexcept |
Default creation.
|
protecteddefaultnoexcept |
Default deleted.
|
protecteddefaultnoexcept |
Default deleted.
|
pure virtualnoexcept |
Push back a new element.
| value | value to add to the list. |
Implemented in eprosima::safedds::memory::container::StaticList< T, N >, and eprosima::safedds::memory::container::PreallocList< T >.
|
pure virtualnoexcept |
Get element of given index.
| pos | position index. |
Implemented in eprosima::safedds::memory::container::StaticList< T, N >, eprosima::safedds::memory::container::StaticList< BaseDataReaderInstance::InstanceSample, MaxSamplesPerInstance >, and eprosima::safedds::memory::container::PreallocList< T >.
|
pure virtualnoexcept |
Get element of given index.
| pos | position index. |
Implemented in eprosima::safedds::memory::container::StaticList< T, N >, eprosima::safedds::memory::container::StaticList< BaseDataReaderInstance::InstanceSample, MaxSamplesPerInstance >, and eprosima::safedds::memory::container::PreallocList< T >.
|
pure virtualnoexcept |
Insert element on a given position.
Insert an element on the given position displacing the rest of the elements one position to the right.
| pos | position index. |
Implemented in eprosima::safedds::memory::container::StaticList< T, N >, eprosima::safedds::memory::container::StaticList< BaseDataReaderInstance::InstanceSample, MaxSamplesPerInstance >, and eprosima::safedds::memory::container::PreallocList< T >.
|
protecteddefaultnoexcept |
Copy operator allowed.
|
protecteddefaultnoexcept |
Movement operator allowed.
|
pure virtualnoexcept |
Remove element of given position.
| pos | position index. |
Implemented in eprosima::safedds::memory::container::StaticList< T, N >, eprosima::safedds::memory::container::StaticList< BaseDataReaderInstance::InstanceSample, MaxSamplesPerInstance >, and eprosima::safedds::memory::container::PreallocList< T >.