Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

simthlib::Add Class Reference

Base class for a general Adder block that adds the input samples together. More...

#include <arith.h>

Inheritance diagram for simthlib::Add:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual void updateInputLengths ()
virtual void updateOutputLengths ()
template<class seqT>
void process ()
void print (std::ostream &os) const

Static Public Member Functions

static void init (const std::string &fileName, simth::Device **dev, simth::DeviceSystemIntf *sysPtr, int ID, const std::string &regionQualifier)
static void init (simth::DeviceFactory &registration)

Protected Member Functions

 Add (int deviceID, simth::DeviceSystemIntf *system, const simth::PropertyList &pl, unsigned int _iports)

Protected Attributes

unsigned int iports

Related Functions

(Note that these are not member functions.)

 propertylist_Add (not_a_function)

Detailed Description

Base class for a general Adder block that adds the input samples together.

This block adds samples from all input ports into one output port. The number of input ports needs to be specified in the parameter file.

Parameters in Micos parameter file:

type: set this to "<code>add</code>"

input_ports: number of input ports.

streamtype: String specifying the sequence data type of the input and output ports. The names are the ones as defined in signal.h, e.g. bitSeq, ModSeq, symSeq etc.


Constructor & Destructor Documentation

simthlib::Add::Add (  int  deviceID,
simth::DeviceSystemIntf *  system,
const simth::PropertyList &  pl,
unsigned int  _iports
)  [protected]
 


Member Function Documentation

static void simthlib::Add::init (  simth::DeviceFactory &  registration  )  [static]
 

static void simthlib::Add::init (  const std::string &  fileName,
simth::Device **  dev,
simth::DeviceSystemIntf *  sysPtr,
int  ID,
const std::string &  regionQualifier
)  [static]
 

void simthlib::Add::print (  std::ostream &  os  )  const [virtual]
 

Reimplemented from simth::Device.

template<class seqT>
void simthlib::Add::process (   )  [virtual]
 

Implements simth::Device.

Reimplemented in simthlib::AddT< seqT >.

virtual void simthlib::Add::updateInputLengths (   )  [virtual]
 

Implements simth::Device.

virtual void simthlib::Add::updateOutputLengths (   )  [virtual]
 

Implements simth::Device.


Friends And Related Function Documentation

propertylist_Add (  not_a_function   )  [related]
 

These are the properties of class Add . This list is auto-generated from the XML-Devicelist of this device by means of an XSLT transformation script.

Description of this device in the XML file: The base class for an addition block with several input interfaces. The samples of all input sequences are added together.

Note that this class also has the Properties of its base classes. The direct base class is simth::Device ; direct link to its propertylist should be propertylist_Device(). The list below usually includes the properties that have been inherited from the base classes; the properties which belong only to this class can be found at the end of this list.

input_ports
<unsigned>, default "" -- The number of input interfaces.

1 properties in this class.


Member Data Documentation

unsigned int simthlib::Add::iports [protected]
 


Generated on Tue Aug 9 14:36:37 2005 for simtheticlib by  doxygen 1.4.1