pelib  2.0.0
pelib::Link Class Reference

#include <Link.hpp>

List of all members.

Public Member Functions

 Link (const Task &producer, const Task &consumer, const std::string &producerName, const std::string &consumerName, const std::string &type="", size_t producer_rate=0, size_t consumer_rate=0)
virtual TaskgetProducer () const
virtual TaskgetConsumer () const
virtual bool operator< (const Link &other) const
virtual bool operator== (const Link &other) const
size_t getProducerRate () const
size_t getConsumerRate () const
std::string getDataType () const
std::string getProducerName () const
std::string getConsumerName () const

Protected Attributes

Taskproducer
Taskconsumer
std::string producerName
std::string consumerName
std::string type
size_t producer_rate
size_t consumer_rate

Detailed Description

Model a link between tasks of a streaming application

Definition at line 28 of file Link.hpp.


Constructor & Destructor Documentation

pelib::Link::Link ( const Task producer,
const Task consumer,
const std::string producerName,
const std::string consumerName,
const std::string type = "",
size_t  producer_rate = 0,
size_t  consumer_rate = 0 
)

Constructor. Takes the producer and consumer tasks at both ends of the link

Definition at line 35 of file Link.cpp.


Member Function Documentation

Task * pelib::Link::getConsumer ( ) const [virtual]

Returns a pointer to the consumer task

Definition at line 53 of file Link.cpp.

Definition at line 83 of file Link.cpp.

Definition at line 65 of file Link.cpp.

Definition at line 71 of file Link.cpp.

Task * pelib::Link::getProducer ( ) const [virtual]

Returns a pointer to the producer task

Definition at line 47 of file Link.cpp.

Definition at line 77 of file Link.cpp.

Definition at line 59 of file Link.cpp.

bool pelib::Link::operator< ( const Link other) const [virtual]

Check if this link is striclty inferior to another link given

Parameters:
otherOther link to compare this instance to

Definition at line 89 of file Link.cpp.

bool pelib::Link::operator== ( const Link other) const [virtual]

Returns true if this instance is considered equivalent to another link

Parameters:
otherOther link to be compared

Definition at line 119 of file Link.cpp.


Member Data Documentation

Task * pelib::Link::consumer [protected]

Definition at line 68 of file Link.hpp.

Definition at line 70 of file Link.hpp.

Definition at line 69 of file Link.hpp.

Producer and consumer task pointers

Definition at line 68 of file Link.hpp.

Definition at line 70 of file Link.hpp.

Definition at line 69 of file Link.hpp.

Definition at line 69 of file Link.hpp.


The documentation for this class was generated from the following files: