WvStreams
Public Member Functions | Protected Types | Protected Attributes | List of all members
WvDynBufBase< T > Class Template Reference

A buffer that dynamically grows and shrinks based on demand. More...

#include <wvbufbase.h>

Inheritance diagram for WvDynBufBase< T >:
Inheritance graph
[legend]

Public Member Functions

 WvDynBufBase (size_t _minalloc=1024, size_t _maxalloc=1048576)
 Creates a new buffer. More...
 

Protected Types

typedef T Elem
 

Protected Attributes

WvDynBufStore mystore
 

Detailed Description

template<class T>
class WvDynBufBase< T >

A buffer that dynamically grows and shrinks based on demand.

"T" is the type of object to store, must be a primitive or a struct without special initialization, copy, or assignment semantics

Definition at line 953 of file wvbufbase.h.

Constructor & Destructor Documentation

◆ WvDynBufBase()

template<class T >
WvDynBufBase< T >::WvDynBufBase ( size_t  _minalloc = 1024,
size_t  _maxalloc = 1048576 
)
inlineexplicit

Creates a new buffer.

Provides some parameters for tuning response to buffer growth.

"_minalloc" is the minimum number of elements to allocate at once when creating a new internal buffer segment "_maxalloc" is the maximum number of elements to allocate at once when creating a new internal buffer segment before before reverting to a linear growth pattern

Definition at line 973 of file wvbufbase.h.


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