$search

_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)
const Base & operator[] (int i) const
Base & operator[] (int i)
const Base & operator[] (int i) const
Base & operator[] (int i)
const Base * ptr () const
Base * ptr ()
const Base * ptr () const
Base * ptr ()
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

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

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

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 26 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 26 of file src/stuff/array_allocator.h.


Member Function Documentation

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

accessor to the ith element

Definition at line 44 of file src/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 41 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 44 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 41 of file include/hogman_minimal/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 38 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 35 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 38 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 35 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 32 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 32 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 Tue Mar 5 12:00:24 2013