casa
5.7.0-16
|
The Speed class implements a quantity of speed in meters per second. More...
#include <Speed.h>
Public Member Functions | |
Speed () | |
The nullary constructor (default). More... | |
Speed (const Speed &) | |
The copy constructor. More... | |
Speed (const std::string &s) | |
A constructor from a string representation. More... | |
Speed (const asdmIDLTypes::IDLSpeed &idlSpeed) | |
A constructor from a CORBA/IDL representation. More... | |
Speed (double value) | |
A constructor from a value in double precision. More... | |
virtual | ~Speed () |
The destructor. More... | |
void | toBin (EndianOSStream &eoss) |
Write the binary representation of this to an EndianOSStream . More... | |
Speed & | operator= (const Speed &x) |
An assignment operator Speed = Speed. More... | |
Speed & | operator= (const double d) |
An assignment operator Speed = double. More... | |
Speed & | operator+= (const Speed &x) |
Operator increment and assign. More... | |
Speed & | operator-= (const Speed &x) |
Operator decrement and assign. More... | |
Speed & | operator*= (const double x) |
Operator multiply and assign. More... | |
Speed & | operator/= (const double x) |
Operator divide and assign. More... | |
Speed | operator+ (const Speed &x) const |
Addition operator. More... | |
Speed | operator- (const Speed &x) const |
Substraction operator. More... | |
Speed | operator* (const double x) const |
Multiplication operator. More... | |
Speed | operator/ (const double x) const |
Division operator. More... | |
bool | operator< (const Speed &x) const |
Comparison operator. More... | |
bool | operator> (const Speed &x) const |
Comparison operator. More... | |
bool | operator<= (const Speed &x) const |
Comparison operator. More... | |
bool | operator>= (const Speed &x) const |
Comparison operator. More... | |
bool | operator== (const Speed &x) const |
Comparision operator. More... | |
bool | equals (const Speed &x) const |
Comparison method. More... | |
bool | operator!= (const Speed &x) const |
Comparison operator. More... | |
bool | isZero () const |
Comparison method. More... | |
Speed | operator- () const |
Unary operator. More... | |
Speed | operator+ () const |
Unary operator. More... | |
std::string | toString () const |
Converts into a string. More... | |
std::string | toStringI () const |
Idem toString. More... | |
operator std::string () const | |
Conversion operator. More... | |
double | get () const |
Return the double precision value of the Speed. More... | |
asdmIDLTypes::IDLSpeed | toIDLSpeed () const |
Return the IDLSpeed representation of the Speed. More... | |
Static Public Member Functions | |
static double | fromString (const std::string &s) |
A static method equivalent to the constructor from a string. More... | |
static std::string | toString (double) |
Conversion into string. More... | |
static Speed | getSpeed (StringTokenizer &st) throw (NumberFormatException) |
Parse the next (string) token of a StringTokenizer into an angle. More... | |
static void | toBin (const std::vector< Speed > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of Speed to a EndianOSStream. More... | |
static void | toBin (const std::vector< std::vector< Speed > > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of vector of Speed to a EndianOSStream. More... | |
static void | toBin (const std::vector< std::vector< std::vector< Speed > > > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of vector of vector of Speed to a EndianOSStream. More... | |
static Speed | fromBin (EndianIStream &eis) |
Read the binary representation of an Speed from a EndianIStream and use the read value to set an Speed. More... | |
static std::vector< Speed > | from1DBin (EndianIStream &eis) |
Read the binary representation of a vector of Speed from an EndianIStream and use the read value to set a vector of Speed. More... | |
static std::vector < std::vector< Speed > > | from2DBin (EndianIStream &eis) |
Read the binary representation of a vector of vector of Speed from an EndianIStream and use the read value to set a vector of vector of Speed. More... | |
static std::vector < std::vector< std::vector < Speed > > > | from3DBin (EndianIStream &eis) |
Read the binary representation of a vector of vector of vector of Speed from an EndianIStream and use the read value to set a vector of vector of vector of Speed. More... | |
static std::string | unit () |
Returns the abbreviated name of the unit implicitely associated to any Speed. More... | |
Private Attributes | |
double | value |
Friends | |
Speed | operator* (double d, const Speed &x) |
Overloading of multiplication operator. More... | |
std::ostream & | operator<< (std::ostream &os, const Speed &x) |
Overloading of << to output the value an Speed on an ostream. More... | |
std::istream & | operator>> (std::istream &is, Speed &x) |
Overloading of >> to read an Speed from an istream. More... | |
The Speed class implements a quantity of speed in meters per second.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
static |
Read the binary representation of a vector of Speed from an EndianIStream and use the read value to set a vector of Speed.
eis | a reference to the EndianIStream to be read |
|
static |
Read the binary representation of a vector of vector of Speed from an EndianIStream and use the read value to set a vector of vector of Speed.
eis | the EndianIStream to be read |
|
static |
Read the binary representation of a vector of vector of vector of Speed from an EndianIStream and use the read value to set a vector of vector of vector of Speed.
eis | the EndianIStream to be read |
|
static |
Read the binary representation of an Speed from a EndianIStream and use the read value to set an Speed.
eis | the EndianStream to be read |
|
static |
A static method equivalent to the constructor from a string.
s | a string?. |
|
inline |
|
static |
Parse the next (string) token of a StringTokenizer into an angle.
st | a reference to a StringTokenizer. |
bool asdm::Speed::isZero | ( | ) | const |
Comparison method.
Test nullity.
|
inline |
Conversion operator.
Conversion functions.
Converts into a string.
Definition at line 412 of file Speed.h.
References casa::vpf::toString().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void asdm::Speed::toBin | ( | EndianOSStream & | eoss | ) |
Write the binary representation of this to an EndianOSStream .
eoss | a reference to an EndianOSStream . |
|
static |
Write the binary representation of a vector of Speed to a EndianOSStream.
angle | the vector of Speed to be written |
eoss | the EndianOSStream to be written to |
|
static |
Write the binary representation of a vector of vector of Speed to a EndianOSStream.
angle | the vector of vector of Speed to be written |
eoss | the EndianOSStream to be written to |
|
static |
Write the binary representation of a vector of vector of vector of Speed to a EndianOSStream.
angle | the vector of vector of vector of Speed to be written |
eoss | the EndianOSStream to be written to |
|
inline |
|
static |
Conversion into string.
The resulting string contains the representation of the value of this Speed.
|
inline |
Converts into a string.
Definition at line 415 of file Speed.h.
References value.
Referenced by toStringI().
|
inline |
|
inlinestatic |
|
friend |
|
friend |
Overloading of >> to read an Speed from an istream.
|
private |
Definition at line 313 of file Speed.h.
Referenced by equals(), get(), operator!=(), asdm::operator*(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), asdm::operator<<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), asdm::operator>>(), toIDLSpeed(), toString(), and toStringI().