Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

Component Class Reference

#include <component.h>

Inheritance diagram for Component:

IdBase NetworkBase ProcessBase NetworkImpl ProcessImpl ProcessNetwork Process List of all members.

Public Member Functions

 Component (const IdBase &n)
ComponentparentComponent () const
unsigned int nrInPorts () const
unsigned int nrOutPorts () const
InPortBasegetInPort (unsigned int i) const
OutPortBasegetOutPort (unsigned int i) const
virtual const char * type () const=0

Private Types

typedef std::vector< InPortBase * > InPorts
typedef std::vector< OutPortBase * > OutPorts
typedef InPorts::iterator InPortIterator
typedef OutPorts::iterator OutPortIterator

Private Attributes

InPorts ip
OutPorts op

Friends

void insert (Component *c, InPortBase *i)
void insert (Component *c, OutPortBase *o)

Member Typedef Documentation

typedef InPorts::iterator Component::InPortIterator [private]
 

Definition at line 42 of file component.h.

typedef std::vector<InPortBase*> Component::InPorts [private]
 

Definition at line 40 of file component.h.

typedef OutPorts::iterator Component::OutPortIterator [private]
 

Definition at line 43 of file component.h.

typedef std::vector<OutPortBase*> Component::OutPorts [private]
 

Definition at line 41 of file component.h.


Constructor & Destructor Documentation

Component::Component const IdBase n  ) 
 

Definition at line 16 of file component.cc.


Member Function Documentation

InPortBase * Component::getInPort unsigned int  i  )  const
 

Definition at line 34 of file component.cc.

References ip.

Referenced by check(), findInPort(), printNetwork(), and uniqueInPortId().

OutPortBase * Component::getOutPort unsigned int  i  )  const
 

Definition at line 40 of file component.cc.

References op.

Referenced by check(), findOutPort(), printNetwork(), and uniqueOutPortId().

unsigned int Component::nrInPorts  )  const
 

Definition at line 24 of file component.cc.

References ip.

Referenced by check(), findInPort(), printNetwork(), and uniqueInPortId().

unsigned int Component::nrOutPorts  )  const
 

Definition at line 29 of file component.cc.

References op.

Referenced by check(), findOutPort(), printNetwork(), and uniqueOutPortId().

Component * Component::parentComponent  )  const
 

Definition at line 19 of file component.cc.

References IdBase::parent().

Referenced by ProcessBase::parentNetwork().

virtual const char* Component::type  )  const [pure virtual]
 

Implemented in ProcessNetwork, and Process.

Referenced by printDotty(), printNetwork(), and printProcess().


Friends And Related Function Documentation

void insert Component c,
OutPortBase o
[friend]
 

Definition at line 55 of file component.cc.

void insert Component c,
InPortBase i
[friend]
 

Definition at line 48 of file component.cc.

Referenced by ProcessBase::ProcessBase().


Member Data Documentation

InPorts Component::ip [private]
 

Definition at line 45 of file component.h.

Referenced by getInPort(), insert(), and nrInPorts().

OutPorts Component::op [private]
 

Definition at line 46 of file component.h.

Referenced by getOutPort(), insert(), and nrOutPorts().


The documentation for this class was generated from the following files:
Generated on Wed Feb 15 14:52:40 2006 for yapi by doxygen 1.3.2