#include <lazy_alloc_array.h>
|  | 
|  | LazyAllocArray () | 
|  | 
| template<typename FCreate > | 
| std::shared_ptr< TElem > | Get (int index, FCreate creator) | 
|  | Get element of corresponding index, if it is not created create by creator.  More... 
 | 
|  | 
| template<typename FVisit > | 
| void | ForEach (FVisit fvisit) | 
|  | for each not null element of the array, call fvisit  More... 
 | 
|  | 
| void | Clear () | 
|  | clear all the allocated elements in array  More... 
 | 
|  | 
| void | SignalForKill () | 
|  | 
template<typename TElem > 
 
 
template<typename TElem > 
 
clear all the allocated elements in array 
 
 
template<typename TElem > 
template<typename FVisit > 
 
for each not null element of the array, call fvisit 
- Parameters
- 
| fvisit | a function of (size_t, TElem*) |  
 
 
 
template<typename TElem > 
template<typename FCreate > 
 
Get element of corresponding index, if it is not created create by creator. 
- Parameters
- 
| index | the array index position |  | creator | a lambda function to create new element when needed. |  
 
 
 
template<typename TElem > 
 
 
The documentation for this class was generated from the following file: