X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FPacketImpl.cci;h=1e0cad02d909e03366fe05e46a3c2ccf3660846d;hb=51b10105e78a9ffee631223f50e63aa28bb5d2b4;hp=40489bf3888b554f49b2706a1dbce4f6945b9f33;hpb=10985d71f77b627bc4da543d7114feb7c4529329;p=senf.git diff --git a/Packets/PacketImpl.cci b/Packets/PacketImpl.cci index 40489bf..1e0cad0 100644 --- a/Packets/PacketImpl.cci +++ b/Packets/PacketImpl.cci @@ -30,6 +30,21 @@ #define prefix_ inline ///////////////////////////////cci.p/////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////// +// senf::detail::AnnotationIndexerBase + +prefix_ std::vector & senf::detail::AnnotationIndexerBase::small() +{ + static std::vector smalls; + return smalls; +} + +/////////////////////////////////////////////////////////////////////////// +// senf::detail::AnnotationP + +prefix_ senf::detail::AnnotationP::~AnnotationP() +{} + // Memory management: // // * The PacketImpl destructor will *explicitly* clean-up the interpreters_ list by removing @@ -57,20 +72,13 @@ // senf::detail::PacketImpl prefix_ senf::detail::PacketImpl::PacketImpl() - : refcount_(0) + : refcount_(0), annotations_(AnnotationIndexerBase::maxAnnotations) {} prefix_ senf::detail::PacketImpl::PacketImpl(size_type size, byte initValue) - : refcount_(0), data_(size,initValue) + : refcount_(0), data_(size,initValue), annotations_(AnnotationIndexerBase::maxAnnotations) {} -prefix_ senf::detail::PacketImpl::~PacketImpl() -{ - // We increment refcount_ to ensure, release() won't call delete again - ++refcount_; - eraseInterpreters(interpreters_.begin(), interpreters_.end()); -} - // rerference/memory management prefix_ void senf::detail::PacketImpl::add_ref(refcount_t n)