|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
12 #ifndef YARP_LITTLE_ENDIAN
18 std::uint16_t NetInt16::swap(std::uint16_t x)
const
20 return (x >> 8) | ((x << 8) & 0xff00);
23 std::int16_t NetInt16::get()
const
25 return (std::int16_t)swap(raw_value);
28 void NetInt16::set(std::int16_t v)
30 raw_value = (std::int16_t)swap((std::uint16_t)v);
42 NetInt16::operator std::int16_t()
const
87 void NetInt16::operator++(
int)
92 void NetInt16::operator--(
int)
97 #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::int16_t NetInt16
Definition of the NetInt16 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).