A templated portable class intended to wrap abstract base classes.
More...
#include <PortableT.h>
template<class T>
class iCub::learningmachine::PortableT< T >
A templated portable class intended to wrap abstract base classes.
This template depends on an associated FactoryT for the specified type.
- See also
- iCub::learningmachine::MachinePortable
-
iCub::learningmachine::TransformerPortable
- Author
- Arjan Gijsberts
Definition at line 47 of file PortableT.h.
◆ PortableT() [1/3]
Constructor.
- Parameters
-
Definition at line 60 of file PortableT.h.
◆ PortableT() [2/3]
Constructor.
- Parameters
-
name | name specifier of the wrapped object |
- Exceptions
-
runtime | error if no object exists with the given key |
Definition at line 68 of file PortableT.h.
◆ PortableT() [3/3]
◆ ~PortableT()
◆ getWrapped()
The accessor for the wrapped object.
- Returns
- a reference to the wrapped object
- Exceptions
-
runtime | error if no wrapped object exists |
Definition at line 215 of file PortableT.h.
◆ hasWrapped()
Returns true iff if there is a wrapped object.
- Returns
- true iff there is a wrapped machine
Definition at line 205 of file PortableT.h.
◆ operator=()
◆ read()
Reads a wrapped object from a connection.
- Parameters
-
- Returns
- true on success
Definition at line 128 of file PortableT.h.
◆ readFromFile()
Reads a wrapped object from a file.
- Parameters
-
- Returns
- true on success
Definition at line 182 of file PortableT.h.
◆ setWrapped() [1/2]
The mutator for the wrapped object.
- Parameters
-
name | The name specifier for the wrapped object |
wipe | boolean whether the previous wrapped object has to be deleted |
Definition at line 242 of file PortableT.h.
◆ setWrapped() [2/2]
The mutator for the wrapped object.
- Parameters
-
w | a pointer to object to wrap |
wipe | boolean whether the previous wrapped object has to be deleted |
Definition at line 228 of file PortableT.h.
◆ write()
Writes a wrapped object to a connection.
- Parameters
-
- Returns
- true on success
Definition at line 103 of file PortableT.h.
◆ writeToFile()
Writes a wrapped object to a file.
- Parameters
-
- Returns
- true on success
Definition at line 161 of file PortableT.h.
The documentation for this class was generated from the following file:
- icub-main/src/libraries/learningMachine/include/iCub/learningMachine/PortableT.h