WvStreams
|
The WvInPlaceBuf storage class. More...
#include <wvbufstore.h>
Public Member Functions | |
WvInPlaceBufStore (int _granularity, void *_data, size_t _avail, size_t _size, bool _autofree) | |
WvInPlaceBufStore (int _granularity, size_t _size) | |
void * | ptr () const |
size_t | size () const |
bool | get_autofree () const |
void | set_autofree (bool _autofree) |
void | reset (void *_data, size_t _avail, size_t _size, bool _autofree) |
void | setavail (size_t _avail) |
virtual size_t | used () const |
virtual const void * | get (size_t count) |
virtual void | unget (size_t count) |
virtual size_t | ungettable () const |
virtual void | zap () |
virtual size_t | free () const |
virtual void * | alloc (size_t count) |
virtual void | unalloc (size_t count) |
virtual size_t | unallocable () const |
virtual void * | mutablepeek (int offset, size_t count) |
WvInPlaceBufStore (int _granularity, void *_data, size_t _avail, size_t _size, bool _autofree) | |
WvInPlaceBufStore (int _granularity, size_t _size) | |
void * | ptr () const |
size_t | size () const |
bool | get_autofree () const |
void | set_autofree (bool _autofree) |
void | reset (void *_data, size_t _avail, size_t _size, bool _autofree) |
void | setavail (size_t _avail) |
virtual size_t | used () const |
virtual const void * | get (size_t count) |
virtual void | unget (size_t count) |
virtual size_t | ungettable () const |
virtual void | zap () |
virtual size_t | free () const |
virtual void * | alloc (size_t count) |
virtual void | unalloc (size_t count) |
virtual size_t | unallocable () const |
virtual void * | mutablepeek (int offset, size_t count) |
virtual bool | isreadable () const |
virtual bool | isreadable () const |
virtual size_t | optgettable () const |
virtual size_t | optgettable () const |
virtual void | skip (size_t count) |
virtual void | skip (size_t count) |
virtual size_t | peekable (int offset) const |
virtual size_t | peekable (int offset) const |
virtual size_t | optpeekable (int offset) const |
virtual size_t | optpeekable (int offset) const |
virtual const void * | peek (int offset, size_t count) |
virtual const void * | peek (int offset, size_t count) |
void | move (void *buf, size_t count) |
void | move (void *buf, size_t count) |
void | copy (void *buf, int offset, size_t count) |
void | copy (void *buf, int offset, size_t count) |
virtual bool | iswritable () const |
virtual bool | iswritable () const |
virtual size_t | optallocable () const |
virtual size_t | optallocable () const |
void | put (const void *data, size_t count) |
void | put (const void *data, size_t count) |
void | fastput (const void *data, size_t count) |
void | fastput (const void *data, size_t count) |
void | poke (const void *data, int offset, size_t count) |
void | poke (const void *data, int offset, size_t count) |
virtual void | merge (WvBufStore &instore, size_t count) |
virtual void | merge (WvBufStore &instore, size_t count) |
void | basicmerge (WvBufStore &instore, size_t count) |
void | basicmerge (WvBufStore &instore, size_t count) |
Protected Member Functions | |
virtual bool | usessubbuffers () const |
Returns true if the buffer uses subbuffers for storage. | |
virtual bool | usessubbuffers () const |
Returns true if the buffer uses subbuffers for storage. | |
virtual size_t | numsubbuffers () const |
Returns the number of subbuffers in the buffer. | |
virtual size_t | numsubbuffers () const |
Returns the number of subbuffers in the buffer. | |
virtual WvBufStore * | firstsubbuffer () const |
Returns the first subbuffer. | |
virtual WvBufStore * | firstsubbuffer () const |
Returns the first subbuffer. | |
virtual void | appendsubbuffer (WvBufStore *buffer, bool autofree) |
Appends a subbuffer to the buffer. | |
virtual void | appendsubbuffer (WvBufStore *buffer, bool autofree) |
Appends a subbuffer to the buffer. | |
virtual void | prependsubbuffer (WvBufStore *buffer, bool autofree) |
Prepends a subbuffer to the buffer. | |
virtual void | prependsubbuffer (WvBufStore *buffer, bool autofree) |
Prepends a subbuffer to the buffer. | |
virtual bool | unlinksubbuffer (WvBufStore *buffer, bool allowautofree) |
Unlinks the specified subbuffer. | |
virtual bool | unlinksubbuffer (WvBufStore *buffer, bool allowautofree) |
Unlinks the specified subbuffer. | |
Protected Attributes | |
void * | data |
size_t | xsize |
size_t | readidx |
size_t | writeidx |
bool | xautofree |
int | granularity |
The WvInPlaceBuf storage class.
Definition at line 251 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
WvInPlaceBufStore::WvInPlaceBufStore | ( | int | _granularity, |
void * | _data, | ||
size_t | _avail, | ||
size_t | _size, | ||
bool | _autofree | ||
) |
Definition at line 287 of file wvbufferstore.cc.
WvInPlaceBufStore::WvInPlaceBufStore | ( | int | _granularity, |
size_t | _size | ||
) |
Definition at line 295 of file wvbufferstore.cc.
|
virtual |
Definition at line 302 of file wvbufferstore.cc.
|
inline |
Definition at line 265 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
|
inline |
Definition at line 267 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
|
inline |
Definition at line 269 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
|
inline |
Definition at line 271 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
void WvInPlaceBufStore::reset | ( | void * | _data, |
size_t | _avail, | ||
size_t | _size, | ||
bool | _autofree = false |
||
) |
Definition at line 309 of file wvbufferstore.cc.
void WvInPlaceBufStore::setavail | ( | size_t | _avail | ) |
Definition at line 322 of file wvbufferstore.cc.
|
virtual |
Implements WvBufStore.
Definition at line 330 of file wvbufferstore.cc.
|
virtual |
Implements WvBufStore.
Definition at line 336 of file wvbufferstore.cc.
|
virtual |
Implements WvBufStore.
Definition at line 346 of file wvbufferstore.cc.
|
virtual |
Implements WvBufStore.
Definition at line 354 of file wvbufferstore.cc.
|
virtual |
Implements WvBufStore.
Definition at line 360 of file wvbufferstore.cc.
|
virtual |
Implements WvBufStore.
Definition at line 366 of file wvbufferstore.cc.
|
virtual |
Implements WvBufStore.
Definition at line 372 of file wvbufferstore.cc.
|
virtual |
Implements WvBufStore.
Definition at line 382 of file wvbufferstore.cc.
|
virtual |
Implements WvBufStore.
Definition at line 390 of file wvbufferstore.cc.
|
virtual |
Implements WvBufStore.
Definition at line 396 of file wvbufferstore.cc.
|
inline |
Definition at line 265 of file include/wvbufstore.h.
|
inline |
Definition at line 267 of file include/wvbufstore.h.
|
inline |
Definition at line 269 of file include/wvbufstore.h.
|
inline |
Definition at line 271 of file include/wvbufstore.h.
|
virtual |
Implements WvBufStore.
|
virtual |
Implements WvBufStore.
|
virtual |
Implements WvBufStore.
|
virtual |
Implements WvBufStore.
|
virtual |
Implements WvBufStore.
|
virtual |
Implements WvBufStore.
|
virtual |
Implements WvBufStore.
|
virtual |
Implements WvBufStore.
|
virtual |
Implements WvBufStore.
|
virtual |
Implements WvBufStore.
|
inlinevirtualinherited |
Definition at line 47 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
|
inlinevirtualinherited |
Definition at line 47 of file include/wvbufstore.h.
|
inlinevirtualinherited |
Definition at line 50 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
|
inlinevirtualinherited |
Definition at line 50 of file include/wvbufstore.h.
|
inlinevirtualinherited |
Definition at line 53 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
|
inlinevirtualinherited |
Definition at line 53 of file include/wvbufstore.h.
|
virtualinherited |
Definition at line 90 of file wvbufferstore.cc.
|
inlinevirtualinherited |
Definition at line 58 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
|
inlinevirtualinherited |
Definition at line 58 of file include/wvbufstore.h.
|
inlinevirtualinherited |
Definition at line 60 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
|
inlinevirtualinherited |
Definition at line 60 of file include/wvbufstore.h.
|
inherited |
Definition at line 111 of file wvbufferstore.cc.
|
inherited |
Definition at line 128 of file wvbufferstore.cc.
|
inlinevirtualinherited |
Definition at line 70 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
|
inlinevirtualinherited |
Definition at line 70 of file include/wvbufstore.h.
|
inlinevirtualinherited |
Definition at line 73 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
|
inlinevirtualinherited |
Definition at line 73 of file include/wvbufstore.h.
|
inherited |
Definition at line 146 of file wvbufferstore.cc.
|
inherited |
Definition at line 163 of file wvbufferstore.cc.
|
inherited |
Definition at line 170 of file wvbufferstore.cc.
|
virtualinherited |
Definition at line 198 of file wvbufferstore.cc.
|
inherited |
Definition at line 229 of file wvbufferstore.cc.
|
inlineprotectedvirtualinherited |
Returns true if the buffer uses subbuffers for storage.
Reimplemented in WvLinkedBufferStore, and WvLinkedBufferStore.
Definition at line 96 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
|
inlineprotectedvirtualinherited |
Returns true if the buffer uses subbuffers for storage.
Reimplemented in WvLinkedBufferStore, and WvLinkedBufferStore.
Definition at line 96 of file include/wvbufstore.h.
|
inlineprotectedvirtualinherited |
Returns the number of subbuffers in the buffer.
Reimplemented in WvLinkedBufferStore, and WvLinkedBufferStore.
Definition at line 100 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
|
inlineprotectedvirtualinherited |
Returns the number of subbuffers in the buffer.
Reimplemented in WvLinkedBufferStore, and WvLinkedBufferStore.
Definition at line 100 of file include/wvbufstore.h.
|
inlineprotectedvirtualinherited |
Returns the first subbuffer.
Returns: the buffer or NULL if none or not supported
Reimplemented in WvLinkedBufferStore, and WvLinkedBufferStore.
Definition at line 107 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
|
inlineprotectedvirtualinherited |
Returns the first subbuffer.
Returns: the buffer or NULL if none or not supported
Reimplemented in WvLinkedBufferStore, and WvLinkedBufferStore.
Definition at line 107 of file include/wvbufstore.h.
|
inlineprotectedvirtualinherited |
Appends a subbuffer to the buffer.
Reimplemented in WvLinkedBufferStore, and WvLinkedBufferStore.
Definition at line 111 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
|
inlineprotectedvirtualinherited |
Appends a subbuffer to the buffer.
Reimplemented in WvLinkedBufferStore, and WvLinkedBufferStore.
Definition at line 111 of file include/wvbufstore.h.
|
inlineprotectedvirtualinherited |
Prepends a subbuffer to the buffer.
Reimplemented in WvLinkedBufferStore, and WvLinkedBufferStore.
Definition at line 115 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
|
inlineprotectedvirtualinherited |
Prepends a subbuffer to the buffer.
Reimplemented in WvLinkedBufferStore, and WvLinkedBufferStore.
Definition at line 115 of file include/wvbufstore.h.
|
inlineprotectedvirtualinherited |
Unlinks the specified subbuffer.
Only autofrees the buffer if allowautofree == true. Returns: the autofree flag for the buffer
Reimplemented in WvLinkedBufferStore, and WvLinkedBufferStore.
Definition at line 123 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
|
inlineprotectedvirtualinherited |
Unlinks the specified subbuffer.
Only autofrees the buffer if allowautofree == true. Returns: the autofree flag for the buffer
Reimplemented in WvLinkedBufferStore, and WvLinkedBufferStore.
Definition at line 123 of file include/wvbufstore.h.
|
protected |
Definition at line 254 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
|
protected |
Definition at line 255 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
|
protected |
Definition at line 256 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
|
protected |
Definition at line 257 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
|
protected |
Definition at line 258 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.
|
protectedinherited |
Definition at line 33 of file debian/libwvstreams-dev/usr/include/wvstreams/wvbufstore.h.