Internal: Packet data storage. More...
#include <senf/Packets/PacketImpl.hh>
Classes | |
struct | Guard |
Internal: Keep PacketImpl instance alive. More... | |
Public Types | |
typedef senf::detail::packet::byte | byte |
typedef senf::detail::packet::raw_container | raw_container |
typedef senf::detail::packet::size_type | size_type |
typedef senf::detail::packet::difference_type | difference_type |
typedef senf::detail::packet::interpreter_list | interpreter_list |
typedef senf::detail::packet::iterator | iterator |
typedef senf::detail::packet::const_iterator | const_iterator |
typedef senf::detail::packet::refcount_t | refcount_t |
Static Public Member Functions | |
static size_type | maxPreallocHigh () |
static size_type | maxPreallocHeapcount () |
Static Public Member Functions inherited from senf::pool_alloc_mixin< PacketImpl > | |
static void * | operator new (size_t size) |
static void | operator delete (void *p, size_t size) |
Internal: Packet data storage.
This is the class holding the packet data and the interpreter chain. All manipulations of the packet data are performed via the interface exported here. This is very important, since PacketImpl will update the interpreters (that is the vector indices stored therein) whenever the data is changed.
Definition at line 112 of file PacketImpl.hh.
Definition at line 117 of file PacketImpl.hh.
Definition at line 123 of file PacketImpl.hh.
Definition at line 120 of file PacketImpl.hh.
Definition at line 121 of file PacketImpl.hh.
Definition at line 122 of file PacketImpl.hh.
Definition at line 118 of file PacketImpl.hh.
Definition at line 124 of file PacketImpl.hh.
Definition at line 119 of file PacketImpl.hh.
senf::detail::PacketImpl::PacketImpl | ( | ) |
senf::detail::PacketImpl::PacketImpl | ( | InputIterator | b, |
InputIterator | e | ||
) |
senf::detail::PacketImpl::PacketImpl | ( | byte * | data, |
size_type | size, | ||
size_type | chunkSize = 0u , |
||
size_type | offset = 0u |
||
) |
senf::detail::PacketImpl::~PacketImpl | ( | ) |
void senf::detail::PacketImpl::add_ref | ( | ) |
void* senf::detail::PacketImpl::allocateInterpreter | ( | ) |
Annotation& senf::detail::PacketImpl::annotation | ( | ) |
void senf::detail::PacketImpl::appendInterpreter | ( | PacketInterpreterBase * | p | ) |
Definition at line 186 of file PacketImpl.cc.
void senf::detail::PacketImpl::assignAnnotations | ( | PacketImpl const & | other | ) |
Definition at line 288 of file PacketImpl.cc.
iterator senf::detail::PacketImpl::begin | ( | ) |
void senf::detail::PacketImpl::clear | ( | PacketData * | self | ) |
Definition at line 208 of file PacketImpl.cc.
void senf::detail::PacketImpl::clearAnnotations | ( | ) |
Definition at line 280 of file PacketImpl.cc.
void senf::detail::PacketImpl::clearInterpreters | ( | ) |
void senf::detail::PacketImpl::deallocateInterpreter | ( | void * | address | ) |
void senf::detail::PacketImpl::dumpAnnotations | ( | std::ostream & | os | ) |
Definition at line 270 of file PacketImpl.cc.
iterator senf::detail::PacketImpl::end | ( | ) |
void senf::detail::PacketImpl::erase | ( | PacketData * | self, |
iterator | pos | ||
) |
void senf::detail::PacketImpl::erase | ( | PacketData * | self, |
iterator | first, | ||
iterator | last | ||
) |
PacketInterpreterBase* senf::detail::PacketImpl::first | ( | ) |
void senf::detail::PacketImpl::insert | ( | PacketData * | self, |
iterator | pos, | ||
byte | v | ||
) |
void senf::detail::PacketImpl::insert | ( | PacketData * | self, |
iterator | pos, | ||
size_type | n, | ||
byte | v | ||
) |
void senf::detail::PacketImpl::insert | ( | PacketData * | self, |
iterator | pos, | ||
ForwardIterator | f, | ||
ForwardIterator | l | ||
) |
PacketInterpreterBase* senf::detail::PacketImpl::last | ( | ) |
|
static |
|
static |
void senf::detail::PacketImpl::memDebug | ( | std::ostream & | os | ) |
Definition at line 138 of file PacketImpl.cc.
PacketInterpreterBase* senf::detail::PacketImpl::next | ( | PacketInterpreterBase * | p | ) |
void senf::detail::PacketImpl::prependInterpreter | ( | PacketInterpreterBase * | p | ) |
Definition at line 192 of file PacketImpl.cc.
void senf::detail::PacketImpl::prependInterpreter | ( | PacketInterpreterBase * | p, |
PacketInterpreterBase * | before | ||
) |
Definition at line 198 of file PacketImpl.cc.
PacketInterpreterBase* senf::detail::PacketImpl::prev | ( | PacketInterpreterBase * | p | ) |
refcount_t senf::detail::PacketImpl::refcount | ( | ) | const |
bool senf::detail::PacketImpl::release | ( | ) |
Definition at line 120 of file PacketImpl.cc.
void senf::detail::PacketImpl::releaseExternalMemory | ( | ) |
size_type senf::detail::PacketImpl::size | ( | ) |
void senf::detail::PacketImpl::truncateDataBackwards | ( | PacketData * | self, |
iterator | pos | ||
) |
void senf::detail::PacketImpl::truncateInterpreters | ( | PacketInterpreterBase * | p | ) |
void senf::detail::PacketImpl::truncateInterpretersBackwards | ( | PacketInterpreterBase * | p | ) |
void senf::detail::PacketImpl::truncateRawDataForward | ( | iterator | pos | ) |
bool senf::detail::PacketImpl::usingExternalMemory | ( | ) | const |