JASSv2
Public Member Functions | Public Attributes | List of all members
JASS::dynamic_array< TYPE >::node Class Reference

The array is stored as a linked list of nodes where each node points to some number of elements. More...

#include <dynamic_array.h>

Collaboration diagram for JASS::dynamic_array< TYPE >::node:
Collaboration graph
[legend]

Public Member Functions

 node (allocator &pool, size_t size)
 Constructor. More...
 

Public Attributes

TYPE * data
 The array data for this node.
 
nodenext
 Pointer to the next node in the chain.
 
size_t allocated
 The size of this node's data object (in elements).
 
std::atomic< size_t > used
 The number of elements in data that are used (always <= allocated).
 

Detailed Description

template<typename TYPE>
class JASS::dynamic_array< TYPE >::node

The array is stored as a linked list of nodes where each node points to some number of elements.

Constructor & Destructor Documentation

◆ node()

template<typename TYPE>
JASS::dynamic_array< TYPE >::node::node ( allocator pool,
size_t  size 
)
inline

Constructor.

Parameters
pool[in] The pool allocator used to allocate the data controled by this node.
size[in] The size (in elements) of the data to be controlled by this node.

The documentation for this class was generated from the following file: