Public Member Functions | Private Member Functions | Private Attributes
Poco::Buffer< T > Class Template Reference

#include <Buffer.h>

List of all members.

Public Member Functions

T * begin ()
 Returns a pointer to the beginning of the buffer.
const T * begin () const
 Returns a pointer to the beginning of the buffer.
 Buffer (std::size_t size)
T * end ()
 Returns a pointer to end of the buffer.
const T * end () const
 Returns a pointer to the end of the buffer.
T & operator[] (std::size_t index)
const T & operator[] (std::size_t index) const
std::size_t size () const
 Returns the size of the buffer.
 ~Buffer ()
 Destroys the Buffer.

Private Member Functions

 Buffer ()
 Buffer (const Buffer &)
Bufferoperator= (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

template<class T>
Poco::Buffer< T >::Buffer ( std::size_t  size) [inline]

Definition at line 60 of file Buffer.h.

template<class T>
Poco::Buffer< T >::~Buffer ( ) [inline]

Destroys the Buffer.

Definition at line 67 of file Buffer.h.

template<class T>
Poco::Buffer< T >::Buffer ( ) [private]
template<class T>
Poco::Buffer< T >::Buffer ( const Buffer< T > &  ) [private]

Member Function Documentation

template<class T>
T* Poco::Buffer< T >::begin ( ) [inline]

Returns a pointer to the beginning of the buffer.

Definition at line 79 of file Buffer.h.

template<class T>
const T* Poco::Buffer< T >::begin ( ) const [inline]

Returns a pointer to the beginning of the buffer.

Definition at line 85 of file Buffer.h.

template<class T>
T* Poco::Buffer< T >::end ( ) [inline]

Returns a pointer to end of the buffer.

Definition at line 91 of file Buffer.h.

template<class T>
const T* Poco::Buffer< T >::end ( ) const [inline]

Returns a pointer to the end of the buffer.

Definition at line 97 of file Buffer.h.

template<class T>
Buffer& Poco::Buffer< T >::operator= ( const Buffer< T > &  ) [private]
template<class T>
T& Poco::Buffer< T >::operator[] ( std::size_t  index) [inline]

Definition at line 103 of file Buffer.h.

template<class T>
const T& Poco::Buffer< T >::operator[] ( std::size_t  index) const [inline]

Definition at line 110 of file Buffer.h.

template<class T>
std::size_t Poco::Buffer< T >::size ( ) const [inline]

Returns the size of the buffer.

Definition at line 73 of file Buffer.h.


Member Data Documentation

template<class T>
T* Poco::Buffer< T >::_ptr [private]

Definition at line 123 of file Buffer.h.

template<class T>
std::size_t Poco::Buffer< T >::_size [private]

Definition at line 122 of file Buffer.h.


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


pluginlib
Author(s): Tully Foote and Eitan Marder-Eppstein
autogenerated on Sat Dec 28 2013 17:20:20