Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages
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 >:

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
|
||||||||||
|
Create a buffer of the given size. This is the only valid constructor. |
The documentation for this class was generated from the following file: