BioDynaMo
v1.05.120-25dc9790
|
std::vector with parallel resize More...
#include <parallel_resize_vector.h>
Public Types | |
using | iterator = T * |
using | const_iterator = const T * |
using | value_type = T |
Public Member Functions | |
ParallelResizeVector (TRootIOCtor *io_ctor) | |
ParallelResizeVector ()=default | |
ParallelResizeVector (std::initializer_list< T > init) | |
ParallelResizeVector (std::size_t new_size, const T &t=T()) | |
ParallelResizeVector (const ParallelResizeVector &other) | |
virtual | ~ParallelResizeVector () |
std::size_t | size () const |
T * | data () noexcept |
const T * | data () const noexcept |
void | swap (ParallelResizeVector &other) |
std::size_t | capacity () const |
void | push_back (const T &element) |
void | reserve (std::size_t new_capacity) |
void | resize (std::size_t new_size, const T &t=T()) |
void | clear () |
ParallelResizeVector & | operator= (const ParallelResizeVector &other) |
T & | operator[] (std::size_t index) |
const T & | operator[] (std::size_t index) const |
iterator | begin () |
iterator | end () |
const_iterator | cbegin () |
const_iterator | cend () |
Private Member Functions | |
BDM_CLASS_DEF (ParallelResizeVector, 1) | |
Private Attributes | |
std::size_t | size_ = 0 |
std::size_t | capacity_ = 0 |
T * | data_ = nullptr |
Static Private Attributes | |
static constexpr float | kGrowFactor = 1.5 |
std::vector with parallel resize
Definition at line 27 of file parallel_resize_vector.h.
using bdm::ParallelResizeVector< T >::const_iterator = const T* |
Definition at line 30 of file parallel_resize_vector.h.
using bdm::ParallelResizeVector< T >::iterator = T* |
Definition at line 29 of file parallel_resize_vector.h.
using bdm::ParallelResizeVector< T >::value_type = T |
Definition at line 31 of file parallel_resize_vector.h.
|
inlineexplicit |
Definition at line 33 of file parallel_resize_vector.h.
|
default |
|
inline |
Definition at line 36 of file parallel_resize_vector.h.
|
inline |
Definition at line 43 of file parallel_resize_vector.h.
|
inline |
Definition at line 47 of file parallel_resize_vector.h.
|
inlinevirtual |
Definition at line 60 of file parallel_resize_vector.h.
|
private |
|
inline |
Definition at line 170 of file parallel_resize_vector.h.
|
inline |
Definition at line 92 of file parallel_resize_vector.h.
|
inline |
Definition at line 174 of file parallel_resize_vector.h.
|
inline |
Definition at line 176 of file parallel_resize_vector.h.
|
inline |
Definition at line 140 of file parallel_resize_vector.h.
|
inlinenoexcept |
Definition at line 75 of file parallel_resize_vector.h.
|
inlinenoexcept |
Definition at line 74 of file parallel_resize_vector.h.
|
inline |
Definition at line 172 of file parallel_resize_vector.h.
|
inline |
Definition at line 147 of file parallel_resize_vector.h.
|
inline |
Definition at line 166 of file parallel_resize_vector.h.
|
inline |
Definition at line 168 of file parallel_resize_vector.h.
|
inline |
Definition at line 94 of file parallel_resize_vector.h.
|
inline |
Definition at line 101 of file parallel_resize_vector.h.
|
inline |
Definition at line 122 of file parallel_resize_vector.h.
|
inline |
Definition at line 72 of file parallel_resize_vector.h.
|
inline |
Definition at line 77 of file parallel_resize_vector.h.
|
private |
Definition at line 181 of file parallel_resize_vector.h.
|
private |
Definition at line 182 of file parallel_resize_vector.h.
|
staticconstexprprivate |
Definition at line 179 of file parallel_resize_vector.h.
|
private |
Definition at line 180 of file parallel_resize_vector.h.