User Manual, Developers Guide and API Documentation

wns::ldk::tools::Padding Class Reference

Pads Compoundss to a configurable size. More...

#include <ldk/tools/Padding.hpp>

Inheritance diagram for wns::ldk::tools::Padding:

Inheritance graph
[legend]
Collaboration diagram for wns::ldk::tools::Padding:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void calculateSizes (const CommandPool *commandPool, Bit &commandPoolSize, Bit &dataSize) const
 Default calculateSizes implementation.
 Padding (fun::FUN *fuNet, const pyconfig::View &config)
virtual void processOutgoing (const CompoundPtr &compound)
 Process compounds on downlink.

Private Attributes

int size


Detailed Description

Only Compounds with a size that doesn't exceed the configured size will be changed.

Definition at line 45 of file Padding.hpp.


Constructor & Destructor Documentation

Padding::Padding ( fun::FUN fuNet,
const pyconfig::View config 
)

Definition at line 35 of file Padding.cpp.


Member Function Documentation

void Padding::calculateSizes ( const CommandPool commandPool,
Bit commandPoolSize,
Bit dataSize 
) const [virtual]

The default implementation delegates calculation to upper functional units, modifying the result to include the size of the provided Command.

Reimplemented from wns::ldk::CommandTypeSpecifier< T >.

Definition at line 49 of file Padding.cpp.

virtual void wns::ldk::tools::Padding::processOutgoing ( const CompoundPtr  )  [inline, virtual]

Override this method to handle outgoing compounds.

Reimplemented from wns::ldk::Forwarding< USER >.

Definition at line 58 of file Padding.hpp.


Member Data Documentation

Definition at line 66 of file Padding.hpp.


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

Generated on Sat May 26 03:32:58 2012 for openWNS by  doxygen 1.5.5