|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
12 #ifndef YARP_LITTLE_ENDIAN
18 std::int64_t NetInt64::swap(std::int64_t x)
const
20 UnionNetInt64 in, out;
22 for (
int i = 0; i < 8; i++) {
23 out.c[i] = in.c[7 - i];
27 RawNetInt64 NetInt64::get()
const
29 return (RawNetInt64)swap((RawNetInt64)raw_value);
31 void NetInt64::set(RawNetInt64 v)
33 raw_value = (RawNetInt64)swap((RawNetInt64)v);
42 NetInt64::operator RawNetInt64()
const
78 #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).
std::int64_t NetInt64
Definition of the NetInt64 type.
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.
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).