|
iceoryx2
C++ Language Bindings
|
#include <raw_byte_storage.hpp>
Classes | |
| struct | StorageMemoryLayoutMetrics |
Public Member Functions | |
| constexpr | RawByteStorage () noexcept |
| constexpr | RawByteStorage (RawByteStorage const &rhs) |
| constexpr | RawByteStorage (RawByteStorage &&rhs) noexcept |
| template<uint64_t M, std::enable_if_t<(Capacity > M), bool > = true> | |
| constexpr | RawByteStorage (RawByteStorage< T, M > const &rhs) |
| template<uint64_t M, std::enable_if_t<(Capacity > M), bool > = true> | |
| constexpr | RawByteStorage (RawByteStorage< T, M > &&rhs) noexcept |
| IOX2_CONSTEXPR_DTOR | ~RawByteStorage () |
| constexpr auto | operator= (RawByteStorage const &rhs) -> RawByteStorage & |
| constexpr auto | operator= (RawByteStorage &&rhs) noexcept(std::is_nothrow_move_constructible< T >::value &&std::is_nothrow_move_assignable< T >::value) -> RawByteStorage & |
| auto constexpr | size () const noexcept -> uint64_t |
| template<typename... Args> | |
| constexpr void | emplace_back (Args &&... args) |
| template<typename... Args> | |
| constexpr void | emplace_at (uint64_t index, Args &&... args) |
| constexpr void | insert_at (uint64_t index, uint64_t count, T const &value) |
| constexpr void | erase_at (uint64_t index) |
| constexpr void | erase_at (uint64_t begin_index, uint64_t end_index) |
| constexpr void | remove_at (uint64_t index, uint64_t range_size) |
| constexpr void | shrink_from_back (uint64_t target_size) |
| constexpr void | rotate_from_back (uint64_t index_to, uint64_t index_first_from) |
| auto | pointer_from_index (uint64_t idx) -> T * |
| auto | pointer_from_index (uint64_t idx) const -> T const * |
| constexpr auto | static_memory_layout_metrics () noexcept -> StorageMemoryLayoutMetrics |
A class for storing at most N objects of type T in a contiguous storage. All operations on this class are unchecked.
Definition at line 31 of file raw_byte_storage.hpp.
|
inlineconstexprnoexcept |
Definition at line 40 of file raw_byte_storage.hpp.
|
inlineconstexpr |
Definition at line 45 of file raw_byte_storage.hpp.
References iox2::bb::detail::RawByteStorage< T, Capacity >::pointer_from_index().
|
inlineconstexprnoexcept |
Definition at line 53 of file raw_byte_storage.hpp.
|
inlineconstexpr |
Definition at line 63 of file raw_byte_storage.hpp.
References iox2::bb::detail::RawByteStorage< T, Capacity >::pointer_from_index().
|
inlineconstexprnoexcept |
Definition at line 73 of file raw_byte_storage.hpp.
|
inline |
Definition at line 81 of file raw_byte_storage.hpp.
References iox2::bb::detail::RawByteStorage< T, Capacity >::pointer_from_index().
|
inlineconstexpr |
Definition at line 136 of file raw_byte_storage.hpp.
References iox2::bb::detail::RawByteStorage< T, Capacity >::emplace_back(), and iox2::bb::detail::RawByteStorage< T, Capacity >::rotate_from_back().
Referenced by iox2::bb::StaticVector< T, Capacity >::try_emplace_at().
|
inlineconstexpr |
Definition at line 129 of file raw_byte_storage.hpp.
References iox2::bb::detail::RawByteStorage< T, Capacity >::pointer_from_index(), and iox2::bb::detail::RawByteStorage< T, Capacity >::size().
Referenced by iox2::bb::detail::RawByteStorage< T, Capacity >::emplace_at(), iox2::bb::detail::RawByteStorage< T, Capacity >::insert_at(), and iox2::bb::StaticVector< T, Capacity >::try_emplace_back().
|
inlineconstexpr |
Definition at line 156 of file raw_byte_storage.hpp.
References iox2::bb::detail::RawByteStorage< T, Capacity >::remove_at(), and iox2::bb::detail::RawByteStorage< T, Capacity >::shrink_from_back().
|
inlineconstexpr |
Definition at line 150 of file raw_byte_storage.hpp.
References iox2::bb::detail::RawByteStorage< T, Capacity >::remove_at(), and iox2::bb::detail::RawByteStorage< T, Capacity >::shrink_from_back().
Referenced by iox2::bb::StaticVector< T, Capacity >::clear(), iox2::bb::StaticVector< T, Capacity >::try_erase_at(), and iox2::bb::StaticVector< T, Capacity >::try_erase_at().
|
inlineconstexpr |
Definition at line 142 of file raw_byte_storage.hpp.
References iox2::bb::detail::RawByteStorage< T, Capacity >::emplace_back(), and iox2::bb::detail::RawByteStorage< T, Capacity >::rotate_from_back().
Referenced by iox2::bb::StaticVector< T, Capacity >::from_value(), iox2::bb::StaticVector< T, Capacity >::from_value(), and iox2::bb::StaticVector< T, Capacity >::try_insert_at().
|
inlineconstexprnoexcept |
Definition at line 105 of file raw_byte_storage.hpp.
References iox2::bb::detail::RawByteStorage< T, Capacity >::pointer_from_index().
|
inlineconstexpr |
Definition at line 88 of file raw_byte_storage.hpp.
References iox2::bb::detail::RawByteStorage< T, Capacity >::pointer_from_index().
|
inline |
Definition at line 187 of file raw_byte_storage.hpp.
Referenced by iox2::bb::StaticVector< T, Capacity >::back_element(), iox2::bb::StaticVector< T, Capacity >::back_element(), iox2::bb::StaticVector< T, Capacity >::UncheckedAccessor::begin(), iox2::bb::StaticVector< T, Capacity >::UncheckedConstAccessor::begin(), iox2::bb::StaticVector< T, Capacity >::UncheckedAccessor::data(), iox2::bb::StaticVector< T, Capacity >::UncheckedConstAccessor::data(), iox2::bb::StaticVector< T, Capacity >::element_at(), iox2::bb::StaticVector< T, Capacity >::element_at(), iox2::bb::detail::RawByteStorage< T, Capacity >::emplace_back(), iox2::bb::StaticVector< T, Capacity >::UncheckedAccessor::end(), iox2::bb::StaticVector< T, Capacity >::UncheckedConstAccessor::end(), iox2::bb::StaticVector< T, Capacity >::front_element(), iox2::bb::StaticVector< T, Capacity >::front_element(), iox2::bb::detail::RawByteStorage< T, Capacity >::operator=(), iox2::bb::detail::RawByteStorage< T, Capacity >::operator=(), iox2::bb::StaticVector< T, Capacity >::UncheckedAccessor::operator[](), iox2::bb::StaticVector< T, Capacity >::UncheckedConstAccessor::operator[](), iox2::bb::detail::RawByteStorage< T, Capacity >::RawByteStorage(), iox2::bb::detail::RawByteStorage< T, Capacity >::RawByteStorage(), iox2::bb::detail::RawByteStorage< T, Capacity >::remove_at(), iox2::bb::detail::RawByteStorage< T, Capacity >::rotate_from_back(), iox2::bb::detail::RawByteStorage< T, Capacity >::shrink_from_back(), and iox2::bb::detail::RawByteStorage< T, Capacity >::~RawByteStorage().
|
inline |
Definition at line 193 of file raw_byte_storage.hpp.
|
inlineconstexpr |
Definition at line 163 of file raw_byte_storage.hpp.
References iox2::bb::detail::RawByteStorage< T, Capacity >::pointer_from_index().
Referenced by iox2::bb::detail::RawByteStorage< T, Capacity >::erase_at(), and iox2::bb::detail::RawByteStorage< T, Capacity >::erase_at().
|
inlineconstexpr |
Definition at line 182 of file raw_byte_storage.hpp.
References iox2::bb::detail::RawByteStorage< T, Capacity >::pointer_from_index().
Referenced by iox2::bb::detail::RawByteStorage< T, Capacity >::emplace_at(), iox2::bb::detail::RawByteStorage< T, Capacity >::insert_at(), and iox2::bb::StaticVector< T, Capacity >::try_insert_at_unchecked().
|
inlineconstexpr |
Definition at line 173 of file raw_byte_storage.hpp.
References iox2::bb::detail::RawByteStorage< T, Capacity >::pointer_from_index().
Referenced by iox2::bb::detail::RawByteStorage< T, Capacity >::erase_at(), iox2::bb::detail::RawByteStorage< T, Capacity >::erase_at(), iox2::bb::StaticVector< T, Capacity >::try_insert_at_unchecked(), and iox2::bb::StaticVector< T, Capacity >::try_pop_back().
|
inlineconstexprnoexcept |
Definition at line 123 of file raw_byte_storage.hpp.
Referenced by iox2::bb::StaticVector< T, Capacity >::clear(), iox2::bb::StaticVector< T, Capacity >::element_at(), iox2::bb::StaticVector< T, Capacity >::element_at(), iox2::bb::detail::RawByteStorage< T, Capacity >::emplace_back(), iox2::bb::StaticVector< T, Capacity >::UncheckedAccessor::end(), iox2::bb::StaticVector< T, Capacity >::UncheckedConstAccessor::end(), iox2::bb::StaticVector< T, Capacity >::size(), iox2::bb::StaticVector< T, Capacity >::try_emplace_at(), iox2::bb::StaticVector< T, Capacity >::try_emplace_back(), iox2::bb::StaticVector< T, Capacity >::try_erase_at(), iox2::bb::StaticVector< T, Capacity >::try_erase_at(), iox2::bb::StaticVector< T, Capacity >::try_insert_at(), iox2::bb::StaticVector< T, Capacity >::try_insert_at_unchecked(), and iox2::bb::StaticVector< T, Capacity >::try_pop_back().
|
inlineconstexprnoexcept |
Definition at line 210 of file raw_byte_storage.hpp.
References iox2::bb::detail::RawByteStorage< T, Capacity >::StorageMemoryLayoutMetrics::offset_bytes, iox2::bb::detail::RawByteStorage< T, Capacity >::StorageMemoryLayoutMetrics::offset_size, iox2::bb::detail::RawByteStorage< T, Capacity >::StorageMemoryLayoutMetrics::size_is_unsigned, iox2::bb::detail::RawByteStorage< T, Capacity >::StorageMemoryLayoutMetrics::sizeof_bytes, iox2::bb::detail::RawByteStorage< T, Capacity >::StorageMemoryLayoutMetrics::sizeof_size, iox2::bb::detail::RawByteStorage< T, Capacity >::StorageMemoryLayoutMetrics::storage_alignment, and iox2::bb::detail::RawByteStorage< T, Capacity >::StorageMemoryLayoutMetrics::storage_size.
Referenced by iox2::bb::StaticVector< T, Capacity >::static_memory_layout_metrics().