casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
casa::TBDataDComplex Class Reference

Implementation of TBData for double complex data. More...

#include <TBData.h>

Inheritance diagram for casa::TBDataDComplex:
casa::TBData

List of all members.

Public Member Functions

 TBDataDComplex (String value)
 Constructor that parses a double complex from the given String.
 TBDataDComplex (pair< double, double > value)
 Constructor that takes the double complex data.
 TBDataDComplex (complex< double > value)
 Constructor that takes the double complex data.
 TBDataDComplex (TBData &data)
 Constructor that calls setValue().
virtual ~TBDataDComplex ()
String asString ()
 Returns the value in String form.
pair< double, double > asDComplex ()
 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.
pair< float, float > asComplex ()
 asComplex() 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 complex.
RecordasRecord ()
 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 double complex from the String value.
String getType ()
 Returns the double complex type.
bool equals (TBData *data)
 Returns true if the given data is a double complex type and their values are equal, false otherwise.

Private Attributes

pair< double, double > value
 Value.

Detailed Description

Implementation of TBData for double complex data.

Definition at line 764 of file TBData.h.


Constructor & Destructor Documentation

Constructor that parses a double complex from the given String.

casa::TBDataDComplex::TBDataDComplex ( pair< double, double >  value)

Constructor that takes the double complex data.

casa::TBDataDComplex::TBDataDComplex ( complex< double >  value)

Constructor that takes the double complex data.

Constructor that calls setValue().


Member Function Documentation

bool casa::TBDataDComplex::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.

Definition at line 795 of file TBData.h.

char casa::TBDataDComplex::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.

Definition at line 796 of file TBData.h.

pair<float, float> casa::TBDataDComplex::asComplex ( ) [inline, virtual]

asComplex() 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 complex.

Implements casa::TBData.

Definition at line 798 of file TBData.h.

pair<double, double> casa::TBDataDComplex::asDComplex ( ) [virtual]

Returns the value.

Implements casa::TBData.

double casa::TBDataDComplex::asDouble ( ) [inline, virtual]

Invalid operations.

Implements casa::TBData.

Definition at line 790 of file TBData.h.

float casa::TBDataDComplex::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.

Definition at line 791 of file TBData.h.

int casa::TBDataDComplex::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.

Definition at line 792 of file TBData.h.

Record* casa::TBDataDComplex::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.

Definition at line 799 of file TBData.h.

short int casa::TBDataDComplex::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.

Definition at line 794 of file TBData.h.

Returns the value in String form.

Implements casa::TBData.

unsigned char casa::TBDataDComplex::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.

Definition at line 797 of file TBData.h.

unsigned int casa::TBDataDComplex::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.

Definition at line 793 of file TBData.h.

bool casa::TBDataDComplex::equals ( TBData data) [virtual]

Returns true if the given data is a double complex type and their values are equal, false otherwise.

Implements casa::TBData.

String casa::TBDataDComplex::getType ( ) [inline, virtual]

Returns the double complex type.

Implements casa::TBData.

Definition at line 809 of file TBData.h.

void casa::TBDataDComplex::setValue ( TBData value) [virtual]

If the given TBData is a String, parses a double complex from the String value.

Otherwise, if the given TBData is a double complex, sets the double complex value.

Implements casa::TBData.


Member Data Documentation

pair<double, double> casa::TBDataDComplex::value [private]

Value.

Definition at line 817 of file TBData.h.


The documentation for this class was generated from the following file: