//#include "PacketImpl.mpp"
#include "PacketImpl.ih"
-///////////////////////////////hh.p////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
namespace senf {
Fast annotations are considerable faster than complex and slow annotations. However, only
annotations which do not need constructor or destructor calls and which may be
- zero-initialized (on the memory level) are elegible as fast annotations.
+ zero-initialized (on the memory level) are legible as fast annotations.
It is thus desirable to eliminate any complex and slow annotations, if possible. To optimize
the annotation system, you may take the following steps:
// rerference/memory management
- void add_ref(refcount_t n=1);
- void release(refcount_t n=1);
+ void add_ref();
+ void release();
refcount_t refcount() const;
// Interpreter chain
template <class Annotation>
Annotation & annotation();
+ void clearAnnotations();
+ void assignAnnotations(PacketImpl const & other);
void dumpAnnotations(std::ostream & os);
/** \brief Internal: Keep PacketImpl instance alive
}}
-///////////////////////////////hh.e////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
#endif
#if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_PacketImpl_i_)
#define HH_SENF_Packets_PacketImpl_i_