Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes
_ArrayAllocator< 0, 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=0)
 _ArrayAllocator (int n=0)
 _ArrayAllocator (const _ArrayAllocator< 0, Base > &src)
 _ArrayAllocator (const _ArrayAllocator< 0, Base > &src)
_ArrayAllocator< 0, Base > & operator= (const _ArrayAllocator< 0, Base > &src)
_ArrayAllocator< 0, Base > & operator= (const _ArrayAllocator< 0, Base > &src)
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
void resize (int s)
void resize (int s)
int size () const
int size () const
 ~_ArrayAllocator ()
 ~_ArrayAllocator ()

Static Public Attributes

static const int TemplateSize = 0

Protected Member Functions

void allocate (int n)
void allocate (int n)
void copy (const Base *src)
void copy (const Base *src)
void deallocate ()
void deallocate ()

Protected Attributes

Base * _dvalues
int _size

Detailed Description

template<>
struct _ArrayAllocator< 0, Base >

This class implements a memory manager for a dynamically sized array of elements. It implements copy constructor, assigment and accessor to the elements via abracket operator. It is implemented as a specialization of the static type. It implements copy constructor, destructors and assignment operators, and it can e resized.

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


Member Typedef Documentation

typedef Base _ArrayAllocator< 0, Base >::BaseType
typedef Base _ArrayAllocator< 0, Base >::BaseType

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


Constructor & Destructor Documentation

_ArrayAllocator< 0, Base >::_ArrayAllocator ( int  n = 0) [inline]

constructs a fized size vector whose type is Base of size N

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

_ArrayAllocator< 0, Base >::~_ArrayAllocator ( ) [inline]

destructor, releases memory

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

_ArrayAllocator< 0, Base >::_ArrayAllocator ( const _ArrayAllocator< 0, Base > &  src) [inline]

copy

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

_ArrayAllocator< 0, Base >::_ArrayAllocator ( int  n = 0) [inline]

constructs a fized size vector whose type is Base of size N

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

_ArrayAllocator< 0, Base >::~_ArrayAllocator ( ) [inline]

destructor, releases memory

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

_ArrayAllocator< 0, Base >::_ArrayAllocator ( const _ArrayAllocator< 0, Base > &  src) [inline]

copy

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


Member Function Documentation

void _ArrayAllocator< 0, Base >::allocate ( int  n) [inline, protected]
void _ArrayAllocator< 0, Base >::allocate ( int  n) [inline, protected]

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

void _ArrayAllocator< 0, Base >::copy ( const Base *  src) [inline, protected]

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

void _ArrayAllocator< 0, Base >::copy ( const Base *  src) [inline, protected]
void _ArrayAllocator< 0, Base >::deallocate ( ) [inline, protected]

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

void _ArrayAllocator< 0, Base >::deallocate ( ) [inline, protected]
_ArrayAllocator<0,Base>& _ArrayAllocator< 0, Base >::operator= ( const _ArrayAllocator< 0, Base > &  src) [inline]

assignment

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

_ArrayAllocator<0,Base>& _ArrayAllocator< 0, Base >::operator= ( const _ArrayAllocator< 0, Base > &  src) [inline]

assignment

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

Base& _ArrayAllocator< 0, Base >::operator[] ( int  i) [inline]

accessor

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

Base& _ArrayAllocator< 0, Base >::operator[] ( int  i) [inline]

accessor

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

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

const accessor

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

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

const accessor

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

Base* _ArrayAllocator< 0, Base >::ptr ( ) [inline]

pointer to the base

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

Base* _ArrayAllocator< 0, Base >::ptr ( ) [inline]

pointer to the base

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

const Base* _ArrayAllocator< 0, Base >::ptr ( ) const [inline]

const pointer to the base

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

const Base* _ArrayAllocator< 0, Base >::ptr ( ) const [inline]

const pointer to the base

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

void _ArrayAllocator< 0, Base >::resize ( int  s) [inline]

resizes the storage

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

void _ArrayAllocator< 0, Base >::resize ( int  s) [inline]

resizes the storage

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

int _ArrayAllocator< 0, Base >::size ( ) const [inline]

returns the size

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

int _ArrayAllocator< 0, Base >::size ( ) const [inline]

returns the size

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


Member Data Documentation

Base * _ArrayAllocator< 0, Base >::_dvalues [protected]
int _ArrayAllocator< 0, Base >::_size [protected]
static const int _ArrayAllocator< 0, Base >::TemplateSize = 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