Wildmeshing Toolkit
|
#include <DynamicArray.hpp>
Classes | |
class | Iterator |
Public Member Functions | |
T & | operator[] (const uint64_t index) |
const T & | operator[] (const uint64_t index) const |
void | emplace_back (const T &val) |
uint64_t | size () const |
uint64_t | capacity () const |
void | reserve (const uint64_t new_capacity) |
bool | uses_vector () const |
Iterator | begin () const |
Iterator | end () const |
Static Public Member Functions | |
constexpr static uint64_t | array_size () |
Return the size of the static array. More... | |
Private Member Functions | |
void | switch_to_vector () |
Private Attributes | |
std::array< T, ArraySize > | m_array |
std::vector< T > | m_vector |
bool | m_use_vector = false |
uint64_t | m_end_index = 0 |
Definition at line 10 of file DynamicArray.hpp.
|
inlinestaticconstexpr |
Return the size of the static array.
This function does NOT return the size of the DynamicArray!
Definition at line 71 of file DynamicArray.hxx.
|
inline |
Definition at line 46 of file DynamicArray.hpp.
uint64_t wmtk::utils::DynamicArray< T, ArraySize >::capacity |
Definition at line 62 of file DynamicArray.hxx.
void wmtk::utils::DynamicArray< T, ArraySize >::emplace_back | ( | const T & | val | ) |
Definition at line 35 of file DynamicArray.hxx.
Referenced by wmtk::TriMesh::TriMeshOperationExecutor::collapse_edge().
|
inline |
Definition at line 47 of file DynamicArray.hpp.
References wmtk::utils::DynamicArray< T, ArraySize >::m_end_index.
T & wmtk::utils::DynamicArray< T, ArraySize >::operator[] | ( | const uint64_t | index | ) |
Definition at line 13 of file DynamicArray.hxx.
const T & wmtk::utils::DynamicArray< T, ArraySize >::operator[] | ( | const uint64_t | index | ) | const |
Definition at line 24 of file DynamicArray.hxx.
void wmtk::utils::DynamicArray< T, ArraySize >::reserve | ( | const uint64_t | new_capacity | ) |
Definition at line 77 of file DynamicArray.hxx.
uint64_t wmtk::utils::DynamicArray< T, ArraySize >::size |
Definition at line 56 of file DynamicArray.hxx.
|
private |
Definition at line 97 of file DynamicArray.hxx.
References wmtk::logger().
bool wmtk::utils::DynamicArray< T, ArraySize >::uses_vector |
Definition at line 91 of file DynamicArray.hxx.
|
private |
Definition at line 53 of file DynamicArray.hpp.
|
private |
Definition at line 57 of file DynamicArray.hpp.
Referenced by wmtk::utils::DynamicArray< T, ArraySize >::end().
|
private |
Definition at line 56 of file DynamicArray.hpp.
|
private |
Definition at line 54 of file DynamicArray.hpp.