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

#include <array_allocator.h>

List of all members.

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]

Detailed Description

template<int N, typename Base>
struct _ArrayAllocator< N, Base >

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.


Member Typedef Documentation

template<int N, typename Base>
typedef Base _ArrayAllocator< N, Base >::BaseType
template<int N, typename Base>
typedef Base _ArrayAllocator< N, Base >::BaseType

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


Constructor & Destructor Documentation

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

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


Member Function Documentation

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

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

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

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

template<int N, typename Base>
Base* _ArrayAllocator< N, Base >::ptr ( ) [inline]

pointer to the storage base

Definition at line 39 of file include/hogman_minimal/stuff/array_allocator.h.

template<int N, typename Base>
Base* _ArrayAllocator< N, Base >::ptr ( ) [inline]

pointer to the storage base

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

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

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

template<int N, typename Base>
int _ArrayAllocator< N, Base >::size ( ) const [inline]

size of the storage

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

template<int N, typename Base>
int _ArrayAllocator< N, Base >::size ( ) const [inline]

size of the storage

Definition at line 36 of file include/hogman_minimal/stuff/array_allocator.h.


Member Data Documentation

template<int N, typename Base>
Base _ArrayAllocator< N, Base >::_svalues [protected]
template<int N, typename Base>
static const int _ArrayAllocator< N, Base >::TemplateSize = N [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