iCub-main
Functions
iCub::learningmachine::serialization Namespace Reference

Functions

yarp::os::Bottle & operator<< (yarp::os::Bottle &out, int val)
 Helper functions for serialization in bottles for use in the learningMachine library. More...
 
yarp::os::Bottle & operator<< (yarp::os::Bottle &out, double val)
 Pushes a double to the end of a Bottle using the insertion operator. More...
 
yarp::os::Bottle & operator<< (yarp::os::Bottle &out, const yarp::sig::Vector &v)
 Pushes a serialization of a vector to the end of a Bottle using the insertion operator. More...
 
yarp::os::Bottle & operator<< (yarp::os::Bottle &out, const yarp::sig::Matrix &M)
 Pushes a serialization of a matrix to the end of a Bottle using the insertion operator. More...
 
yarp::os::Bottle & operator>> (yarp::os::Bottle &in, int &val)
 Pops an integer from the end of a Bottle using the extraction operator. More...
 
yarp::os::Bottle & operator>> (yarp::os::Bottle &in, double &val)
 Pops a double from the end of a Bottle using the extraction operator. More...
 
yarp::os::Bottle & operator>> (yarp::os::Bottle &in, yarp::sig::Vector &v)
 Pops a deserialization of a vector from the end of a Bottle using the extraction operator. More...
 
yarp::os::Bottle & operator>> (yarp::os::Bottle &in, yarp::sig::Matrix &M)
 Pops a deserialization of a matrix from the end of a Bottle using the extraction operator. More...
 
yarp::os::Bottle & operator<< (yarp::os::Bottle &out, size_t val)
 

Function Documentation

◆ operator<<() [1/5]

yarp::os::Bottle & iCub::learningmachine::serialization::operator<< ( yarp::os::Bottle &  out,
const yarp::sig::Matrix &  M 
)

Pushes a serialization of a matrix to the end of a Bottle using the insertion operator.

Parameters
bota reference to the bottle
Ma reference to the matrix
Returns
a reference to the bottle

Definition at line 48 of file Serialization.cpp.

◆ operator<<() [2/5]

yarp::os::Bottle & iCub::learningmachine::serialization::operator<< ( yarp::os::Bottle &  out,
const yarp::sig::Vector &  v 
)

Pushes a serialization of a vector to the end of a Bottle using the insertion operator.

Parameters
bota reference to the bottle
va reference to the vector
Returns
a reference to the bottle

Definition at line 40 of file Serialization.cpp.

◆ operator<<() [3/5]

yarp::os::Bottle & iCub::learningmachine::serialization::operator<< ( yarp::os::Bottle &  out,
double  val 
)

Pushes a double to the end of a Bottle using the insertion operator.

Parameters
bota reference to the bottle
valthe double
Returns
a reference to the bottle

Definition at line 35 of file Serialization.cpp.

◆ operator<<() [4/5]

yarp::os::Bottle & iCub::learningmachine::serialization::operator<< ( yarp::os::Bottle &  out,
int  val 
)

Helper functions for serialization in bottles for use in the learningMachine library.

Author
Arjan Gijsberts Pushes a serialization of a vector to the end of a Bottle.
Parameters
va reference to the vector
botthe bottle Pushes a serialization of a matrix to the end of a Bottle.
Ma reference to the matrix
botthe bottle Pops a deserialization of a vector from the end of a Bottle.
va reference to the vector
botthe bottle Pops a deserialization of a matrix from the end of a Bottle.
Ma reference to the matrix
botthe bottle Pushes an integer to the end of a Bottle using the insertion operator.
bota reference to the bottle
valthe integer
Returns
a reference to the bottle

Definition at line 25 of file Serialization.cpp.

◆ operator<<() [5/5]

yarp::os::Bottle& iCub::learningmachine::serialization::operator<< ( yarp::os::Bottle &  out,
size_t  val 
)

Definition at line 30 of file Serialization.cpp.

◆ operator>>() [1/4]

yarp::os::Bottle & iCub::learningmachine::serialization::operator>> ( yarp::os::Bottle &  in,
double &  val 
)

Pops a double from the end of a Bottle using the extraction operator.

Parameters
bota reference to the bottle
vala reference to the double
Returns
a reference to the bottle

Definition at line 63 of file Serialization.cpp.

◆ operator>>() [2/4]

yarp::os::Bottle & iCub::learningmachine::serialization::operator>> ( yarp::os::Bottle &  in,
int &  val 
)

Pops an integer from the end of a Bottle using the extraction operator.

Parameters
bota reference to the bottle
vala reference to the integer
Returns
a reference to the bottle

Definition at line 58 of file Serialization.cpp.

◆ operator>>() [3/4]

yarp::os::Bottle & iCub::learningmachine::serialization::operator>> ( yarp::os::Bottle &  in,
yarp::sig::Matrix &  M 
)

Pops a deserialization of a matrix from the end of a Bottle using the extraction operator.

Parameters
bota reference to the bottle
Ma reference to the matrix
Returns
a reference to the bottle

Definition at line 78 of file Serialization.cpp.

◆ operator>>() [4/4]

yarp::os::Bottle & iCub::learningmachine::serialization::operator>> ( yarp::os::Bottle &  in,
yarp::sig::Vector &  v 
)

Pops a deserialization of a vector from the end of a Bottle using the extraction operator.

Parameters
bota reference to the bottle
va reference to the vector
Returns
a reference to the bottle

Definition at line 68 of file Serialization.cpp.