Public Member Functions | Private Attributes

ana::detail::read_buffer_implementation Class Reference

A simple buffer to read things on, supports conversion to string. More...

#include <buffers.hpp>

List of all members.

Public Member Functions

 read_buffer_implementation (size_t size)
 Creates a new buffer in heap.
void resize (size_t new_size)
 Resize the buffer, this won't affect the amount of memory usage.
 ~read_buffer_implementation ()
 Deletes the buffer from heap.
char * base_char () const
 Get the base address.
void * base () const
 Get the base address.
size_t size () const
 Get the size of the buffer.
std::string string ()
 Create a string from the buffer.
template<class T >
void copy_to (T &x)

Private Attributes

char * base_
size_t size_

Detailed Description

A simple buffer to read things on, supports conversion to string.

Definition at line 49 of file buffers.hpp.


Constructor & Destructor Documentation

ana::detail::read_buffer_implementation::read_buffer_implementation ( size_t  size  )  [inline]

Creates a new buffer in heap.

Parameters:
size : The size of the buffer.

Definition at line 57 of file buffers.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:19:18 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs