senf::PacketInterpreterBase::Factory Struct Referenceabstract

Internal: Abstract packet factory. More...

#include <senf/Packets/PacketInterpreter.hh>

Public Member Functions

virtual ~Factory ()
 
virtual ptr create () const =0
 
virtual ptr create (senf::NoInit_t) const =0
 
virtual ptr create (size_type size) const =0
 
virtual ptr create (size_type size, senf::NoInit_t) const =0
 
template<class ForwardReadableRange >
ptr create (ForwardReadableRange const &range) const
 
virtual ptr create (byte *data, size_type size, size_type chunkSize=0u, size_type offset=0u)=0
 
virtual ptr createAfter (PacketInterpreterBase::ptr const &packet) const =0
 
virtual ptr createAfter (PacketInterpreterBase::ptr const &packet, senf::NoInit_t) const =0
 
virtual ptr createAfter (PacketInterpreterBase::ptr const &packet, size_type size) const =0
 
virtual ptr createAfter (PacketInterpreterBase::ptr const &packet, size_type size, senf::NoInit_t) const =0
 
template<class ForwardReadableRange >
ptr createAfter (PacketInterpreterBase::ptr const &packet, ForwardReadableRange const &range) const
 
virtual ptr createBefore (PacketInterpreterBase::ptr const &packet) const =0
 
virtual ptr createBefore (PacketInterpreterBase::ptr const &packet, senf::NoInit_t) const =0
 
virtual ptr createInsertBefore (PacketInterpreterBase::ptr const &packet) const =0
 
virtual ptr createInsertBefore (PacketInterpreterBase::ptr const &packet, senf::NoInit_t) const =0
 
virtual ptr parseNext (ptr const &packet, PacketInterpreterBase::optional_range const &range) const =0
 

Detailed Description

Internal: Abstract packet factory.

This abstract class provides an abstract packet factory interface. It allows to call almost any one of the create / createAfter / createBefore static PacketInterpreter without static information on the type of packet to create.

Definition at line 81 of file PacketInterpreter.hh.

Constructor & Destructor Documentation

◆ ~Factory()

senf::PacketInterpreterBase::Factory::~Factory ( )
virtual

Definition at line 131 of file PacketInterpreter.cc.

Member Function Documentation

◆ create() [1/6]

virtual ptr senf::PacketInterpreterBase::Factory::create ( ) const
pure virtual

◆ create() [2/6]

virtual ptr senf::PacketInterpreterBase::Factory::create ( senf::NoInit_t  ) const
pure virtual

◆ create() [3/6]

virtual ptr senf::PacketInterpreterBase::Factory::create ( size_type  size) const
pure virtual

◆ create() [4/6]

virtual ptr senf::PacketInterpreterBase::Factory::create ( size_type  size,
senf::NoInit_t   
) const
pure virtual

◆ create() [5/6]

template<class ForwardReadableRange >
ptr senf::PacketInterpreterBase::Factory::create ( ForwardReadableRange const &  range) const

◆ create() [6/6]

virtual ptr senf::PacketInterpreterBase::Factory::create ( byte data,
size_type  size,
size_type  chunkSize = 0u,
size_type  offset = 0u 
)
pure virtual

◆ createAfter() [1/5]

virtual ptr senf::PacketInterpreterBase::Factory::createAfter ( PacketInterpreterBase::ptr const &  packet) const
pure virtual

◆ createAfter() [2/5]

virtual ptr senf::PacketInterpreterBase::Factory::createAfter ( PacketInterpreterBase::ptr const &  packet,
senf::NoInit_t   
) const
pure virtual

◆ createAfter() [3/5]

virtual ptr senf::PacketInterpreterBase::Factory::createAfter ( PacketInterpreterBase::ptr const &  packet,
size_type  size 
) const
pure virtual

◆ createAfter() [4/5]

virtual ptr senf::PacketInterpreterBase::Factory::createAfter ( PacketInterpreterBase::ptr const &  packet,
size_type  size,
senf::NoInit_t   
) const
pure virtual

◆ createAfter() [5/5]

template<class ForwardReadableRange >
ptr senf::PacketInterpreterBase::Factory::createAfter ( PacketInterpreterBase::ptr const &  packet,
ForwardReadableRange const &  range 
) const

◆ createBefore() [1/2]

virtual ptr senf::PacketInterpreterBase::Factory::createBefore ( PacketInterpreterBase::ptr const &  packet) const
pure virtual

◆ createBefore() [2/2]

virtual ptr senf::PacketInterpreterBase::Factory::createBefore ( PacketInterpreterBase::ptr const &  packet,
senf::NoInit_t   
) const
pure virtual

◆ createInsertBefore() [1/2]

virtual ptr senf::PacketInterpreterBase::Factory::createInsertBefore ( PacketInterpreterBase::ptr const &  packet) const
pure virtual

◆ createInsertBefore() [2/2]

virtual ptr senf::PacketInterpreterBase::Factory::createInsertBefore ( PacketInterpreterBase::ptr const &  packet,
senf::NoInit_t   
) const
pure virtual

◆ parseNext()

virtual ptr senf::PacketInterpreterBase::Factory::parseNext ( ptr const &  packet,
PacketInterpreterBase::optional_range const &  range 
) const
pure virtual

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