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

NetworkBase Class Reference

#include <networkbase.h>

Inheritance diagram for NetworkBase:

Component IdBase NetworkImpl ProcessNetwork List of all members.

Public Member Functions

 NetworkBase (const IdBase &n)
NetworkBase * parentNetwork () const
unsigned int nrFifos () const
unsigned int nrProcesses () const
unsigned int nrNetworks () const
FifoBase * getFifo (unsigned int i) const
ProcessBase * getProcess (unsigned int i) const
NetworkBase * getNetwork (unsigned int i) const

Private Types

typedef std::vector< FifoBase * > Fifos
typedef std::vector< ProcessBase * > Processes
typedef std::vector< NetworkBase * > Networks
typedef Fifos::iterator FifoIterator
typedef Processes::iterator ProcessIterator
typedef Networks::iterator NetworkIterator

Private Attributes

Fifos fi
Processes pr
Networks nw

Friends

void insert (NetworkBase *n, FifoBase *f)
void insert (NetworkBase *n, ProcessBase *p)
void insert (NetworkBase *n, NetworkBase *p)

Member Typedef Documentation

typedef Fifos::iterator NetworkBase::FifoIterator [private]
 

Definition at line 45 of file networkbase.h.

typedef std::vector<FifoBase*> NetworkBase::Fifos [private]
 

Definition at line 42 of file networkbase.h.

typedef Networks::iterator NetworkBase::NetworkIterator [private]
 

Definition at line 47 of file networkbase.h.

typedef std::vector<NetworkBase*> NetworkBase::Networks [private]
 

Definition at line 44 of file networkbase.h.

typedef std::vector<ProcessBase*> NetworkBase::Processes [private]
 

Definition at line 43 of file networkbase.h.

typedef Processes::iterator NetworkBase::ProcessIterator [private]
 

Definition at line 46 of file networkbase.h.


Constructor & Destructor Documentation

NetworkBase::NetworkBase (  const IdBase &  n  ) 
 

Definition at line 16 of file networkbase.cc.

References insert, IdBase::parent(), and parentNetwork().


Member Function Documentation

FifoBase * NetworkBase::getFifo (  unsigned int  i  )  const
 

Definition at line 43 of file networkbase.cc.

References fi.

Referenced by cosyNetwork::cosyNetwork(), findFifo(), cosyNetwork::growFifo(), cosyNetwork::printFifoMetrics(), printNetwork(), cosyNetwork::printProcessStatus(), and uniqueFifoId().

NetworkBase * NetworkBase::getNetwork (  unsigned int  i  )  const
 

Definition at line 55 of file networkbase.cc.

References nw.

Referenced by cosyNetwork::deadlock(), findNetwork(), cosyNetwork::growFifo(), cosyNetwork::printComputationWorkload(), cosyNetwork::printFifoMetrics(), printNetwork(), cosyNetwork::printProcessStatus(), and uniqueNetworkId().

ProcessBase * NetworkBase::getProcess (  unsigned int  i  )  const
 

Definition at line 49 of file networkbase.cc.

References pr.

Referenced by cosyNetwork::deadlock(), findProcess(), cosyNetwork::printComputationWorkload(), printNetwork(), and uniqueProcessId().

unsigned int NetworkBase::nrFifos (   )  const
 

Definition at line 28 of file networkbase.cc.

References fi.

Referenced by cosyNetwork::cosyNetwork(), findFifo(), cosyNetwork::growFifo(), cosyNetwork::printFifoMetrics(), printNetwork(), cosyNetwork::printProcessStatus(), and uniqueFifoId().

unsigned int NetworkBase::nrNetworks (   )  const
 

Definition at line 38 of file networkbase.cc.

References nw.

Referenced by cosyNetwork::cosyNetwork(), cosyNetwork::deadlock(), findNetwork(), cosyNetwork::growFifo(), cosyNetwork::printComputationWorkload(), cosyNetwork::printFifoMetrics(), printNetwork(), cosyNetwork::printProcessStatus(), and uniqueNetworkId().

unsigned int NetworkBase::nrProcesses (   )  const
 

Definition at line 33 of file networkbase.cc.

References pr.

Referenced by cosyNetwork::cosyNetwork(), cosyNetwork::deadlock(), findProcess(), cosyNetwork::printComputationWorkload(), printNetwork(), and uniqueProcessId().

NetworkBase * NetworkBase::parentNetwork (   )  const
 

Definition at line 23 of file networkbase.cc.

References IdBase::parent().

Referenced by NetworkBase().


Friends And Related Function Documentation

void insert (  NetworkBase *  n,
NetworkBase *  p
)  [friend]
 

Definition at line 74 of file networkbase.cc.

void insert (  NetworkBase *  n,
ProcessBase *  p
)  [friend]
 

Definition at line 69 of file networkbase.cc.

void insert (  NetworkBase *  n,
FifoBase *  f
)  [friend]
 

Definition at line 64 of file networkbase.cc.

Referenced by NetworkBase().


Member Data Documentation

Fifos NetworkBase::fi [private]
 

Definition at line 49 of file networkbase.h.

Referenced by getFifo(), insert(), and nrFifos().

Networks NetworkBase::nw [private]
 

Definition at line 51 of file networkbase.h.

Referenced by getNetwork(), insert(), and nrNetworks().

Processes NetworkBase::pr [private]
 

Definition at line 50 of file networkbase.h.

Referenced by getProcess(), insert(), and nrProcesses().


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