senf::PacketInterpreterBase Class Reference

Internal: Base packet interpreter class. More...

#include <senf/Packets/PacketInterpreter.hh>

Inheritance diagram for senf::PacketInterpreterBase:
Inheritance graph
[legend]

List of all members.


Detailed Description

Internal: Base packet interpreter class.

For internal use only.

This is the base class for the persistent interpreter. This class encapsulates all the functionality accessible via the packet handle, most handle operations are just forwarded.

Definition at line 53 of file PacketInterpreter.hh.


Classes

struct   Factory
  Internal: Abstract packet factory. More...

Public Types

enum   Append_t { Append }
enum   Prepend_t { Prepend }
typedef
senf::detail::packet::smart_pointer
< PacketInterpreterBase >
::ptr_t 
ptr
typedef
senf::detail::packet::iterator 
iterator
typedef
senf::detail::packet::const_iterator 
const_iterator
typedef
senf::detail::packet::size_type 
size_type
typedef
senf::detail::packet::difference_type 
difference_type
typedef senf::detail::packet::byte  byte
typedef boost::iterator_range
< iterator
range
typedef boost::optional
< boost::iterator_range
< iterator > > 
optional_range
typedef optional_range  no_range
typedef Factory const *  factory_t

Structors and default members

virtual  ~PacketInterpreterBase ()
ptr  clone ()
static factory_t  no_factory ()

Interpreter chain access

ptr  next ()
ptr  prev ()
ptr  first ()
ptr  last ()
template<class Type >
PacketInterpreter< Type >::ptr  parseNextAs ()
ptr  parseNextAs (factory_t factory)
template<class Type >
bool  is ()
template<class Type >
PacketInterpreter< Type >::ptr  as ()
ptr  append (ptr packet)
void  reparse ()

Data access

PacketData data ()

Annotations

template<class Annotation >
Annotation &  annotation ()
void  clearAnnotations ()

Access to the abstract interface

optional_range  nextPacketRange ()
void  finalizeThis ()
void  finalizeTo (ptr other)
void  dump (std::ostream &os)
TypeIdValue  typeId ()
factory_t  factory ()
factory_t  nextPacketType ()

Protected Member Functions

  PacketInterpreterBase (detail::PacketImpl *impl, iterator b, iterator e, Append_t)
  PacketInterpreterBase (detail::PacketImpl *impl, iterator b, iterator e, Prepend_t)
  PacketInterpreterBase (detail::PacketImpl *impl, iterator b, iterator e, ptr before)
ptr  appendClone (detail::PacketImpl *impl, iterator base, iterator new_base)
ptr  appendClone (detail::PacketImpl *impl, range r)

Friends

void  senf::intrusive_ptr_add_ref (PacketInterpreterBase const *)
void  senf::intrusive_ptr_release (PacketInterpreterBase const *)

Member Typedef Documentation

typedef senf::detail::packet::byte senf::PacketInterpreterBase::
byte

Reimplemented from senf::PacketData.

Definition at line 69 of file PacketInterpreter.hh.

typedef senf::detail::packet::const_iterator senf::PacketInterpreterBase::
const_iterator

Reimplemented from senf::PacketData.

Definition at line 66 of file PacketInterpreter.hh.

typedef senf::detail::packet::difference_type senf::PacketInterpreterBase::
difference_type

Reimplemented from senf::PacketData.

Definition at line 68 of file PacketInterpreter.hh.

typedef Factory const* senf::PacketInterpreterBase::
factory_t

Definition at line 122 of file PacketInterpreter.hh.

typedef senf::detail::packet::iterator senf::PacketInterpreterBase::
iterator

Reimplemented from senf::PacketData.

Definition at line 65 of file PacketInterpreter.hh.

typedef optional_range senf::PacketInterpreterBase::
no_range

Definition at line 73 of file PacketInterpreter.hh.

typedef boost::optional< boost::iterator_range<iterator> > senf::PacketInterpreterBase::
optional_range

Definition at line 72 of file PacketInterpreter.hh.

typedef senf::detail::packet::smart_pointer< PacketInterpreterBase>::ptr_t senf::PacketInterpreterBase::
ptr

Reimplemented in senf::PacketInterpreter< PacketType >.

Definition at line 63 of file PacketInterpreter.hh.

typedef boost::iterator_range<iterator> senf::PacketInterpreterBase::
range

Definition at line 71 of file PacketInterpreter.hh.

typedef senf::detail::packet::size_type senf::PacketInterpreterBase::
size_type

Reimplemented from senf::PacketData.

Definition at line 67 of file PacketInterpreter.hh.


Member Enumeration Documentation

enum senf::PacketInterpreterBase::
Append_t
Enumerator:
Append 

Definition at line 75 of file PacketInterpreter.hh.

enum senf::PacketInterpreterBase::
Prepend_t
Enumerator:
Prepend 

Definition at line 76 of file PacketInterpreter.hh.


