array_base Class Reference

#include <array.hpp>

Inheritance diagram for array_base:

Inheritance graph
[legend]
Collaboration diagram for array_base:

Collaboration graph
[legend]

List of all members.


Detailed Description

Mixin class for memory allocation to keep stdlib functions out of the headers.

Definition at line 49 of file array.hpp.


Protected Member Functions

void * allocate (const gsgl::index_t &num_bytes)
 array_base ()
void copy (void *dest, void *src, const gsgl::index_t &num_bytes)
void deallocate (void *)
void move (void *dest, void *src, const gsgl::index_t &num_bytes)
void * reallocate (void *, const gsgl::index_t &num_bytes)
void set (void *dest, const unsigned char &val, const gsgl::index_t &num_bytes)
virtual ~array_base ()

Constructor & Destructor Documentation

array_base (  )  [inline, protected]

Definition at line 53 of file array.hpp.

virtual ~array_base (  )  [inline, protected, virtual]

Definition at line 54 of file array.hpp.


Member Function Documentation

void * allocate ( const gsgl::index_t num_bytes  )  [protected]

Definition at line 45 of file array.cpp.

Referenced by simple_array::simple_array().

void copy ( void *  dest,
void *  src,
const gsgl::index_t num_bytes 
) [protected]

Definition at line 69 of file array.cpp.

void deallocate ( void *  ptr  )  [protected]

Definition at line 57 of file array.cpp.

Referenced by simple_array::~simple_array().

void move ( void *  dest,
void *  src,
const gsgl::index_t num_bytes 
) [protected]

Definition at line 63 of file array.cpp.

void * reallocate ( void *  ptr,
const gsgl::index_t num_bytes 
) [protected]

Definition at line 51 of file array.cpp.

Referenced by simple_array::resize().

void set ( void *  dest,
const unsigned char &  val,
const gsgl::index_t num_bytes 
) [protected]

Definition at line 75 of file array.cpp.


The documentation for this class was generated from the following files:

Generated on Sat Mar 1 13:50:05 2008 for Periapsis Project by  doxygen 1.5.5