Public Types | Public Member Functions | Static Public Attributes | Protected Attributes
_Array2DAllocator< N, M, Base > Struct Template Reference

#include <array_allocator.h>

List of all members.

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
Baseoperator[] (int i)
Baseoperator[] (int i)
const Baseoperator[] (int i) const
const Baseoperator[] (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]

Detailed Description

template<int N, int M, typename Base>
struct _Array2DAllocator< N, M, Base >

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.


Member Typedef Documentation

template<int N, int M, typename Base>
typedef Base _Array2DAllocator< N, M, Base >::BaseType
template<int N, int M, typename Base>
typedef Base _Array2DAllocator< N, M, Base >::BaseType

Definition at line 156 of file src/stuff/array_allocator.h.

template<int N, int M, typename Base>
typedef _Array2DAllocator<M,N,Base> _Array2DAllocator< N, M, Base >::TransposedType

Definition at line 159 of file src/stuff/array_allocator.h.

template<int N, int M, typename Base>
typedef _Array2DAllocator<M,N,Base> _Array2DAllocator< N, M, Base >::TransposedType

Constructor & Destructor Documentation

template<int N, int M, typename Base>
_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.

template<int N, int M, typename Base>
_Array2DAllocator< N, M, Base >::_Array2DAllocator ( int  rows_ = N,
int  cols_ = M 
) [inline]

constructor

Definition at line 162 of file src/stuff/array_allocator.h.


Member Function Documentation

template<int N, int M, typename Base>
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.

template<int N, int M, typename Base>
int _Array2DAllocator< N, M, Base >::cols ( ) const [inline]

returns the number of columns

Definition at line 177 of file src/stuff/array_allocator.h.

template<int N, int M, typename Base>
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.

template<int N, int M, typename Base>
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.

template<int N, int M, typename Base>
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.

template<int N, int M, typename Base>
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.

template<int N, int M, typename Base>
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.

template<int N, int M, typename Base>
int _Array2DAllocator< N, M, Base >::rows ( ) const [inline]

returns the number of rows

Definition at line 174 of file src/stuff/array_allocator.h.


Member Data Documentation

template<int N, int M, typename Base>
Base _Array2DAllocator< N, M, Base >::_svalues [protected]
template<int N, int M, typename Base>
static const int _Array2DAllocator< N, M, Base >::TemplateCols = M [static]
template<int N, int M, typename Base>
static const int _Array2DAllocator< N, M, Base >::TemplateRows = N [static]

The documentation for this struct was generated from the following files:


hogman_minimal
Author(s): Maintained by Juergen Sturm
autogenerated on Mon Oct 6 2014 00:06:59