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