OpenLB 1.7
|
Container is a std::vector inspired data wrapper that allows for simple content manipulation of its owned data. More...
#include <container.h>
Public Member Functions | |
Container () | |
Container (size_type count) | |
constexpr auto & | at () |
FIELD_ARRAY_TYPE & | data () |
constexpr bool | empty () |
constexpr size_type | size () |
constexpr size_type | max_size () |
constexpr void | reserve (size_type new_capacity) |
constexpr size_type | capacity () |
constexpr void | shrink_to_fit () |
constexpr void | clear () |
constexpr void | erase (size_type i) |
constexpr void | push_back () |
template<typename COMMUNICATABLE > | |
void | push_back (std::uint8_t *buffer) |
template<typename INTERFACE > | |
void | push_back (INTERFACE &interface) |
constexpr void | pop_back () |
void | resize (size_type new_capacity) |
void | swapElements (size_type i, size_type j) |
constexpr size_type | getExtent () |
Container is a std::vector inspired data wrapper that allows for simple content manipulation of its owned data.
FieldArrayD, AnyFieldArrayD, MultiFieldArrayD and DynamicFieldGroupsD do handle crucial data operations but do not provide simple access and manipulation functions as e.g. provided in std:: containers such as size and capacity handling. This Container class applicable to a provided FIELD_ARRAY_TYPE adds this functionality. It is also intended to be a crucial part in the parallization refactoring of the particle system by replacing the currently used std::deque container.
Definition at line 44 of file container.h.
|
inline |
Definition at line 51 of file container.h.
|
inline |
Definition at line 54 of file container.h.
|
constexpr |
|
inlineconstexpr |
Definition at line 74 of file container.h.
|
constexpr |
|
inline |
Definition at line 62 of file container.h.
|
constexpr |
|
inlineconstexpr |
Definition at line 82 of file container.h.
|
inlineconstexpr |
Definition at line 122 of file container.h.
|
constexpr |
|
inlineconstexpr |
Definition at line 113 of file container.h.
|
inlineconstexpr |
Definition at line 87 of file container.h.
References olb::Container< T, DESCRIPTOR, FIELD_ARRAY_TYPE >::capacity(), olb::Container< T, DESCRIPTOR, FIELD_ARRAY_TYPE >::resize(), and olb::Container< T, DESCRIPTOR, FIELD_ARRAY_TYPE >::size().
|
inline |
Definition at line 104 of file container.h.
|
inline |
Definition at line 97 of file container.h.
References olb::Container< T, DESCRIPTOR, FIELD_ARRAY_TYPE >::push_back().
|
constexpr |
|
inline |
Definition at line 115 of file container.h.
|
inlineconstexpr |
Definition at line 76 of file container.h.
|
inlineconstexpr |
Definition at line 68 of file container.h.
|
inline |
Definition at line 117 of file container.h.