Poco::Buffer< T > Class Template Reference
#include <Buffer.h>
List of all members.
Public Member Functions |
| const T * | begin () const |
| | Returns a pointer to the beginning of the buffer.
|
| T * | begin () |
| | Returns a pointer to the beginning of the buffer.
|
| | Buffer (std::size_t size) |
| const T * | end () const |
| | Returns a pointer to the end of the buffer.
|
| T * | end () |
| | Returns a pointer to end of the buffer.
|
| const T & | operator[] (std::size_t index) const |
| T & | operator[] (std::size_t index) |
| std::size_t | size () const |
| | Returns the size of the buffer.
|
| | ~Buffer () |
| | Destroys the Buffer.
|
Private Member Functions |
| | Buffer (const Buffer &) |
| | Buffer () |
| Buffer & | operator= (const Buffer &) |
Private Attributes |
| T * | _ptr |
| std::size_t | _size |
Detailed Description
template<class T>
class Poco::Buffer< T >
A very simple buffer class that allocates a buffer of a given type and size in the constructor and deallocates the buffer in the destructor.
This class is useful everywhere where a temporary buffer is needed.
Definition at line 51 of file Buffer.h.
Constructor & Destructor Documentation
Member Function Documentation
Returns a pointer to the beginning of the buffer.
Definition at line 85 of file Buffer.h.
Returns a pointer to the beginning of the buffer.
Definition at line 79 of file Buffer.h.
Returns a pointer to the end of the buffer.
Definition at line 97 of file Buffer.h.
Returns a pointer to end of the buffer.
Definition at line 91 of file Buffer.h.
template<class T>
| const T& Poco::Buffer< T >::operator[] |
( |
std::size_t |
index |
) |
const [inline] |
template<class T>
| T& Poco::Buffer< T >::operator[] |
( |
std::size_t |
index |
) |
[inline] |
Returns the size of the buffer.
Definition at line 73 of file Buffer.h.
Member Data Documentation
The documentation for this class was generated from the following file: