|
DABC (Data Acquisition Backbone Core)
2.9.9
|
Manipulator with dabc::Buffer class. More...
#include <dabc/Pointer.h>
Public Member Functions | |
| Buffer | buf () |
| float | consumed_size () const |
| Returns ratio between filled size and buffer size, 0 when exmpy. More... | |
| BufferSize_t | copyfrom (const Pointer &src, BufferSize_t sz=0) throw () |
| Returns actual size copied. More... | |
| BufferSize_t | copyfrom (const void *src, BufferSize_t sz) |
| BufferSize_t | copyfrom_shift (const Pointer &src, BufferSize_t sz=0) throw () |
| Returns actual size copied and shifted. More... | |
| BufferSize_t | copyfrom_shift (const void *src, BufferSize_t sz) throw () |
| BufferSize_t | copyfromstr (const char *str, unsigned len=0) throw () |
| BufferSize_t | copyto (Pointer &src, BufferSize_t sz) const throw () |
| BufferSize_t | copyto (void *tgt, BufferSize_t sz) const throw () |
| BufferSize_t | copyto_shift (Pointer &src, BufferSize_t sz) throw () |
| BufferSize_t | copyto_shift (void *tgt, BufferSize_t sz) throw () |
| int | distance_to (const Pointer &child) const |
| int | distance_to_ownbuf () const |
| BufferSize_t | fullsize () const |
| bool | is_same_buf (const Pointer &ptr) const |
| bool | null () const |
| void * | operator() () const |
| void | operator+= (BufferSize_t sz) throw () |
| Pointer & | operator= (const Buffer &src) |
| Pointer & | operator= (const Pointer &src) |
| Pointer () | |
| Pointer (const Buffer &buf, unsigned pos=0, unsigned len=0) | |
| Pointer (const Pointer &src, BufferSize_t pos=0, BufferSize_t fullsz=0) | |
| Pointer (const void *buf, BufferSize_t sz) | |
| void * | ptr () const |
| BufferSize_t | rawsize () const |
| void | reset () |
| void | reset (const Buffer &src, BufferSize_t pos=0, BufferSize_t fullsz=0) |
| void | reset (const Pointer &src, BufferSize_t pos=0, BufferSize_t fullsz=0) |
| void | reset (void *buf, BufferSize_t sz) |
| unsigned | segmid () const |
| void | setfullsize (BufferSize_t sz) |
| BufferSize_t | shift (BufferSize_t sz) throw () |
Protected Member Functions | |
| void | long_shift (BufferSize_t sz) |
Protected Attributes | |
| Buffer | fBuf |
| we keep reference on the buffer, could be only used in same thread More... | |
| BufferSize_t | fFullSize |
| full size of memory from pointer till the end More... | |
| unsigned char * | fPtr |
| pointer on the raw buffer More... | |
| BufferSize_t | fRawSize |
| size of contiguous memory, pointed by fPtr More... | |
| unsigned | fSegm |
| segment id More... | |
Friends | |
| class | Buffer |
Manipulator with dabc::Buffer class.
dabc::Buffer can contain segmented lists of memory regions. dabc::Pointer class provides method which let work with such segmented memory as with contiguous region.
|
inline |
|
inline |
|
inline |
|
protected |
Definition at line 25 of file Pointer.cxx.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline | ||||||||||||||
|
inline |
|
inline | ||||||||||||||
| dabc::BufferSize_t dabc::Pointer::copyto | ( | void * | tgt, |
| BufferSize_t | sz | ||
| ) | const | ||
| throw | ( | ||
| ) | |||
Definition at line 98 of file Pointer.cxx.
|
inline | ||||||||||||||||||||
| dabc::BufferSize_t dabc::Pointer::copyto | ( | Pointer & | src, |
| BufferSize_t | sz | ||
| ) | const | ||
| throw | ( | ||
| ) | |||
Definition at line 93 of file Pointer.cxx.
|
inline | ||||||||||||||||||||
| dabc::BufferSize_t dabc::Pointer::copyfrom | ( | const Pointer & | src, |
| BufferSize_t | sz = 0 |
||
| ) | |||
| throw | ( | ||
| ) | |||
Returns actual size copied.
Definition at line 54 of file Pointer.cxx.
|
inline | ||||||||||||||||||||
| dabc::BufferSize_t dabc::Pointer::copyfrom | ( | const void * | src, |
| BufferSize_t | sz | ||
| ) |
Definition at line 110 of file Pointer.cxx.
|
inline | ||||||||||||||||||||
| dabc::BufferSize_t dabc::Pointer::copyfromstr | ( | const char * | str, |
| unsigned | len = 0 |
||
| ) | |||
| throw | ( | ||
| ) | |||
Definition at line 129 of file Pointer.cxx.
| int dabc::Pointer::distance_to | ( | const Pointer & | child | ) | const |
Definition at line 134 of file Pointer.cxx.
| float dabc::Pointer::consumed_size | ( | ) | const |
Returns ratio between filled size and buffer size, 0 when exmpy.
Definition at line 155 of file Pointer.cxx.
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |