casa
$Rev:20696$
|
Implementation of TBData for complex data. More...
#include <TBData.h>
Public Member Functions | |
TBDataComplex (String value) | |
Constructor that parses a complex from the given String. | |
TBDataComplex (pair< float, float > value) | |
Constructor that takes the complex data. | |
TBDataComplex (complex< float > value) | |
Constructor that takes the complex data. | |
TBDataComplex (TBData &data) | |
Constructor that calls setValue(). | |
virtual | ~TBDataComplex () |
String | asString () |
Returns the value in String form. | |
pair< double, double > | asDComplex () |
Returns the value in double complex form. | |
pair< float, float > | asComplex () |
Returns the value. | |
double | asDouble () |
Invalid operations. | |
float | asFloat () |
asFloat() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as a float. | |
int | asInt () |
asInt() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as an int. | |
unsigned int | asUInt () |
asUInt() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as an unsigned int. | |
short int | asShort () |
asShort() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as a short. | |
bool | asBool () |
asBool() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as a boolean. | |
char | asChar () |
asChar() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as a char. | |
unsigned char | asUChar () |
asUChar() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as an unsigned character. | |
Record * | asRecord () |
asRecord() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as a record. | |
void | setValue (TBData &value) |
If the given TBData is a String, parses a complex from the String value. | |
String | getType () |
Returns the complex type. | |
bool | equals (TBData *data) |
Returns true if the given data is a complex type and their values are equal, false otherwise. | |
Private Attributes | |
pair< float, float > | value |
Value. |
casa::TBDataComplex::TBDataComplex | ( | String | value | ) |
Constructor that parses a complex from the given String.
casa::TBDataComplex::TBDataComplex | ( | pair< float, float > | value | ) |
Constructor that takes the complex data.
casa::TBDataComplex::TBDataComplex | ( | complex< float > | value | ) |
Constructor that takes the complex data.
casa::TBDataComplex::TBDataComplex | ( | TBData & | data | ) |
Constructor that calls setValue().
virtual casa::TBDataComplex::~TBDataComplex | ( | ) | [virtual] |
bool casa::TBDataComplex::asBool | ( | ) | [inline, virtual] |
asBool() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as a boolean.
Implements casa::TBData.
char casa::TBDataComplex::asChar | ( | ) | [inline, virtual] |
asChar() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as a char.
Implements casa::TBData.
pair<float, float> casa::TBDataComplex::asComplex | ( | ) | [virtual] |
Returns the value.
Implements casa::TBData.
pair<double, double> casa::TBDataComplex::asDComplex | ( | ) | [virtual] |
Returns the value in double complex form.
Implements casa::TBData.
double casa::TBDataComplex::asDouble | ( | ) | [inline, virtual] |
float casa::TBDataComplex::asFloat | ( | ) | [inline, virtual] |
asFloat() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as a float.
Implements casa::TBData.
int casa::TBDataComplex::asInt | ( | ) | [inline, virtual] |
asInt() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as an int.
Implements casa::TBData.
Record* casa::TBDataComplex::asRecord | ( | ) | [inline, virtual] |
asRecord() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as a record.
Implements casa::TBData.
short int casa::TBDataComplex::asShort | ( | ) | [inline, virtual] |
asShort() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as a short.
Implements casa::TBData.
String casa::TBDataComplex::asString | ( | ) | [virtual] |
Returns the value in String form.
Implements casa::TBData.
unsigned char casa::TBDataComplex::asUChar | ( | ) | [inline, virtual] |
asUChar() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as an unsigned character.
Implements casa::TBData.
unsigned int casa::TBDataComplex::asUInt | ( | ) | [inline, virtual] |
asUInt() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as an unsigned int.
Implements casa::TBData.
bool casa::TBDataComplex::equals | ( | TBData * | data | ) | [virtual] |
Returns true if the given data is a complex type and their values are equal, false otherwise.
Implements casa::TBData.
String casa::TBDataComplex::getType | ( | ) | [inline, virtual] |
void casa::TBDataComplex::setValue | ( | TBData & | value | ) | [virtual] |
If the given TBData is a String, parses a complex from the String value.
Otherwise, if the given TBData is a complex, sets the complex value.
Implements casa::TBData.
pair<float, float> casa::TBDataComplex::value [private] |