rpa::tmp_buffer Class Reference

List of all members.

Public Member Functions

 tmp_buffer (size_t aNb)
 ~tmp_buffer ()
char * ptr (void)

Private Attributes

char * _buf

Detailed Description

This is equivalent to a auto_ptr, but it may be necessary to use another solution, for example having a pool of buffers. If the buffer is small enough, it is possible to use alloca.


Constructor & Destructor Documentation

rpa::tmp_buffer::tmp_buffer ( size_t  aNb  )  [inline]

rpa::tmp_buffer::~tmp_buffer (  )  [inline]


Member Function Documentation

char* rpa::tmp_buffer::ptr ( void   )  [inline]


Member Data Documentation

char* rpa::tmp_buffer::_buf [private]


The documentation for this class was generated from the following file:
Generated on Tue Sep 25 10:20:38 2007 for rpa by  doxygen 1.4.7