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

cosySelect Class Reference

#include <cosyselect.h>

Inheritance diagram for cosySelect:

rteSelect List of all members.

Public Member Functions

 cosySelect (SelectImpl &s, cosyRte &r)
 ~cosySelect ()
void pushBack (const InPortImpl &p, unsigned int n)
void pushBack (const OutPortImpl &p, unsigned int n)
unsigned int select ()
void signal ()

Private Attributes

std::vector< cosyFifo * > f
std::vector< unsigned int > s
std::vector< bool > input
std::vector< unsigned int > r
unsigned int retvalue
Semaphore sema
bool block
cosyRterte

Static Private Attributes

bool random = true

Friends

class cosyNetwork

Constructor & Destructor Documentation

cosySelect::cosySelect SelectImpl s,
cosyRte r
 

Definition at line 29 of file cosyselect.cc.

References r, and rte.

cosySelect::~cosySelect  ) 
 

Definition at line 35 of file cosyselect.cc.


Member Function Documentation

void cosySelect::pushBack const OutPortImpl p,
unsigned int  n
[virtual]
 

Implements rteSelect.

Definition at line 47 of file cosyselect.cc.

References f, getFarFifo(), input, FifoImpl::nrRteFifos(), r, retvalue, FifoImpl::rte(), and s.

void cosySelect::pushBack const InPortImpl p,
unsigned int  n
[virtual]
 

Implements rteSelect.

Definition at line 38 of file cosyselect.cc.

References f, getFarFifo(), input, r, retvalue, rte, and s.

unsigned int cosySelect::select  )  [virtual]
 

Implements rteSelect.

Definition at line 60 of file cosyselect.cc.

References rteSelect::api(), rteSelect::base, block, cosyRte::cerr(), f, input, IdBase::name(), r, random, rnd(), rte, s, sema, and Semaphore::wait().

void cosySelect::signal  ) 
 

Definition at line 151 of file cosyselect.cc.

References block, lock, sema, and Semaphore::signal().

Referenced by cosyFifo::read(), and cosyFifo::write().


Friends And Related Function Documentation

friend class cosyNetwork [friend]
 

Definition at line 61 of file cosyselect.h.


Member Data Documentation

bool cosySelect::block [private]
 

Definition at line 52 of file cosyselect.h.

Referenced by select(), and signal().

std::vector<cosyFifo*> cosySelect::f [private]
 

Definition at line 45 of file cosyselect.h.

Referenced by pushBack(), and select().

std::vector<bool> cosySelect::input [private]
 

Definition at line 47 of file cosyselect.h.

Referenced by pushBack(), and select().

std::vector<unsigned int> cosySelect::r [private]
 

Definition at line 48 of file cosyselect.h.

Referenced by cosySelect(), pushBack(), and select().

bool cosySelect::random = true [static, private]
 

Definition at line 22 of file cosyselect.cc.

Referenced by select().

unsigned int cosySelect::retvalue [private]
 

Definition at line 50 of file cosyselect.h.

Referenced by pushBack().

cosyRte* cosySelect::rte [private]
 

Definition at line 53 of file cosyselect.h.

Referenced by cosySelect(), pushBack(), and select().

std::vector<unsigned int> cosySelect::s [private]
 

Definition at line 46 of file cosyselect.h.

Referenced by pushBack(), and select().

Semaphore cosySelect::sema [private]
 

Definition at line 51 of file cosyselect.h.

Referenced by select(), and signal().


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