User Manual, Developers Guide and API Documentation

wns::ldk::buffer::Bounded Class Reference

Fixed size buffering of compounds.

#include <ldk/buffer/Bounded.hpp>

Inheritance diagram for wns::ldk::buffer::Bounded:

Inheritance graph
[legend]
Collaboration diagram for wns::ldk::buffer::Bounded:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Bounded (fun::FUN *fuNet, const wns::pyconfig::View &config)
virtual void doOnData (const CompoundPtr &compound)
virtual void doSendData (const CompoundPtr &sdu)
virtual unsigned long int getMaxSize ()
virtual unsigned long int getSize ()
virtual ~Bounded ()

Protected Member Functions

void tryToSend ()
bool tryToSendOnce ()

Private Types

typedef std::list< CompoundPtrContainerType

Private Member Functions

virtual bool doIsAccepting (const CompoundPtr &compound) const
virtual void doWakeup ()

Private Attributes

ContainerType buffer
unsigned long int currentSize
bool inWakeup
unsigned long int maxSize
SizeCalculatorsizeCalculator


Detailed Description

Definition at line 44 of file Bounded.hpp.


Member Typedef Documentation

Definition at line 48 of file Bounded.hpp.


Constructor & Destructor Documentation

Bounded::Bounded ( fun::FUN fuNet,
const wns::pyconfig::View config 
)

Definition at line 47 of file Bounded.cpp.

Bounded::~Bounded (  )  [virtual]

Definition at line 64 of file Bounded.cpp.


Member Function Documentation

bool Bounded::doIsAccepting ( const CompoundPtr compound  )  const [private, virtual]

Definition at line 79 of file Bounded.cpp.

void Bounded::doOnData ( const CompoundPtr compound  )  [virtual]

Definition at line 102 of file Bounded.cpp.

void Bounded::doSendData ( const CompoundPtr sdu  )  [virtual]

Definition at line 86 of file Bounded.cpp.

void Bounded::doWakeup (  )  [private, virtual]

Definition at line 109 of file Bounded.cpp.

unsigned long int Bounded::getMaxSize (  )  [virtual]

Implements wns::ldk::buffer::Buffer.

Definition at line 165 of file Bounded.cpp.

unsigned long int Bounded::getSize (  )  [virtual]

Implements wns::ldk::buffer::Buffer.

Definition at line 158 of file Bounded.cpp.

void Bounded::tryToSend (  )  [protected]

Definition at line 116 of file Bounded.cpp.

bool Bounded::tryToSendOnce (  )  [protected]

Definition at line 130 of file Bounded.cpp.


Member Data Documentation

Definition at line 74 of file Bounded.hpp.

Definition at line 76 of file Bounded.hpp.

Definition at line 78 of file Bounded.hpp.

unsigned long int wns::ldk::buffer::Bounded::maxSize [private]

Definition at line 75 of file Bounded.hpp.

Definition at line 77 of file Bounded.hpp.


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

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