mimmo::IOData Class Reference

IOData is the base class of generic data stored as input or result in a Port. More...

#include <IOData.hpp>

Inheritance diagram for mimmo::IOData:

Public Member Functions

 IOData ()
 
virtual ~IOData ()
 
template<typename T >
T * getData ()
 
template<typename T >
void setData (T data)
 

Detailed Description

IOData is the base class of generic data stored as input or result in a Port.

IOData represents a generic data used in manipulation objects. Get and set methods of this class are templated methods on the type of attached data.

Definition at line 39 of file IOData.hpp.

Constructor & Destructor Documentation

◆ IOData()

mimmo::IOData::IOData ( )
inline

Default constructor of IOData.

Definition at line 44 of file IOData.hpp.

◆ ~IOData()

virtual mimmo::IOData::~IOData ( )
inlinevirtual

Destructor

Definition at line 49 of file IOData.hpp.

Member Function Documentation

◆ getData()

template<typename T >
T* mimmo::IOData::getData ( )

It gets the data stored in the object. Even if not declared as pure virtual its behavior is like a pure virtual method, i.e. an analogous method is implemented in the template derived class IODataT.

Returns
Pointer to data stored.

◆ setData()

template<typename T >
void mimmo::IOData::setData ( data)

It sets the data stored in the object. Even if not declared as pure virtual its behavior is like a pure virtual method, i.e. an analogous method is implemented in the template derived class IODataT.

Parameters
[in]dataData to be stored.

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