Constructor & Destructor Documentation

senf::PacketInterpreterBase::
~PacketInterpreterBase ()

Definition at line 40 of file PacketInterpreter.cc.

senf::PacketInterpreterBase::
PacketInterpreterBase ( detail::PacketImpl impl,
iterator  b,
iterator  e,
Append_t  )

Definition at line 111 of file PacketInterpreter.cci.

senf::PacketInterpreterBase::
PacketInterpreterBase ( detail::PacketImpl impl,
iterator  b,
iterator  e,
Prepend_t  )

Definition at line 119 of file PacketInterpreter.cci.

senf::PacketInterpreterBase::
PacketInterpreterBase ( detail::PacketImpl impl,
iterator  b,
iterator  e,
ptr  before )

Definition at line 127 of file PacketInterpreter.cci.


Member Function Documentation

template<class Annotation >
Annotation & senf::PacketInterpreterBase::
annotation ()

Definition at line 54 of file PacketInterpreter.cti.

senf::PacketInterpreterBase::ptr senf::PacketInterpreterBase::
append ( ptr  packet )

Definition at line 55 of file PacketInterpreter.cc.

senf::PacketInterpreterBase::ptr senf::PacketInterpreterBase::
appendClone ( detail::PacketImpl impl,
range  r )

Definition at line 143 of file PacketInterpreter.cci.

senf::PacketInterpreterBase::ptr senf::PacketInterpreterBase::
appendClone ( detail::PacketImpl impl,
iterator  base,
iterator  new_base )

Definition at line 136 of file PacketInterpreter.cci.

template<class Type >
senf::PacketInterpreter< Type >::ptr senf::PacketInterpreterBase::
as ()

Definition at line 46 of file PacketInterpreter.cti.

void senf::PacketInterpreterBase::
clearAnnotations ()

Definition at line 101 of file PacketInterpreter.cci.

senf::PacketInterpreterBase::ptr senf::PacketInterpreterBase::
clone ()

Reimplemented in senf::PacketInterpreter< PacketType >.

Definition at line 43 of file PacketInterpreter.cc.

senf::PacketData & senf::PacketInterpreterBase::
data ()

Definition at line 73 of file PacketInterpreter.cci.

void senf::PacketInterpreterBase::
dump ( std::ostream &  os )

Definition at line 82 of file PacketInterpreter.cc.

senf::PacketInterpreterBase::factory_t senf::PacketInterpreterBase::
factory ()

Reimplemented in senf::PacketInterpreter< PacketType >.

Definition at line 91 of file PacketInterpreter.cci.

void senf::PacketInterpreterBase::
finalizeThis ()

Definition at line 99 of file PacketInterpreter.cc.

void senf::PacketInterpreterBase::
finalizeTo ( ptr  other )

Definition at line 104 of file PacketInterpreter.cc.

senf::PacketInterpreterBase::ptr senf::PacketInterpreterBase::
first ()

Definition at line 55 of file PacketInterpreter.cci.

template<class Type >
bool senf::PacketInterpreterBase::
is ()

Definition at line 39 of file PacketInterpreter.cti.

senf::PacketInterpreterBase::ptr senf::PacketInterpreterBase::
last ()

Definition at line 60 of file PacketInterpreter.cci.

senf::PacketInterpreterBase::ptr senf::PacketInterpreterBase::
next ()

Definition at line 45 of file PacketInterpreter.cci.

senf::PacketInterpreterBase::optional_range senf::PacketInterpreterBase::
nextPacketRange ()

Definition at line 81 of file PacketInterpreter.cci.

senf::PacketInterpreterBase::factory_t senf::PacketInterpreterBase::
nextPacketType ()

Definition at line 96 of file PacketInterpreter.cci.

senf::PacketInterpreterBase::factory_t senf::PacketInterpreterBase::
no_factory ()

Definition at line 38 of file PacketInterpreter.cci.

senf::PacketInterpreterBase::ptr senf::PacketInterpreterBase::
parseNextAs ( factory_t  factory )

Definition at line 66 of file PacketInterpreter.cci.

template<class Type >
senf::PacketInterpreter< Type >::ptr senf::PacketInterpreterBase::
parseNextAs ()

Definition at line 41 of file PacketInterpreter.ct.

senf::PacketInterpreterBase::ptr senf::PacketInterpreterBase::
prev ()

Definition at line 50 of file PacketInterpreter.cci.

void senf::PacketInterpreterBase::
reparse ()

Definition at line 74 of file PacketInterpreter.cc.

senf::TypeIdValue senf::PacketInterpreterBase::
typeId ()

Definition at line 86 of file PacketInterpreter.cci.


Friends And Related Function Documentation

void senf::
intrusive_ptr_add_ref ( PacketInterpreterBase const *  )

void senf::
intrusive_ptr_release ( PacketInterpreterBase const *  )

The documentation for this class was generated from the following files: