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

#include <array_allocator.h>

List of all members.

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

Detailed Description

template<>
struct _Array2DAllocator< 0, 0, Base >

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.


Member Typedef Documentation

typedef Base _Array2DAllocator< 0, 0, Base >::BaseType
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

Constructor & Destructor Documentation

_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.


Member Function Documentation

void _Array2DAllocator< 0, 0, Base >::allocate ( int  n,
int  m 
) [inline, protected]
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]
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]
_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.


Member Data Documentation

int _Array2DAllocator< 0, 0, Base >::_cols [protected]
Base ** _Array2DAllocator< 0, 0, Base >::_dvalues [protected]
int _Array2DAllocator< 0, 0, Base >::_rows [protected]
static const int _Array2DAllocator< 0, 0, Base >::TemplateCols = 0 [static]
static const int _Array2DAllocator< 0, 0, Base >::TemplateRows = 0 [static]

The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


hogman_minimal
Author(s): Maintained by Juergen Sturm
autogenerated on Wed Dec 26 2012 15:36:50