Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

simth::OutputInterfaceT< T > Class Template Reference

Output interface with template argument as data type. More...

#include <interfaces.h>

Inheritance diagram for simth::OutputInterfaceT< T >:

simth::OutputInterface simth::DataInterface List of all members.

Public Member Functions

 OutputInterfaceT (Device *const dev, int ID)
virtual size_t sequenceCapacity () const
virtual size_t sequenceLength () const
virtual void setSequenceCapacity (size_t size)
virtual void setSequenceLength (size_t size)
T *const internSequence ()
virtual void connect (InputInterface *interfacePtr)
virtual void reset ()
virtual bool isConnected () const
virtual void flushProcessedSequences ()
virtual void processFinished ()

Protected Member Functions

bool isMultipleConnected () const

Detailed Description

template<class T>
class simth::OutputInterfaceT< T >

Output interface with template argument as data type.

This generic class implements an output interface with the given template a data type. Classes that can be used as template argument are declared in signals.h. However, one can define own signals (or data) classes that can be used as template arguments. Of course these classes must define functions and operators used by the interface classes.


Constructor & Destructor Documentation

template<class T>
simth::OutputInterfaceT< T >::OutputInterfaceT Device *const   dev,
int  ID
 


Member Function Documentation

template<class T>
bool simth::OutputInterfaceT< T >::isMultipleConnected  )  const [inline, protected]
 

Returns true if the device is connected with more than one other device.

template<class T>
virtual size_t simth::OutputInterfaceT< T >::sequenceCapacity  )  const [inline, virtual]
 

Returns the capacity of the output sequence. See class documentation for more details.

Implements simth::OutputInterface.

template<class T>
virtual size_t simth::OutputInterfaceT< T >::sequenceLength  )  const [inline, virtual]
 

Returns the length of the output sequence.

Implements simth::OutputInterface.

template<class T>
void simth::OutputInterfaceT< T >::setSequenceCapacity size_t  size  )  [virtual]
 

Sets the capacity of the output sequence. See class documentation for more details.

Implements simth::OutputInterface.

template<class T>
void simth::OutputInterfaceT< T >::setSequenceLength size_t  size  )  [virtual]
 

Sets the length of the output sequence.

Implements simth::OutputInterface.

template<class T>
T *const simth::OutputInterfaceT< T >::internSequence  ) 
 

template<class T>
void simth::OutputInterfaceT< T >::connect InputInterface interfacePtr  )  [virtual]
 

Implements simth::OutputInterface.

template<class T>
void simth::OutputInterfaceT< T >::reset  )  [virtual]
 

Resets the interface. After calling that function the interface should behave as before any data had arrived.

Implements simth::OutputInterface.

template<class T>
virtual bool simth::OutputInterfaceT< T >::isConnected  )  const [inline, virtual]
 

Returns true if the input interface is connected with another device

Implements simth::OutputInterface.

template<class T>
void simth::OutputInterfaceT< T >::flushProcessedSequences  )  [virtual]
 

Informs the connected input interface, that the prompted output sequence is filled and can be used by the connected input interface.

Implements simth::OutputInterface.

template<class T>
void simth::OutputInterfaceT< T >::processFinished  )  [virtual]
 

Is called when the process finished. For now it only checks some internal states of the output interface.

Implements simth::OutputInterface.


Generated on Mon Apr 24 21:19:19 2006 for simthetic by  doxygen 1.4.1