#include <array_allocator.h>
Public Types | |
typedef Base | BaseType |
typedef Base | BaseType |
Public Member Functions | |
_ArrayAllocator (int n=N) | |
_ArrayAllocator (int n=N) | |
Base & | operator[] (int i) |
Base & | operator[] (int i) |
const Base & | operator[] (int i) const |
const Base & | operator[] (int i) const |
Base * | ptr () |
Base * | ptr () |
const Base * | ptr () const |
const Base * | ptr () const |
int | size () const |
int | size () const |
Static Public Attributes | |
static const int | TemplateSize = N |
Protected Attributes | |
Base | _svalues [N] |
This class implements a memory manager for a fixed size array of elements. It implements copy constructor, assigment and accessor to the elements via abracket operator
Definition at line 26 of file include/hogman_minimal/stuff/array_allocator.h.
typedef Base _ArrayAllocator< N, Base >::BaseType |
Definition at line 27 of file include/hogman_minimal/stuff/array_allocator.h.
typedef Base _ArrayAllocator< N, Base >::BaseType |
Definition at line 27 of file src/stuff/array_allocator.h.
_ArrayAllocator< N, Base >::_ArrayAllocator | ( | int | n = N | ) | [inline] |
constructs a fized size vector whose type is Base of size N
Definition at line 30 of file include/hogman_minimal/stuff/array_allocator.h.
_ArrayAllocator< N, Base >::_ArrayAllocator | ( | int | n = N | ) | [inline] |
constructs a fized size vector whose type is Base of size N
Definition at line 30 of file src/stuff/array_allocator.h.
Base& _ArrayAllocator< N, Base >::operator[] | ( | int | i | ) | [inline] |
const accessor to the ith element
Definition at line 45 of file include/hogman_minimal/stuff/array_allocator.h.
Base& _ArrayAllocator< N, Base >::operator[] | ( | int | i | ) | [inline] |
const accessor to the ith element
Definition at line 45 of file src/stuff/array_allocator.h.
const Base& _ArrayAllocator< N, Base >::operator[] | ( | int | i | ) | const [inline] |
accessor to the ith element
Definition at line 48 of file include/hogman_minimal/stuff/array_allocator.h.
const Base& _ArrayAllocator< N, Base >::operator[] | ( | int | i | ) | const [inline] |
accessor to the ith element
Definition at line 48 of file src/stuff/array_allocator.h.
Base* _ArrayAllocator< N, Base >::ptr | ( | ) | [inline] |
pointer to the storage base
Definition at line 39 of file include/hogman_minimal/stuff/array_allocator.h.
Base* _ArrayAllocator< N, Base >::ptr | ( | ) | [inline] |
pointer to the storage base
Definition at line 39 of file src/stuff/array_allocator.h.
const Base* _ArrayAllocator< N, Base >::ptr | ( | ) | const [inline] |
const pointer to the storage base
Definition at line 42 of file src/stuff/array_allocator.h.
const Base* _ArrayAllocator< N, Base >::ptr | ( | ) | const [inline] |
const pointer to the storage base
Definition at line 42 of file include/hogman_minimal/stuff/array_allocator.h.
int _ArrayAllocator< N, Base >::size | ( | void | ) | const [inline] |
size of the storage
Definition at line 36 of file src/stuff/array_allocator.h.
int _ArrayAllocator< N, Base >::size | ( | void | ) | const [inline] |
size of the storage
Definition at line 36 of file include/hogman_minimal/stuff/array_allocator.h.
Base _ArrayAllocator< N, Base >::_svalues [protected] |
Definition at line 50 of file include/hogman_minimal/stuff/array_allocator.h.
static const int _ArrayAllocator< N, Base >::TemplateSize = N [static] |
Definition at line 28 of file include/hogman_minimal/stuff/array_allocator.h.