Bayeux  3.4.1
Core Foundation library for SuperNEMO
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
datatools::vector_output_buffer Class Reference

Output stream buffer associated to a std::vector of characters (std::vector<char>) More...

#include <bayeux/datatools/memory_streambuf.h>

Inheritance diagram for datatools::vector_output_buffer:
datatools::ovectorstream

Public Types

typedef std::vector< char >::const_iterator iterator
 

Public Member Functions

 vector_output_buffer (size_t capacity_=1000, size_t increment_=1000, size_t max_capacity_=0)
 Constructor. More...
 
virtual ~vector_output_buffer ()
 
const std::vector< char > & buffer () const
 
void set_max_capacity (size_t max_capacity_)
 
void reset (size_t capacity_=1000, size_t increment_=1000, size_t max_capacity_=0)
 
size_t get_size () const
 
const char * get_address () const
 
void dump () const
 
int overflow (int c_)
 

Static Public Attributes

static const size_t MIN_CAPACITY = 128
 
static const size_t MIN_INCREMENT = 128
 
static const size_t DEFAULT_CAPACITY = 1024
 
static const size_t DEFAULT_INCREMENT = 0
 

Protected Member Functions

void _init (size_t capacity_)
 
void _set_increment (size_t increment_)
 

Detailed Description

Output stream buffer associated to a std::vector of characters (std::vector<char>)

Member Typedef Documentation

◆ iterator

typedef std::vector<char>::const_iterator datatools::vector_output_buffer::iterator

Constructor & Destructor Documentation

◆ vector_output_buffer()

datatools::vector_output_buffer::vector_output_buffer ( size_t  capacity_ = 1000,
size_t  increment_ = 1000,
size_t  max_capacity_ = 0 
)

Constructor.

◆ ~vector_output_buffer()

virtual datatools::vector_output_buffer::~vector_output_buffer ( )
virtual

Member Function Documentation

◆ _init()

void datatools::vector_output_buffer::_init ( size_t  capacity_)
protected

◆ _set_increment()

void datatools::vector_output_buffer::_set_increment ( size_t  increment_)
protected

◆ buffer()

const std::vector<char>& datatools::vector_output_buffer::buffer ( ) const

◆ dump()

void datatools::vector_output_buffer::dump ( ) const

◆ get_address()

const char* datatools::vector_output_buffer::get_address ( ) const

◆ get_size()

size_t datatools::vector_output_buffer::get_size ( ) const

◆ overflow()

int datatools::vector_output_buffer::overflow ( int  c_)

◆ reset()

void datatools::vector_output_buffer::reset ( size_t  capacity_ = 1000,
size_t  increment_ = 1000,
size_t  max_capacity_ = 0 
)

◆ set_max_capacity()

void datatools::vector_output_buffer::set_max_capacity ( size_t  max_capacity_)

Member Data Documentation

◆ DEFAULT_CAPACITY

const size_t datatools::vector_output_buffer::DEFAULT_CAPACITY = 1024
static

◆ DEFAULT_INCREMENT

const size_t datatools::vector_output_buffer::DEFAULT_INCREMENT = 0
static

◆ MIN_CAPACITY

const size_t datatools::vector_output_buffer::MIN_CAPACITY = 128
static

◆ MIN_INCREMENT

const size_t datatools::vector_output_buffer::MIN_INCREMENT = 128
static

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