Schnek
schnek::internal::SingleArrayAllocationData< T, SizeInfo > Class Template Reference

The data for a single array allocation. More...

#include <single-array-allocation.hpp>

Public Types

typedef std::function< void(const SizeInfo &)> UpdaterType
 

Public Member Functions

void addUpdater (void *key, const UpdaterType &updater)
 
void removeUpdater (void *key)
 
void update (const SizeInfo &sizeInfo)
 

Public Attributes

T * ptr
 

Detailed Description

template<typename T, typename SizeInfo>
class schnek::internal::SingleArrayAllocationData< T, SizeInfo >

The data for a single array allocation.

This class is used to store the data for a single array allocation. It stores the pointer to the data and a list of updaters. The updaters should be called when the data is resized.


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