PortIn is the abstract PIN base class dedicated to carry data to a target class from other ones (input). More...
#include <InOut.hpp>
Public Member Functions | |
PortIn () | |
PortIn (const PortIn &other) | |
virtual | ~PortIn () |
void | cleanBuffer () |
void | clear () |
void | clear (int j) |
DataType | getDataType () |
int | getFamily () |
std::vector< mimmo::BaseManipulation * > | getLink () |
bool | isMandatory () |
bool | operator== (const PortIn &other) |
virtual void | readBuffer ()=0 |
Public Attributes | |
DataType | m_datatype |
int | m_familym |
mimmo::IBinaryStream | m_ibuffer |
bool | m_mandatory |
std::vector< BaseManipulation * > | m_objLink |
Detailed Description
PortIn is the abstract PIN base class dedicated to carry data to a target class from other ones (input).
A PIN is an object member of BaseManipulation object. Through a PIN two base manipulation objects are linked together. One of these two objects is the parent object that gives an output to the other one that takes this value as input.
The class store the following data:
- a buffer to communicate input data (m_ibuffer)
- a list of pointer to BaseManipulation senders (m_objLink)
- information on the container and data type exchanged (m_datatype)
In general, a set of data of type m_datatype, is sent from one or more senders and read as a buffer stream m_ibuffer. This class is responsible to decode the data and handle with the problem to manage multiple data coming from multiple senders and makes it available (how to read the data, handle with its multiplicity and makes it available its still not specified in this abstract class).
Constructor & Destructor Documentation
◆ PortIn() [1/2]
◆ ~PortIn()
|
virtual |
◆ PortIn() [2/2]
mimmo::PortIn::PortIn | ( | const PortIn & | other | ) |
Member Function Documentation
◆ cleanBuffer()
void mimmo::PortIn::cleanBuffer | ( | ) |
◆ clear() [1/2]
void mimmo::PortIn::clear | ( | ) |
◆ clear() [2/2]
void mimmo::PortIn::clear | ( | int | j | ) |
◆ getDataType()
DataType mimmo::PortIn::getDataType | ( | ) |
◆ getFamily()
int mimmo::PortIn::getFamily | ( | ) |
◆ getLink()
std::vector< mimmo::BaseManipulation * > mimmo::PortIn::getLink | ( | ) |
◆ isMandatory()
bool mimmo::PortIn::isMandatory | ( | ) |
◆ operator==()
bool mimmo::PortIn::operator== | ( | const PortIn & | other | ) |
◆ readBuffer()
|
pure virtual |
Pure virtual function to read a buffer.
Implemented in mimmo::PortInT< T, O >.
Member Data Documentation
◆ m_datatype
DataType mimmo::PortIn::m_datatype |
◆ m_familym
int mimmo::PortIn::m_familym |
◆ m_ibuffer
mimmo::IBinaryStream mimmo::PortIn::m_ibuffer |
◆ m_mandatory
bool mimmo::PortIn::m_mandatory |
◆ m_objLink
std::vector<BaseManipulation*> mimmo::PortIn::m_objLink |
The documentation for this class was generated from the following files: