|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
12 #ifndef YARP_LITTLE_ENDIAN
18 std::uint16_t NetUint16::swap(std::uint16_t x)
const
20 return (x >> 8) | ((x << 8) & 0xff00);
23 std::uint16_t NetUint16::get()
const
25 return (std::uint16_t)swap(raw_value);
28 void NetUint16::set(std::uint16_t v)
30 raw_value = (std::uint16_t)swap((std::uint16_t)v);
42 NetUint16::operator std::uint16_t()
const
87 void NetUint16::operator++(
int)
92 void NetUint16::operator--(
int)
98 #endif // YARP_LITTLE_ENDIAN
Vector & operator*=(Vector &a, double k)
Vector-scalar product operator (defined in Math.h).
Vector & operator+=(Vector &a, const double &s)
Addition operator between a scalar and a vector (defined in Math.h).
Vector operator/(const Vector &a, const Vector &b)
Vector-vector element-wise division operator (defined in Math.h).
Vector operator+(const Vector &a, const double &s)
Mathematical operations.
Vector & operator/=(Vector &a, const Vector &b)
Vector-vector element-wise division operator (defined in Math.h).
Vector operator*(double k, const Vector &b)
Scalar-vector product operator (defined in Math.h).
An interface to the operating system, including Port based communication.
std::uint16_t NetUint16
Definition of the NetUint16 type.
Vector & operator-=(Vector &a, const double &s)
Subtraction operator between a vector and a scalar (defined in Math.h).
The main, catch-all namespace for YARP.
Vector operator-(const Vector &a, const double &s)
Subtraction operator between a vector and a scalar (defined in Math.h).