#include <array_allocator.h>
Public Types | |
typedef Base | BaseType |
typedef Base | BaseType |
typedef _Array2DAllocator < 0, 0, Base > | TransposedType |
typedef _Array2DAllocator < 0, 0, Base > | TransposedType |
Public Member Functions | |
_Array2DAllocator (int rows_=0, int cols_=0) | |
_Array2DAllocator (int rows_=0, int cols_=0) | |
_Array2DAllocator (const _Array2DAllocator< 0, 0, Base > &src) | |
_Array2DAllocator (const _Array2DAllocator< 0, 0, Base > &src) | |
int | cols () const |
int | cols () const |
_Array2DAllocator< 0, 0, Base > & | operator= (const _Array2DAllocator< 0, 0, Base > &src) |
_Array2DAllocator< 0, 0, Base > & | operator= (const _Array2DAllocator< 0, 0, Base > &src) |
Base * | operator[] (int i) |
Base * | operator[] (int i) |
const Base * | operator[] (int i) const |
const Base * | operator[] (int i) const |
void | resize (int n, int m) |
void | resize (int n, int m) |
int | rows () const |
int | rows () const |
~_Array2DAllocator () | |
~_Array2DAllocator () | |
Static Public Attributes | |
static const int | TemplateCols = 0 |
static const int | TemplateRows = 0 |
Protected Member Functions | |
void | allocate (int n, int m) |
void | allocate (int n, int m) |
void | copy (Base **const src) |
void | copy (Base **const src) |
void | deallocate () |
void | deallocate () |
Protected Attributes | |
int | _cols |
Base ** | _dvalues |
int | _rows |
This class implements a memory manager for a dynamic size 2D array of elements. It implements copy constructor, assigment and accessor to the elements via abracket operator
Definition at line 186 of file include/hogman_minimal/stuff/array_allocator.h.
typedef Base _Array2DAllocator< 0, 0, Base >::BaseType |
Definition at line 187 of file include/hogman_minimal/stuff/array_allocator.h.
typedef Base _Array2DAllocator< 0, 0, Base >::BaseType |
Definition at line 187 of file src/stuff/array_allocator.h.
typedef _Array2DAllocator<0,0,Base> _Array2DAllocator< 0, 0, Base >::TransposedType |
Definition at line 190 of file src/stuff/array_allocator.h.
typedef _Array2DAllocator<0,0,Base> _Array2DAllocator< 0, 0, Base >::TransposedType |
Definition at line 190 of file include/hogman_minimal/stuff/array_allocator.h.
_Array2DAllocator< 0, 0, Base >::~_Array2DAllocator | ( | ) | [inline] |
destructs the storage
Definition at line 199 of file include/hogman_minimal/stuff/array_allocator.h.
_Array2DAllocator< 0, 0, Base >::_Array2DAllocator | ( | int | rows_ = 0 , |
int | cols_ = 0 |
||
) | [inline] |
constructs an rows_ by columns_ 2D array
Definition at line 204 of file include/hogman_minimal/stuff/array_allocator.h.
_Array2DAllocator< 0, 0, Base >::_Array2DAllocator | ( | const _Array2DAllocator< 0, 0, Base > & | src | ) | [inline] |
copy constructor
Definition at line 209 of file include/hogman_minimal/stuff/array_allocator.h.
_Array2DAllocator< 0, 0, Base >::~_Array2DAllocator | ( | ) | [inline] |
destructs the storage
Definition at line 199 of file src/stuff/array_allocator.h.
_Array2DAllocator< 0, 0, Base >::_Array2DAllocator | ( | int | rows_ = 0 , |
int | cols_ = 0 |
||
) | [inline] |
constructs an rows_ by columns_ 2D array
Definition at line 204 of file src/stuff/array_allocator.h.
_Array2DAllocator< 0, 0, Base >::_Array2DAllocator | ( | const _Array2DAllocator< 0, 0, Base > & | src | ) | [inline] |
copy constructor
Definition at line 209 of file src/stuff/array_allocator.h.
void _Array2DAllocator< 0, 0, Base >::allocate | ( | int | n, |
int | m | ||
) | [inline, protected] |
Definition at line 248 of file include/hogman_minimal/stuff/array_allocator.h.
void _Array2DAllocator< 0, 0, Base >::allocate | ( | int | n, |
int | m | ||
) | [inline, protected] |
Definition at line 248 of file src/stuff/array_allocator.h.
int _Array2DAllocator< 0, 0, Base >::cols | ( | ) | const [inline] |
number of cols
Definition at line 225 of file include/hogman_minimal/stuff/array_allocator.h.
int _Array2DAllocator< 0, 0, Base >::cols | ( | ) | const [inline] |
number of cols
Definition at line 225 of file src/stuff/array_allocator.h.
void _Array2DAllocator< 0, 0, Base >::copy | ( | Base **const | src | ) | [inline, protected] |
Definition at line 262 of file include/hogman_minimal/stuff/array_allocator.h.
void _Array2DAllocator< 0, 0, Base >::copy | ( | Base **const | src | ) | [inline, protected] |
Definition at line 262 of file src/stuff/array_allocator.h.
void _Array2DAllocator< 0, 0, Base >::deallocate | ( | ) | [inline, protected] |
Definition at line 237 of file src/stuff/array_allocator.h.
void _Array2DAllocator< 0, 0, Base >::deallocate | ( | ) | [inline, protected] |
Definition at line 237 of file include/hogman_minimal/stuff/array_allocator.h.
_Array2DAllocator<0,0,Base>& _Array2DAllocator< 0, 0, Base >::operator= | ( | const _Array2DAllocator< 0, 0, Base > & | src | ) | [inline] |
assignment
Definition at line 215 of file include/hogman_minimal/stuff/array_allocator.h.
_Array2DAllocator<0,0,Base>& _Array2DAllocator< 0, 0, Base >::operator= | ( | const _Array2DAllocator< 0, 0, Base > & | src | ) | [inline] |
assignment
Definition at line 215 of file src/stuff/array_allocator.h.
Base* _Array2DAllocator< 0, 0, Base >::operator[] | ( | int | i | ) | [inline] |
returns the pointer to the ith row
Definition at line 193 of file src/stuff/array_allocator.h.
Base* _Array2DAllocator< 0, 0, Base >::operator[] | ( | int | i | ) | [inline] |
returns the pointer to the ith row
Definition at line 193 of file include/hogman_minimal/stuff/array_allocator.h.
const Base* _Array2DAllocator< 0, 0, Base >::operator[] | ( | int | i | ) | const [inline] |
returns the const pointer to the ith row
Definition at line 196 of file src/stuff/array_allocator.h.
const Base* _Array2DAllocator< 0, 0, Base >::operator[] | ( | int | i | ) | const [inline] |
returns the const pointer to the ith row
Definition at line 196 of file include/hogman_minimal/stuff/array_allocator.h.
void _Array2DAllocator< 0, 0, Base >::resize | ( | int | n, |
int | m | ||
) | [inline] |
resizes the array. The content is destroyed.
Definition at line 228 of file src/stuff/array_allocator.h.
void _Array2DAllocator< 0, 0, Base >::resize | ( | int | n, |
int | m | ||
) | [inline] |
resizes the array. The content is destroyed.
Definition at line 228 of file include/hogman_minimal/stuff/array_allocator.h.
int _Array2DAllocator< 0, 0, Base >::rows | ( | ) | const [inline] |
number of rows
Definition at line 222 of file src/stuff/array_allocator.h.
int _Array2DAllocator< 0, 0, Base >::rows | ( | ) | const [inline] |
number of rows
Definition at line 222 of file include/hogman_minimal/stuff/array_allocator.h.
int _Array2DAllocator< 0, 0, Base >::_cols [protected] |
Definition at line 271 of file include/hogman_minimal/stuff/array_allocator.h.
Base ** _Array2DAllocator< 0, 0, Base >::_dvalues [protected] |
Definition at line 236 of file include/hogman_minimal/stuff/array_allocator.h.
int _Array2DAllocator< 0, 0, Base >::_rows [protected] |
Definition at line 272 of file include/hogman_minimal/stuff/array_allocator.h.
static const int _Array2DAllocator< 0, 0, Base >::TemplateCols = 0 [static] |
Definition at line 189 of file include/hogman_minimal/stuff/array_allocator.h.
static const int _Array2DAllocator< 0, 0, Base >::TemplateRows = 0 [static] |
Definition at line 188 of file include/hogman_minimal/stuff/array_allocator.h.