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


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