#include <array_allocator.h>
Public Types | |
typedef Base | BaseType |
typedef Base | BaseType |
typedef _Array2DAllocator< M, N, Base > | TransposedType |
typedef _Array2DAllocator< M, N, Base > | TransposedType |
Public Member Functions | |
_Array2DAllocator (int rows_=N, int cols_=M) | |
_Array2DAllocator (int rows_=N, int cols_=M) | |
int | cols () const |
int | cols () const |
Base * | operator[] (int i) |
Base * | operator[] (int i) |
const Base * | operator[] (int i) const |
const Base * | operator[] (int i) const |
int | rows () const |
int | rows () const |
Static Public Attributes | |
static const int | TemplateCols = M |
static const int | TemplateRows = N |
Protected Attributes | |
Base | _svalues [N][M] |
This class implements a memory manager for a fixed size 2D array of elements. It implements copy constructor, assigment and accessor to the elements via abracket operator
Definition at line 155 of file include/hogman_minimal/stuff/array_allocator.h.
typedef Base _Array2DAllocator< N, M, Base >::BaseType |
Definition at line 156 of file include/hogman_minimal/stuff/array_allocator.h.
typedef Base _Array2DAllocator< N, M, Base >::BaseType |
Definition at line 156 of file src/stuff/array_allocator.h.
typedef _Array2DAllocator<M,N,Base> _Array2DAllocator< N, M, Base >::TransposedType |
Definition at line 159 of file src/stuff/array_allocator.h.
typedef _Array2DAllocator<M,N,Base> _Array2DAllocator< N, M, Base >::TransposedType |
Definition at line 159 of file include/hogman_minimal/stuff/array_allocator.h.
_Array2DAllocator< N, M, Base >::_Array2DAllocator | ( | int | rows_ = N , |
int | cols_ = M |
||
) | [inline] |
constructor
Definition at line 162 of file include/hogman_minimal/stuff/array_allocator.h.
_Array2DAllocator< N, M, Base >::_Array2DAllocator | ( | int | rows_ = N , |
int | cols_ = M |
||
) | [inline] |
constructor
Definition at line 162 of file src/stuff/array_allocator.h.
int _Array2DAllocator< N, M, Base >::cols | ( | ) | const [inline] |
returns the number of columns
Definition at line 177 of file include/hogman_minimal/stuff/array_allocator.h.
int _Array2DAllocator< N, M, Base >::cols | ( | ) | const [inline] |
returns the number of columns
Definition at line 177 of file src/stuff/array_allocator.h.
Base* _Array2DAllocator< N, M, Base >::operator[] | ( | int | i | ) | [inline] |
returns the pointer to the ith row
Definition at line 168 of file include/hogman_minimal/stuff/array_allocator.h.
Base* _Array2DAllocator< N, M, Base >::operator[] | ( | int | i | ) | [inline] |
returns the pointer to the ith row
Definition at line 168 of file src/stuff/array_allocator.h.
const Base* _Array2DAllocator< N, M, Base >::operator[] | ( | int | i | ) | const [inline] |
returns the coinst pointer to the ith row
Definition at line 171 of file include/hogman_minimal/stuff/array_allocator.h.
const Base* _Array2DAllocator< N, M, Base >::operator[] | ( | int | i | ) | const [inline] |
returns the coinst pointer to the ith row
Definition at line 171 of file src/stuff/array_allocator.h.
int _Array2DAllocator< N, M, Base >::rows | ( | ) | const [inline] |
returns the number of rows
Definition at line 174 of file include/hogman_minimal/stuff/array_allocator.h.
int _Array2DAllocator< N, M, Base >::rows | ( | ) | const [inline] |
returns the number of rows
Definition at line 174 of file src/stuff/array_allocator.h.
Base _Array2DAllocator< N, M, Base >::_svalues [protected] |
Definition at line 179 of file include/hogman_minimal/stuff/array_allocator.h.
static const int _Array2DAllocator< N, M, Base >::TemplateCols = M [static] |
Definition at line 158 of file include/hogman_minimal/stuff/array_allocator.h.
static const int _Array2DAllocator< N, M, Base >::TemplateRows = N [static] |
Definition at line 157 of file include/hogman_minimal/stuff/array_allocator.h.