iCub-main
Loading...
Searching...
No Matches
iCub::learningmachine::VectorPair Class Reference

A pair of vectors using the wire format formerly provided by yarp::os::PortablePair<yarp::sig::Vector, yarp::sig::Vector>. More...

#include <VectorPair.h>

Inheritance diagram for iCub::learningmachine::VectorPair:

Public Member Functions

bool read (yarp::os::ConnectionReader &connection) override
bool write (yarp::os::ConnectionWriter &connection) const override
void onCompletion () const override

Public Attributes

yarp::sig::Vector head
yarp::sig::Vector body

Detailed Description

A pair of vectors using the wire format formerly provided by yarp::os::PortablePair<yarp::sig::Vector, yarp::sig::Vector>.

PortablePair was removed in YARP 4. Keeping the serialization local makes learningMachine compatible with both existing ports and recorded data.

Definition at line 27 of file VectorPair.h.

Member Function Documentation

◆ onCompletion()

void iCub::learningmachine::VectorPair::onCompletion ( ) const
inlineoverride

Definition at line 62 of file VectorPair.h.

◆ read()

bool iCub::learningmachine::VectorPair::read ( yarp::os::ConnectionReader & connection)
inlineoverride

Definition at line 33 of file VectorPair.h.

◆ write()

bool iCub::learningmachine::VectorPair::write ( yarp::os::ConnectionWriter & connection) const
inlineoverride

Definition at line 50 of file VectorPair.h.

Member Data Documentation

◆ body

yarp::sig::Vector iCub::learningmachine::VectorPair::body

Definition at line 31 of file VectorPair.h.

◆ head

yarp::sig::Vector iCub::learningmachine::VectorPair::head

Definition at line 30 of file VectorPair.h.


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