comet::auto_buffer_t< T > Class Template Reference
[Miscelaneous utility classes.Miscelaneous utility classes.]

#include <comet/auto_buffer.h>

Collaboration diagram for comet::auto_buffer_t< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef size_t size_type

Public Member Functions

 auto_buffer_t (size_type size)
 ~auto_buffer_t () throw ()
 Auto-delete the buffer.
void clear () throw ()
 Clear the buffer.
bool empty () const throw ()
 Is the buffer empty.
void resize (size_type newSize) throw ()
 Resize the buffer.
T & at (size_type t) throw ()
 Return a reference to the specifed element.
T & operator[] (size_type t) throw ()
const T & at (size_type t) const throw ()
 Return a const reference to the specifed element.
const T & operator[] (size_type t) const throw ()
T * detach ()
 Detatch the memory.
T * get ()
 Return the memory.
const T * get () const

Detailed Description

template<typename T>
class comet::auto_buffer_t< T >

Simle auto-deleting buffer class. Non-copyable /returnable.


Constructor & Destructor Documentation

template<typename T>
comet::auto_buffer_t< T >::auto_buffer_t size_type  size  )  [inline, explicit]
 

Create a buffer of the given size. This is the only valid constructor.


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