CCA
|
Typed output port. More...
#include <OutputPort.h>
Public Types | |
typedef ::boost::shared_ptr < DATATYPE > | DataPtr |
Defines a shared pointer for the data-type of this port. | |
typedef ::boost::shared_ptr < OutputPort< DATATYPE > > | Ptr |
Defines a shared pointer for this typed port. | |
Public Member Functions | |
OutputPort (bool optional=Port::MANDATORY) | |
Protected constructor. | |
virtual | ~OutputPort () |
void | publish (DataPtr data) |
virtual ::std::string | print () const |
Printing information about this OutputPort. | |
virtual void | configureSpecifics () |
Output port-specific configuration, sets up informer. | |
Static Public Member Functions | |
static Ptr | create () |
Creator. | |
Protected Member Functions | |
OutputPort (OutputPort &port) | |
Copy constructor Copy constructor private for now to disallow copying. | |
void | operator= (const OutputPort &port) |
Copy operator Copy operator private for now to disallow copying. | |
Protected Attributes | |
typename::rsb::Informer < DATATYPE >::Ptr | informer |
Detailed Description
template<class DATATYPE>
class cca::OutputPort< DATATYPE >
Typed output port.
Definition at line 58 of file OutputPort.h.
Member Typedef Documentation
typedef ::boost::shared_ptr<DATATYPE> cca::OutputPort< DATATYPE >::DataPtr |
Defines a shared pointer for the data-type of this port.
Definition at line 63 of file OutputPort.h.
typedef ::boost::shared_ptr<OutputPort<DATATYPE> > cca::OutputPort< DATATYPE >::Ptr |
Defines a shared pointer for this typed port.
Definition at line 66 of file OutputPort.h.
Constructor & Destructor Documentation
cca::OutputPort< DATATYPE >::OutputPort | ( | bool | optional = Port::MANDATORY | ) | [inline] |
Protected constructor.
- Todo:
- Better handling of exception, when rsb transOutputPort for the selected OutputPort type is not avaiable.
Definition at line 74 of file OutputPort.h.
virtual cca::OutputPort< DATATYPE >::~OutputPort | ( | ) | [inline, virtual] |
- Returns:
Definition at line 82 of file OutputPort.h.
cca::OutputPort< DATATYPE >::OutputPort | ( | OutputPort< DATATYPE > & | port | ) | [protected] |
Copy constructor Copy constructor private for now to disallow copying.
Member Function Documentation
virtual void cca::OutputPort< DATATYPE >::configureSpecifics | ( | ) | [inline, virtual] |
Output port-specific configuration, sets up informer.
Implements cca::Port.
Definition at line 133 of file OutputPort.h.
static Ptr cca::OutputPort< DATATYPE >::create | ( | ) | [inline, static] |
void cca::OutputPort< DATATYPE >::operator= | ( | const OutputPort< DATATYPE > & | port | ) | [protected] |
Copy operator Copy operator private for now to disallow copying.
virtual ::std::string cca::OutputPort< DATATYPE >::print | ( | ) | const [inline, virtual] |
Printing information about this OutputPort.
Implements cca::Port.
Definition at line 115 of file OutputPort.h.
Referenced by cca::timing::BeatProvider::beat(), and cca::ComponentInfo::displayStatePorts().
void cca::OutputPort< DATATYPE >::publish | ( | DataPtr | data | ) | [inline] |
Definition at line 85 of file OutputPort.h.
Referenced by cca::timing::BeatProvider::beat(), cca::timing::HeartBeat::execute(), cca::Collector< DTOTYPE >::onProcess(), and cca::Component::publishState().
Member Data Documentation
typename ::rsb::Informer<DATATYPE>::Ptr cca::OutputPort< DATATYPE >::informer [protected] |
Definition at line 151 of file OutputPort.h.
Referenced by cca::OutputPort< Tick >::configureSpecifics(), and cca::OutputPort< Tick >::publish().
The documentation for this class was generated from the following file:
- cca/port/OutputPort.h