databuf< T > Struct Template Reference

#include <tools.h>

List of all members.

Public Types

enum  { OVERREAD = 1<<0, OVERWROTE = 1<<1 }

Public Member Functions

template<class U >
 databuf (T *buf, U maxlen)
const T & get ()
databuf subbuf (int sz)
void put (const T &val)
void put (const T *vals, int numvals)
int length () const
int remaining () const
bool overread () const
bool overwrote () const
void forceoverread ()

Public Attributes

T * buf
int len
int maxlen
uchar flags

template<class T>
struct databuf< T >


Member Enumeration Documentation

template<class T >
anonymous enum

Enumerator:
OVERREAD 
OVERWROTE 


Constructor & Destructor Documentation

template<class T >
template<class U >
databuf< T >::databuf ( T *  buf,
U  maxlen 
) [inline]


Member Function Documentation

template<class T >
void databuf< T >::forceoverread (  )  [inline]

template<class T >
const T& databuf< T >::get (  )  [inline]

template<class T >
int databuf< T >::length (  )  const [inline]

template<class T >
bool databuf< T >::overread (  )  const [inline]

template<class T >
bool databuf< T >::overwrote (  )  const [inline]

template<class T >
void databuf< T >::put ( const T *  vals,
int  numvals 
) [inline]

template<class T >
void databuf< T >::put ( const T &  val  )  [inline]

template<class T >
int databuf< T >::remaining (  )  const [inline]

template<class T >
databuf databuf< T >::subbuf ( int  sz  )  [inline]


Member Data Documentation

template<class T >
T* databuf< T >::buf

template<class T >
uchar databuf< T >::flags

template<class T >
int databuf< T >::len

template<class T >
int databuf< T >::maxlen


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

Generated on Mon Dec 8 21:41:35 2008 for AssaultCube by  doxygen 1.5.7.1