H::DynamicBuffer< DataType > Class Template Reference

Implementation of a simple, highly efficient, dynamic buffer. More...

#include <DynamicBuffer.hpp>

Collaboration diagram for H::DynamicBuffer< DataType >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void addToBuffer (const DataType *AddBuf, size_t BufLen)
 Add data to the buffer.
void clear ()
 Clear the buffer.
const DataType * getBuffer () const
 Get the buffer.
size_t length () const
 Get the buffer length.
 DynamicBuffer ()
 DynamicBuffer Default Constructor.
virtual ~DynamicBuffer ()
 DynamicBuffer Destructor.

Detailed Description

template<class DataType>
class H::DynamicBuffer< DataType >

Implementation of a simple, highly efficient, dynamic buffer.

Nothing in STL can currently be used as a buffer efficiently This uses realloc, and memcpy to be as fast as possible


Member Function Documentation

template<class DataType>
void H::DynamicBuffer< DataType >::addToBuffer ( const DataType *  AddBuf,
size_t  BufLen 
)

Add data to the buffer.

Parameters:
AddBuf Pointer to the data to be added
BufLen Length of data to be added

template<class DataType>
const DataType * H::DynamicBuffer< DataType >::getBuffer (  )  const

Get the buffer.

Returns:
The buffer itself

template<class DataType>
size_t H::DynamicBuffer< DataType >::length (  )  const

Get the buffer length.

Returns:
Length


The documentation for this class was generated from the following files:
Generated on Wed Jun 27 12:44:02 2007 for gizmod by  doxygen 1.4.7