Menu

famouso::mw::afp::DefragmentationProcessor< AFPDC > Class Template Reference

Defragmentation engine that processes defragmentation steps. More...

#include <Defragmentation.h>

Inheritance diagram for famouso::mw::afp::DefragmentationProcessor< AFPDC >:
famouso::mw::afp::DefragmentationProcessorANL< AFPDC > famouso::mw::afp::DefragmentationProcessorKeepEventSupport< AFPDC >

Public Member Functions

 DefragmentationProcessor (flen_t mtu)
 Constrcutor.
void process_fragment (DefragmentationStep< AFPDC > &ds)
 Processes fragment.
void event_processed (const DefragmentationStep< AFPDC > &ds)
 Free event. Call this after data of an complete event was processed.

Protected Types

typedef DefragPolicySelector
< AFPDC > 
DCP
typedef DCP::SizeProp::elen_t elen_t
typedef DCP::SizeProp::flen_t flen_t
typedef DCP::SizeProp::fcount_t fcount_t
typedef class DCP::DemuxPolicy DemuxPolicy
typedef class DCP::DefragStatistics Statistics

Protected Attributes

DemuxPolicy demux
 Event demultiplexer.

Detailed Description

template<class AFPDC>
class famouso::mw::afp::DefragmentationProcessor< AFPDC >

Defragmentation engine that processes defragmentation steps.

Contains pool of events whose reconstruction is in progress. Create one permanent instance per channel or network.

Template Parameters:
AFPDC AFP defragmentation config
See also:
DefragmentationStep

Member Typedef Documentation

template<class AFPDC>
typedef DefragPolicySelector<AFPDC> famouso::mw::afp::DefragmentationProcessor< AFPDC >::DCP [protected]
template<class AFPDC>
typedef class DCP::DemuxPolicy famouso::mw::afp::DefragmentationProcessor< AFPDC >::DemuxPolicy [protected]
template<class AFPDC>
typedef DCP::SizeProp::elen_t famouso::mw::afp::DefragmentationProcessor< AFPDC >::elen_t [protected]
template<class AFPDC>
typedef DCP::SizeProp::fcount_t famouso::mw::afp::DefragmentationProcessor< AFPDC >::fcount_t [protected]
template<class AFPDC>
typedef DCP::SizeProp::flen_t famouso::mw::afp::DefragmentationProcessor< AFPDC >::flen_t [protected]
template<class AFPDC>
typedef class DCP::DefragStatistics famouso::mw::afp::DefragmentationProcessor< AFPDC >::Statistics [protected]

Constructor & Destructor Documentation

template<class AFPDC>
famouso::mw::afp::DefragmentationProcessor< AFPDC >::DefragmentationProcessor ( flen_t  mtu  )  [inline]

Constrcutor.

Parameters:
mtu Maximum transmission unit (max. size of fragment inclusive AFP headers)

Member Function Documentation

template<class AFPDC>
void famouso::mw::afp::DefragmentationProcessor< AFPDC >::event_processed ( const DefragmentationStep< AFPDC > &  ds  )  [inline]

Free event. Call this after data of an complete event was processed.

Parameters:
ds Contains event data.
template<class AFPDC>
void famouso::mw::afp::DefragmentationProcessor< AFPDC >::process_fragment ( DefragmentationStep< AFPDC > &  ds  )  [inline]

Processes fragment.

Parameters:
ds Contains fragment data.

After returning an event may be complete (check ds.event_complete()).

Reimplemented in famouso::mw::afp::DefragmentationProcessorANL< AFPDC >, and famouso::mw::afp::DefragmentationProcessorANL< AFP_DefragConfig >.

Referenced by famouso::mw::afp::DefragmentationProcessorANL< AFP_DefragConfig >::process_fragment().


Field Documentation


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