ders::mem_buf Class Reference

Helper class for buf_cache to ensure exception safety. More...

#include <buf_cache.hpp>

List of all members.

Public Member Functions

 mem_buf (void *bf)
 ~mem_buf ()
void * get () const
void release ()


Detailed Description

Helper class for buf_cache to ensure exception safety.

Definition at line 27 of file buf_cache.hpp.


Constructor & Destructor Documentation

ders::mem_buf::mem_buf ( void *  bf  )  [inline]

Definition at line 34 of file buf_cache.hpp.

00034 : buf(bf) {}

ders::mem_buf::~mem_buf (  )  [inline]

Definition at line 35 of file buf_cache.hpp.

00035 { operator delete(buf); }


Member Function Documentation

void* ders::mem_buf::get (  )  const [inline]

Definition at line 37 of file buf_cache.hpp.

00037 { return buf; }

void ders::mem_buf::release (  )  [inline]

Definition at line 38 of file buf_cache.hpp.

00038 { buf=0; }


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

Generated on Tue Dec 8 11:35:32 2009 for derslib by  doxygen 1.5.5