TTK
|
This class describes a dynamic size data structure for thread safe computation. It is a linked list of arrays that also stores the current number of elements. Its key feature is that the addition of an element will never cause the moving of the data structure in memory, unlike an std::vector, making the access to an element thread safe even if another thread is adding elements. More...
#include <ArrayLinkedList.h>
Public Member Functions | |
ArrayLinkedList () | |
datatype * | addArrayElement (datatype element) |
Public Attributes | |
std::list< std::array< datatype, size > > | list_ |
int | numberOfElements_ |
std::array< unsigned char, 32 > | padding_ {} |
This class describes a dynamic size data structure for thread safe computation. It is a linked list of arrays that also stores the current number of elements. Its key feature is that the addition of an element will never cause the moving of the data structure in memory, unlike an std::vector, making the access to an element thread safe even if another thread is adding elements.
Definition at line 21 of file ArrayLinkedList.h.
|
inline |
Definition at line 31 of file ArrayLinkedList.h.
|
inline |
Definition at line 35 of file ArrayLinkedList.h.
std::list<std::array<datatype, size> > ttk::ArrayLinkedList< datatype, size >::list_ |
Definition at line 23 of file ArrayLinkedList.h.
int ttk::ArrayLinkedList< datatype, size >::numberOfElements_ |
Definition at line 24 of file ArrayLinkedList.h.
std::array<unsigned char, 32> ttk::ArrayLinkedList< datatype, size >::padding_ {} |
Definition at line 30 of file ArrayLinkedList.h.