81 virtual int asInt() = 0;
86 virtual unsigned int asUInt() = 0;
101 virtual unsigned char asUChar() = 0;
106 virtual short int asShort() = 0;
111 virtual std::pair<float, float>
asComplex() = 0;
116 virtual std::pair<double, double>
asDComplex() = 0;
185 std::pair<float, float>
asComplex() {
return std::pair<float, float>(0, 0); }
186 std::pair<double, double>
asDComplex() {
return std::pair<double, double>(0, 0); }
241 std::pair<float, float>
asComplex() {
return std::pair<float, float>(0, 0); }
242 std::pair<double, double>
asDComplex() {
return std::pair<double, double>(0, 0); }
299 std::pair<float, float>
asComplex() {
return std::pair<float, float>(0, 0); }
300 std::pair<double, double>
asDComplex() {
return std::pair<double, double>(0, 0); }
358 std::pair<float, float>
asComplex() {
return std::pair<float, float>(0, 0); }
359 std::pair<double, double>
asDComplex() {
return std::pair<double, double>(0, 0); }
417 std::pair<float, float>
asComplex() {
return std::pair<float, float>(0, 0); }
418 std::pair<double, double>
asDComplex() {
return std::pair<double, double>(0, 0); }
483 std::pair<float, float>
asComplex() {
return std::pair<float, float>(0, 0); }
484 std::pair<double, double>
asDComplex() {
return std::pair<double, double>(0, 0); }
544 std::pair<float, float>
asComplex() {
return std::pair<float, float>(0, 0); }
545 std::pair<double, double>
asDComplex() {
return std::pair<double, double>(0, 0); }
606 std::pair<float, float>
asComplex() {
return std::pair<float, float>(0, 0); }
607 std::pair<double, double>
asDComplex() {
return std::pair<double, double>(0, 0); }
672 std::pair<float, float>
asComplex() {
return std::pair<float, float>(0, 0); }
673 std::pair<double, double>
asDComplex() {
return std::pair<double, double>(0, 0); }
795 std::pair<float, float>
asComplex() {
return std::pair<float, float>(0, 0); }
879 std::pair<float, float>
asComplex() {
return std::pair<float, float>(0, 0); }
880 std::pair<double, double>
asDComplex() {
return std::pair<double, double>(0, 0); }
943 std::pair<float, float>
asComplex() {
return std::pair<float, float>(0, 0); }
944 std::pair<double, double>
asDComplex() {
return std::pair<double, double>(0, 0); }
1045 std::pair<float, float>
asComplex() {
return std::pair<float, float>(0, 0); }
1046 std::pair<double, double>
asDComplex() {
return std::pair<double, double>(0, 0); }
short int asShort()
asShort() must be implemented by any subclass, although the returned value does not have to be valid ...
casacore::String getType()
Returns the double complex array type.
virtual void setDataAt(std::vector< int > d, TBData &value)=0
setDataAt() must be implemented by any subclass.
void load(const casacore::Array< casacore::Complex > &value)
Loads the given data into the array.
bool release()
Releases the loaded data, if any.
TBDataUChar(casacore::String value)
Constructor that takes the first character from the given String.
casacore::Record * asRecord()
Returns the value.
void setValue(TBData &value)
If the given TBData is a casacore::String, parses an unsigned int from the String value...
TBData * dataAt(std::vector< int > d)
See TBArrayData::dataAt().
casacore::String asString()
Returns the human-readable value.
casacore::String displayValue()
See TBData::asString().
int asInt()
Returns the value in int form.
bool containsGreaterThan(TBData *data)
See TBArrayData::containsGreaterThan().
unsigned char asUChar()
asUChar() must be implemented by any subclass, although the returned value does not have to be valid ...
bool release()
Releases the loaded data, if any.
void setValue(TBData &value)
If the given TBData is a casacore::String, takes the first character of the casacore::String value...
std::pair< double, double > asDComplex()
asDComplex() must be implemented by any subclass, although the returned value does not have to be val...
casacore::String getType()
Returns the float array type.
casacore::Array< casacore::Float > & data()
Returns the value.
double asDouble()
Returns the value.
char asChar()
asChar() must be implemented by any subclass, although the returned value does not have to be valid f...
std::pair< float, float > asComplex()
asComplex() must be implemented by any subclass, although the returned value does not have to be vali...
static const casacore::String TYPE_SHORT
static const int DEFAULT_DATE_DECIMALS
Holds the default number of decimals displayed in a date.
char asChar()
asChar() must be implemented by any subclass, although the returned value does not have to be valid f...
unsigned char asUChar()
asUChar() must be implemented by any subclass, although the returned value does not have to be valid ...
virtual TBData * dataAt(std::vector< int > d)=0
dataAt() must be implemented by any subclass.
bool equals(TBData *data)
equals() must be implemented by any subclass.
TBArrayDataShort()
Default constructor.
bool containsLessThan(TBData *data)
See TBArrayData::containsLessThan().
int asInt()
asInt() must be implemented by any subclass, although the returned value does not have to be valid fo...
std::pair< float, float > asComplex()
asComplex() must be implemented by any subclass, although the returned value does not have to be vali...
casacore::String to1DString()
See TBArrayData::to1DString().
std::pair< double, double > asDComplex()
Returns the value.
TBDataChar(casacore::String value)
Constructor that takes the first character of the given String.
casacore::String asString()
Returns the casacore::String representation of this array.
virtual bool asBool()=0
asBool() must be implemented by any subclass, although the returned value does not have to be valid f...
virtual casacore::Record * asRecord()=0
asRecord() must be implemented by any subclass, although the returned value does not have to be valid...
std::vector< int > shape
casacore::Array shape.
virtual unsigned char asUChar()=0
asUChar() must be implemented by any subclass, although the returned value does not have to be valid ...
Implementation of TBArrayData for complex array data.
casacore::Record * asRecord()
asRecord() must be implemented by any subclass, although the returned value does not have to be valid...
short int asShort()
asShort() must be implemented by any subclass, although the returned value does not have to be valid ...
bool contains(TBData *data)
See TBArrayData::contains().
std::pair< float, float > asComplex()
asComplex() must be implemented by any subclass, although the returned value does not have to be vali...
casacore::Record * asRecord()
asRecord() must be implemented by any subclass, although the returned value does not have to be valid...
short int asShort()
asShort() must be implemented by any subclass, although the returned value does not have to be valid ...
void setDataAt(std::vector< int > d, TBData &value)
If the array is loaded, sets the value at the given coordinates (if valid) to the given data...
casacore::String asString()
Returns the value in casacore::String form.
char asChar()
asChar() must be implemented by any subclass, although the returned value does not have to be valid f...
unsigned char asUChar()
asUChar() must be implemented by any subclass, although the returned value does not have to be valid ...
static const casacore::String TYPE_ARRAY_CHAR
bool contains(TBData *data)
See TBArrayData::contains().
static const casacore::String TYPE_UCHAR
casacore::String to1DString()
See TBArrayData::to1DString().
static const casacore::String TYPE_BOOL
short int asShort()
asShort() must be implemented by any subclass, although the returned value does not have to be valid ...
TBData * dataAt(std::vector< int > d)
See TBArrayData::dataAt().
char asChar()
asChar() must be implemented by any subclass, although the returned value does not have to be valid f...
bool containsGreaterThan(TBData *data)
See TBArrayData::containsGreaterThan().
double asDouble()
Invalid operations.
casacore::String getType()
Returns the unsigned int type.
void setDataAt(std::vector< int > d, TBData &value)
If the array is loaded, sets the value at the given coordinates (if valid) to the given data...
TBDataShort(casacore::String value)
Constructor that parses a short from the given String.
std::pair< double, double > asDComplex()
asDComplex() must be implemented by any subclass, although the returned value does not have to be val...
unsigned int asUInt()
asUInt() must be implemented by any subclass, although the returned value does not have to be valid f...
bool asBool()
Returns the value.
char asChar()
asChar() must be implemented by any subclass, although the returned value does not have to be valid f...
char asChar()
asChar() must be implemented by any subclass, although the returned value does not have to be valid f...
static const casacore::String TYPE_INT
unsigned int asUInt()
Returns the value in unsigned int form.
void setValue(TBData &value)
Sets the value to the result of calling asString() on the given TBData.
void load(const casacore::Array< casacore::DComplex > &value)
Loads the given data into the array.
bool containsGreaterThan(TBData *data)
See TBArrayData::containsGreaterThan().
bool contains(TBData *data)
See TBArrayData::contains().
void setDataAt(std::vector< int > d, TBData &value)
If the array is loaded, sets the value at the given coordinates (if valid) to the given data...
TableExprNode array(const TableExprNode &values, const TableExprNodeSet &shape)
Create an array of the given shape and fill it with the values.
casacore::String getType()
Returns the int array type.
casacore::Array< casacore::Int > value
Value.
bool isOneDimensional()
Returns true if the array is one-dimensional, false otherwise.
void setValue(TBData &value)
If the given TBData is a casacore::String, parses a complex from the casacore::String value...
std::pair< float, float > asComplex()
asComplex() must be implemented by any subclass, although the returned value does not have to be vali...
bool containsLessThan(TBData *data)
See TBArrayData::containsLessThan().
Implementation of TBArrayData for casacore::String array data.
float asFloat()
Returns the float value.
bool asBool()
Invalid operations.
casacore::String to1DString()
See TBArrayData::to1DString().
virtual Type type()
Return the type enum.
unsigned char asUChar()
asUChar() must be implemented by any subclass, although the returned value does not have to be valid ...
void setValue(TBData &value)
If the given TBData is a casacore::String, parses a date from the casacore::String value...
bool contains(TBData *data)
See TBArrayData::contains().
casacore::Record * asRecord()
asRecord() must be implemented by any subclass, although the returned value does not have to be valid...
bool asBool()
asBool() must be implemented by any subclass, although the returned value does not have to be valid f...
virtual bool release()=0
release() must be implemented by any subclass.
void setDataAt(std::vector< int > d, TBData &value)
If the array is loaded, sets the value at the given coordinates (if valid) to the given data...
casacore::Record * asRecord()
asRecord() must be implemented by any subclass, although the returned value does not have to be valid...
casacore::Data types used for loaded data.
Implementation of TBArrayData for double array data.
bool asBool()
asBool() must be implemented by any subclass, although the returned value does not have to be valid f...
bool equals(TBData *data)
Returns true if the given data is a double complex type and their values are equal, false otherwise.
Implementation of TBData for date data.
virtual char asChar()=0
asChar() must be implemented by any subclass, although the returned value does not have to be valid f...
virtual bool containsLessThan(TBData *data)=0
containsLessThan() must be implemented by any subclass.
bool asBool()
asBool() must be implemented by any subclass, although the returned value does not have to be valid f...
int asInt()
asInt() must be implemented by any subclass, although the returned value does not have to be valid fo...
casacore::String getType()
Returns the unsigned character type.
bool asBool()
asBool() must be implemented by any subclass, although the returned value does not have to be valid f...
char asChar()
asChar() must be implemented by any subclass, although the returned value does not have to be valid f...
unsigned int asUInt()
Returns the value in unsigned int form.
Implementation of TBArrayData for unsigned character array data.
casacore::String to1DString()
See TBArrayData::to1DString().
TBDataTable(casacore::String value)
Constructor that takes the casacore::String value.
bool asBool()
asBool() must be implemented by any subclass, although the returned value does not have to be valid f...
char asChar()
asChar() must be implemented by any subclass, although the returned value does not have to be valid f...
std::pair< float, float > asComplex()
asComplex() must be implemented by any subclass, although the returned value does not have to be vali...
static const casacore::String TYPE_ARRAY_INT
unsigned char asUChar()
asUChar() must be implemented by any subclass, although the returned value does not have to be valid ...
static const casacore::String TYPE_COMPLEX
bool containsGreaterThan(TBData *data)
See TBArrayData::containsGreaterThan().
casacore::String to1DString()
See TBArrayData::to1DString().
unsigned char asUChar()
asUChar() must be implemented by any subclass, although the returned value does not have to be valid ...
casacore::String asString()
Returns the value in casacore::String form.
void load(const casacore::Array< casacore::Double > &value)
Loads the given data into the array.
bool release()
Releases the loaded data, if any.
std::pair< double, double > asDComplex()
asDComplex() must be implemented by any subclass, although the returned value does not have to be val...
casacore::String asString()
Returns the casacore::String representation of this array.
bool asBool()
asBool() must be implemented by any subclass, although the returned value does not have to be valid f...
unsigned int asUInt()
Returns the value.
TBData * dataAt(std::vector< int > d)
See TBArrayData::dataAt().
casacore::String asString()
Returns the casacore::String representation of this array.
TBData * dataAt(std::vector< int > d)
See TBArrayData::dataAt().
bool containsGreaterThan(TBData *data)
See TBArrayData::containsGreaterThan().
bool isLoaded()
Returns true if the array has data loaded into it, false otherwise.
int asInt()
asInt() must be implemented by any subclass, although the returned value does not have to be valid fo...
void setDataAt(std::vector< int > d, TBData &value)
If the array is loaded, sets the value at the given coordinates (if valid) to the given data...
Implementation of TBData for short data.
unsigned char value
Value.
short int asShort()
asShort() must be implemented by any subclass, although the returned value does not have to be valid ...
void load(const casacore::Array< casacore::Int > &value)
Loads the given data into the array.
casacore::String to1DString()
See TBArrayData::to1DString().
bool containsBetween(TBData *data, TBData *data2)
See TBArrayData::containsBetween().
casacore::String getType()
Returns the complex array type.
void setDataAt(std::vector< int > d, TBData &value)
If the array is loaded, sets the value at the given coordinates (if valid) to the given data...
short int asShort()
asShort() must be implemented by any subclass, although the returned value does not have to be valid ...
bool containsGreaterThan(TBData *data)
See TBArrayData::containsGreaterThan().
casacore::String getType()
Returns the double type.
bool containsLessThan(TBData *data)
See TBArrayData::containsLessThan().
Implementation of TBData for unsigned int data.
bool asBool()
asBool() must be implemented by any subclass, although the returned value does not have to be valid f...
static const casacore::String TYPE_FLOAT
bool containsGreaterThan(TBData *data)
See TBArrayData::containsGreaterThan().
TBArrayDataString()
Default constructor.
virtual double asDouble()=0
asDouble() must be implemented by any subclass, although the returned value does not have to be valid...
float asFloat()
asFloat() must be implemented by any subclass, although the returned value does not have to be valid ...
casacore::String getType()
Returns the casacore::String type.
casacore::String to1DString()
See TBArrayData::to1DString().
std::pair< double, double > asDComplex()
asDComplex() must be implemented by any subclass, although the returned value does not have to be val...
std::pair< float, float > asComplex()
asComplex() must be implemented by any subclass, although the returned value does not have to be vali...
casacore::Array< casacore::uInt > value
Value.
TBArrayData()
Default Constructor.
TBArrayDataFloat()
Default constructor.
short int asShort()
Returns the value.
Implementation of TBArrayData for short array data.
std::pair< float, float > asComplex()
asComplex() must be implemented by any subclass, although the returned value does not have to be vali...
Implementation of TBArrayData for double complex array data.
double asDouble()
Invalid operations.
double asDouble()
Returns the value in double form.
bool contains(TBData *data)
See TBArrayData::contains().
casacore::Record * asRecord()
asRecord() must be implemented by any subclass, although the returned value does not have to be valid...
void setValue(TBData &value)
If the given TBData is a casacore::String, parses a double complex from the casacore::String value...
unsigned char asUChar()
asUChar() must be implemented by any subclass, although the returned value does not have to be valid ...
virtual bool containsBetween(TBData *data, TBData *data2)=0
containsBetween() must be implemented by any subclass.
double asDouble()
Invalid operations.
unsigned int asUInt()
asUInt() must be implemented by any subclass, although the returned value does not have to be valid f...
std::pair< float, float > value
Value.
casacore::String asString()
Returns the value in casacore::String form.
casacore::Record * asRecord()
asRecord() must be implemented by any subclass, although the returned value does not have to be valid...
casacore::String asString()
Returns the value in casacore::String form.
bool containsGreaterThan(TBData *data)
See TBArrayData::containsGreaterThan().
casacore::String getType()
Returns the float type.
casacore::String asString()
Returns the value in casacore::String form.
casacore::Array< casacore::DComplex > value
Value.
unsigned int asUInt()
asUInt() must be implemented by any subclass, although the returned value does not have to be valid f...
static const casacore::String TYPE_CHAR
virtual int asInt()=0
asInt() must be implemented by any subclass, although the returned value does not have to be valid fo...
std::pair< float, float > asComplex()
asComplex() must be implemented by any subclass, although the returned value does not have to be vali...
TBData * dataAt(std::vector< int > d)
See TBArrayData::dataAt().
char asChar()
asChar() must be implemented by any subclass, although the returned value does not have to be valid f...
bool containsLessThan(TBData *data)
See TBArrayData::containsLessThan().
static TBData * create(casacore::String value, casacore::String type)
Creates and returns a TBData object representing the given value and type.
short int asShort()
asShort() must be implemented by any subclass, although the returned value does not have to be valid ...
casacore::String asString()
Returns the value in casacore::String form.
bool oneDim
Whether the array is one-dimensional.
unsigned int asUInt()
asUInt() must be implemented by any subclass, although the returned value does not have to be valid f...
ABSTRACT CLASSES Deliberately vague to be general enough to allow for many different types of data
Implementation of TBData for casacore::String data.
static const casacore::String TYPE_ARRAY_BOOL
int asInt()
asInt() must be implemented by any subclass, although the returned value does not have to be valid fo...
virtual float asFloat()=0
asFloat() must be implemented by any subclass, although the returned value does not have to be valid ...
int asInt()
Invalid operations.
void setDataAt(std::vector< int > d, TBData &value)
If the array is loaded, sets the value at the given coordinates (if valid) to the given data...
casacore::Data type that holds an array.
casacore::Record * asRecord()
asRecord() must be implemented by any subclass, although the returned value does not have to be valid...
bool containsGreaterThan(TBData *data)
See TBArrayData::containsGreaterThan().
bool contains(TBData *data)
See TBArrayData::contains().
float asFloat()
asFloat() must be implemented by any subclass, although the returned value does not have to be valid ...
static const casacore::String TYPE_ARRAY_DCOMPLEX
std::pair< double, double > asDComplex()
asDComplex() must be implemented by any subclass, although the returned value does not have to be val...
std::pair< double, double > asDComplex()
Returns the value in double complex form.
short int asShort()
asShort() must be implemented by any subclass, although the returned value does not have to be valid ...
void setValue(TBData &value)
If the given TBData is a casacore::String, parses a short from the casacore::String value...
static const casacore::String TYPE_ARRAY_COMPLEX
bool equals(TBData *data)
Returns true if the given data is an int type and their values are equal, false otherwise.
void setDataAt(std::vector< int > d, TBData &value)
If the array is loaded, sets the value at the given coordinates (if valid) to the given data...
casacore::Array< casacore::Short > value
Value.
std::vector< int > getShape()
Returns the array's shape.
casacore::String asString()
Returns the value in casacore::String form.
Implementation of TBData for character data.
void setValue(TBData &value)
If the given TBData is a casacore::String, parses an int from the casacore::String value...
unsigned char asUChar()
asUChar() must be implemented by any subclass, although the returned value does not have to be valid ...
Implementation of TBData for complex data.
virtual ~TBDataDComplex()
Implementation of TBArrayData for int array data.
TBDataInt(casacore::String value)
Constructor that parses an int from the given String.
bool containsBetween(TBData *data, TBData *data2)
See TBArrayData::containsBetween().
bool containsBetween(TBData *data, TBData *data2)
See TBArrayData::containsBetween().
void load(const casacore::Array< casacore::Float > &value)
Loads the given data into the array.
void load(const casacore::Array< casacore::uChar > &value)
Loads the given data into the array.
Implementation of TBData for double data.
std::pair< float, float > asComplex()
asComplex() must be implemented by any subclass, although the returned value does not have to be vali...
casacore::String to1DString()
See TBArrayData::to1DString().
casacore::Array< casacore::DComplex > & data()
Returns the value.
casacore::String asString()
Returns the value in casacore::String form.
int asInt()
asInt() must be implemented by any subclass, although the returned value does not have to be valid fo...
void setValue(TBData &value)
If the given TBData is a casacore::String, parses a boolean from the casacore::String value...
float asFloat()
Invalid operations.
casacore::String getType()
Returns the character type.
unsigned char asUChar()
asUChar() must be implemented by any subclass, although the returned value does not have to be valid ...
bool containsLessThan(TBData *data)
See TBArrayData::containsLessThan().
unsigned char asUChar()
asUChar() must be implemented by any subclass, although the returned value does not have to be valid ...
casacore::String valueStr
Human-readable representation of value.
void setValue(TBData &value)
If the given TBData is a casacore::String, takes the first character of the casacore::String value...
TBArrayDataBool()
Default constructor.
std::pair< double, double > asDComplex()
asDComplex() must be implemented by any subclass, although the returned value does not have to be val...
bool equals(TBData *data)
Returns true if the given data is an unsigned int type and their values are equal, false otherwise.
virtual casacore::String to1DString()=0
to1DString() must be implemented by any subclass.
bool containsBetween(TBData *data, TBData *data2)
See TBArrayData::containsBetween().
std::pair< double, double > asDComplex()
asDComplex() must be implemented by any subclass, although the returned value does not have to be val...
bool contains(TBData *data)
See TBArrayData::contains().
casacore::String getType()
Returns the short type.
bool equals(TBData *data)
Returns true if the given data is a casacore::String type and the values are equals, false otherwise.
float asFloat()
Invalid operations.
bool equals(TBData *data)
Returns true if the given data is a character type and their values are equal, false otherwise...
virtual unsigned int asUInt()=0
asUInt() must be implemented by any subclass, although the returned value does not have to be valid f...
casacore::Array< casacore::Double > value
Value.
bool loaded
Whether data is loaded.
static const casacore::String TYPE_ARRAY_FLOAT
bool asBool()
asBool() must be implemented by any subclass, although the returned value does not have to be valid f...
bool asBool()
asBool() must be implemented by any subclass, although the returned value does not have to be valid f...
casacore::Array< casacore::uChar > & data()
Returns the value.
bool containsBetween(TBData *data, TBData *data2)
See TBArrayData::containsBetween().
bool containsBetween(TBData *data, TBData *data2)
See TBArrayData::containsBetween().
void load(const casacore::Array< casacore::String > &value)
Loads the given data into the array.
bool containsGreaterThan(TBData *data)
See TBArrayData::containsGreaterThan().
short int asShort()
asShort() must be implemented by any subclass, although the returned value does not have to be valid ...
bool containsLessThan(TBData *data)
See TBArrayData::containsLessThan().
casacore::Array< casacore::Char > value
Value.
virtual bool containsGreaterThan(TBData *data)=0
containsGreaterThan() must be implemented by any subclass.
casacore::Array< casacore::Bool > & data()
Returns the value.
virtual std::pair< float, float > asComplex()=0
asComplex() must be implemented by any subclass, although the returned value does not have to be vali...
std::pair< double, double > asDComplex()
asDComplex() must be implemented by any subclass, although the returned value does not have to be val...
casacore::Array< casacore::String > value
Value.
casacore::Array< casacore::Short > & data()
Returns the value.
TBArrayDataDComplex()
Default constructor.
static const casacore::String TYPE_DATE
short int asShort()
asShort() must be implemented by any subclass, although the returned value does not have to be valid ...
casacore::Array< casacore::Complex > & data()
Returns the value.
static const casacore::String TYPE_ARRAY_STRING
casacore::String getType()
Returns the int type.
int asInt()
Returns the value in int form.
Implementation of TBData for double complex data.
static const casacore::String TYPE_ARRAY_SHORT
char asChar()
asChar() must be implemented by any subclass, although the returned value does not have to be valid f...
bool contains(TBData *data)
See TBArrayData::contains().
static const casacore::String TYPE_RECORD
A hierarchical collection of named fields of various types.
bool release()
Releases the loaded data, if any.
casacore::String asString()
Returns the casacore::String representation of this array.
char asChar()
asChar() must be implemented by any subclass, although the returned value does not have to be valid f...
bool equals(TBData *data)
Returns true if the given data is an unsigned character type and their values are equal...
virtual casacore::String getType()=0
getType() must be implemented by any subclass.
int asInt()
Returns the value in int form.
void load(const casacore::Array< casacore::uInt > &value)
Loads the given data into the array.
static const casacore::String TYPE_ARRAY_UCHAR
bool release()
Releases the loaded data, if any.
TBArrayDataInt()
Default constructor.
TBDataFloat(casacore::String value)
Constructor that parses a float from the given String.
bool containsBetween(TBData *data, TBData *data2)
See TBArrayData::containsBetween().
double asDouble()
Invalid operations.
unsigned char asUChar()
asUChar() must be implemented by any subclass, although the returned value does not have to be valid ...
casacore::String getType()
Returns the date type.
TBArrayDataChar()
Default constructor.
bool asBool()
asBool() must be implemented by any subclass, although the returned value does not have to be valid f...
short int asShort()
asShort() must be implemented by any subclass, although the returned value does not have to be valid ...
static const casacore::String TYPE_STRING
casacore::Table data types.
casacore::String getType()
Returns the casacore::String array type.
Implementation of TBArrayData for character array data.
bool isEmpty()
Returns true if the array is empty (i.e., all dimensions have size 0), false otherwise.
unsigned int asUInt()
Returns the value in unsigned int form.
void setDataAt(std::vector< int > d, TBData &value)
If the array is loaded, sets the value at the given coordinates (if valid) to the given data...
static const casacore::String TYPE_DOUBLE
void setDataAt(std::vector< int > d, TBData &value)
If the array is loaded, sets the value at the given coordinates (if valid) to the given data...
void setValue(TBData &value)
Iff the given TBData is a casacore::Record, sets the casacore::Record value.
float asFloat()
Returns the value in float form.
bool release()
Releases the loaded data, if any.
casacore::String asString()
Returns the casacore::String representation of this array.
casacore::String asString()
Returns the casacore::String representation of this array.
unsigned int asUInt()
asUInt() must be implemented by any subclass, although the returned value does not have to be valid f...
bool containsLessThan(TBData *data)
See TBArrayData::containsLessThan().
virtual casacore::String asString()=0
asString() must be implemented by any subclass.
bool equals(TBData *data)
Returns true if the given data is a double type and their values are equal, false otherwise...
casacore::Record * asRecord()
asRecord() must be implemented by any subclass, although the returned value does not have to be valid...
bool equals(TBData *data)
Returns true if the given data is a date type and their values are equal, false otherwise.
int asInt()
Returns the value in int form.
double asDouble()
Returns the value in double form.
casacore::String to1DString()
See TBArrayData::to1DString().
std::pair< float, float > asComplex()
Returns the value.
std::pair< float, float > asComplex()
asComplex() must be implemented by any subclass, although the returned value does not have to be vali...
casacore::Array< casacore::uInt > & data()
Returns the value.
Implementation of TBArrayData for unsigned int array data.
casacore::Record * asRecord()
asRecord() must be implemented by any subclass, although the returned value does not have to be valid...
bool contains(TBData *data)
See TBArrayData::contains().
casacore::String asString()
Returns the casacore::String value.
casacore::String asString()
Returns the value in casacore::String form.
bool equals(TBData *data)
Returns true if the given data is a boolean type and their values are equal, false otherwise...
casacore::String asString()
Returns the value in casacore::String form.
virtual bool equals(TBData *data)=0
equals() must be implemented by any subclass.
TBData * firstItem()
Returns the first item in the array, or NULL if there is no data loaded.
short int asShort()
asShort() must be implemented by any subclass, although the returned value does not have to be valid ...
float asFloat()
asFloat() must be implemented by any subclass, although the returned value does not have to be valid ...
TBDataComplex(casacore::String value)
Constructor that parses a complex from the given String.
TBArrayDataDouble()
Default constructor.
bool release()
Releases the loaded data, if any.
virtual casacore::String asString()=0
asString() must be implemented by any subclass.
bool release()
Releases the loaded data, if any.
char asChar()
asChar() must be implemented by any subclass, although the returned value does not have to be valid f...
casacore::Record * asRecord()
asRecord() must be implemented by any subclass, although the returned value does not have to be valid...
Implementation of TBData for boolean data.
casacore::Array< casacore::Bool > value
Value.
unsigned int asUInt()
asUInt() must be implemented by any subclass, although the returned value does not have to be valid f...
casacore::String getType()
Returns the table type.
Implementation of TBData for casacore::Record data.
TBData()
Default Constructor.
void setValue(TBData &value)
If the given TBData is a casacore::String, parses a float from the String.
TBDataDate(casacore::String value, int decimals=TBConstants::DEFAULT_DATE_DECIMALS)
Constructor that parses a date from the given casacore::String and then stores the human-readable val...
static const casacore::String TYPE_ARRAY_UINT
TBData * dataAt(std::vector< int > d)
See TBArrayData::dataAt().
std::pair< float, float > asComplex()
asComplex() must be implemented by any subclass, although the returned value does not have to be vali...
std::pair< double, double > asDComplex()
asDComplex() must be implemented by any subclass, although the returned value does not have to be val...
TBArrayDataComplex()
Default constructor.
bool containsLessThan(TBData *data)
See TBArrayData::containsLessThan().
int asInt()
asInt() must be implemented by any subclass, although the returned value does not have to be valid fo...
bool release()
Releases the loaded data, if any.
casacore::String getType()
Returns the boolean type.
unsigned int asUInt()
asUInt() must be implemented by any subclass, although the returned value does not have to be valid f...
virtual short int asShort()=0
asShort() must be implemented by any subclass, although the returned value does not have to be valid ...
casacore::Array< casacore::Double > & data()
Returns the value.
unsigned char asUChar()
Returns the value.
casacore::Array< casacore::Complex > value
Value.
unsigned int asUInt()
Returns the value in unsigned int form.
bool equals(TBData *data)
Returns true if the given data is a short type and their values are equal, false otherwise.
unsigned int asUInt()
asUInt() must be implemented by any subclass, although the returned value does not have to be valid f...
Implementation of TBArrayData for boolean array data.
casacore::String to1DString()
See TBArrayData::to1DString().
casacore::String to1DString()
See TBArrayData::to1DString().
bool release()
Releases the loaded data, if any.
bool coordIsValid(std::vector< int > d)
Returns true if the given coordinate is a valid index for this array given its shape, false otherwise.
void load(const casacore::Array< casacore::Short > &value)
Loads the given data into the array.
casacore::String getType()
Returns the character array type.
bool containsLessThan(TBData *data)
See TBArrayData::containsLessThan().
bool contains(TBData *data)
See TBArrayData::contains().
TBDataUInt(casacore::String value)
Constructor that parses an unsigned int from the given String.
casacore::Record * asRecord()
asRecord() must be implemented by any subclass, although the returned value does not have to be valid...
TBData * dataAt(std::vector< int > d)
See TBArrayData::dataAt().
char asChar()
Returns the value.
virtual std::pair< double, double > asDComplex()=0
asDComplex() must be implemented by any subclass, although the returned value does not have to be val...
virtual void setValue(TBData &value)=0
setValue() must be implemented by any subclass.
casacore::String getType()
Returns the double complex type.
casacore::String value
Value.
TBDataBool(casacore::String value)
Constructor that parses a boolean from the given String.
std::pair< double, double > asDComplex()
asDComplex() must be implemented by any subclass, although the returned value does not have to be val...
std::pair< float, float > asComplex()
asComplex() must be implemented by any subclass, although the returned value does not have to be vali...
TBDataDComplex(casacore::String value)
Constructor that parses a double complex from the given String.
bool equals(TBData *data)
Returns true if the given data is a complex type and their values are equal, false otherwise...
casacore::String getType()
Returns the short array type.
TBData * dataAt(std::vector< int > d)
See TBArrayData::dataAt().
String: the storage and methods of handling collections of characters.
float asFloat()
Returns the value in float form.
bool asBool()
asBool() must be implemented by any subclass, although the returned value does not have to be valid f...
TBDataTable(TBData &data)
Constructor that calls setValue().
casacore::String getType()
Returns the unsigned int array type.
TBDataString(casacore::String value)
Constructor that takes the casacore::String data.
std::pair< float, float > asComplex()
asComplex() must be implemented by any subclass, although the returned value does not have to be vali...
TBArrayDataUChar()
Default constructor.
TBDataRecord(const casacore::RecordInterface &value)
Constructor that takes the casacore::Record data.
void setDataAt(std::vector< int > d, TBData &value)
If the array is loaded, sets the value at the given coordinates (if valid) to the given data...
void load(const casacore::Array< casacore::Bool > &value)
Loads the given data into the array.
static const casacore::String TYPE_ARRAY_DOUBLE
casacore::String getType()
Returns the casacore::Record type.
bool containsBetween(TBData *data, TBData *data2)
See TBArrayData::containsBetween().
virtual bool contains(TBData *data)=0
contains() must be implemented by any subclass.
bool containsBetween(TBData *data, TBData *data2)
See TBArrayData::containsBetween().
TBData * dataAt(std::vector< int > d)
See TBArrayData::dataAt().
bool containsBetween(TBData *data, TBData *data2)
See TBArrayData::containsBetween().
double asDouble()
Invalid operations.
Implementation of TBArrayData for float array data.
casacore::String getType()
Returns the boolean array type.
float asFloat()
Invalid operations.
casacore::String asString()
Returns the casacore::String representation of this array.
float asFloat()
asFloat() must be implemented by any subclass, although the returned value does not have to be valid ...
casacore::Record value
Value.
void setValue(TBData &value)
If the given TBData is a casacore::String, parses a double from the String.
casacore::Array< casacore::String > & data()
Returns the value.
int asInt()
Returns the value.
casacore::String getType()
Returns the complex type.
TBData * dataAt(std::vector< int > d)
See TBArrayData::dataAt().
Abstract base class for Record classes.
casacore::Array< casacore::Char > & data()
Returns the value.
casacore::String asString()
Returns the casacore::String representation of this array.
unsigned char asUChar()
asUChar() must be implemented by any subclass, although the returned value does not have to be valid ...
casacore::String asString()
Returns the casacore::String representation of this array.
double asDouble()
Invalid operations.
float asFloat()
Invalid operations.
Implementation of TBData for casacore::Table data.
TBArrayDataUInt()
Default constructor.
bool contains(TBData *data)
See TBArrayData::contains().
double asDouble()
Returns the value in double form.
std::pair< double, double > value
Value.
int asInt()
asInt() must be implemented by any subclass, although the returned value does not have to be valid fo...
void load(const casacore::Array< casacore::Char > &value)
Loads the given data into the array.
double asDouble()
Returns the value in double form.
TBDataDouble(casacore::String value)
Constructor that parses a double from the given String.
void setValue(TBData &value)
setValue() must be implemented by any subclass.
unsigned char asUChar()
asUChar() must be implemented by any subclass, although the returned value does not have to be valid ...
float asFloat()
asFloat() must be implemented by any subclass, although the returned value does not have to be valid ...
Implementation of TBData for float data.
bool release()
Releases the loaded data, if any.
casacore::String asString()
Returns the casacore::String representation of this array.
double asDouble()
Returns the double value.
short int asShort()
asShort() must be implemented by any subclass, although the returned value does not have to be valid ...
bool containsGreaterThan(TBData *data)
See TBArrayData::containsGreaterThan().
bool containsLessThan(TBData *data)
See TBArrayData::containsLessThan().
Implementation of TBData for integer data.
static const casacore::String TYPE_TABLE
bool equals(TBData *data)
Returns true if the given data is a casacore::Record type and their values are equal, false otherwise.
static const casacore::String TYPE_UINT
casacore::Array< casacore::Int > & data()
Returns the value.
float asFloat()
asFloat() must be implemented by any subclass, although the returned value does not have to be valid ...
casacore::Record * asRecord()
asRecord() must be implemented by any subclass, although the returned value does not have to be valid...
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
bool containsLessThan(TBData *data)
See TBArrayData::containsLessThan().
char asChar()
Invalid operations.
casacore::String getType()
Returns the unsigned character array type.
float asFloat()
asFloat() must be implemented by any subclass, although the returned value does not have to be valid ...
std::pair< double, double > asDComplex()
asDComplex() must be implemented by any subclass, although the returned value does not have to be val...
double asDouble()
Invalid operations.
casacore::String asString()
Returns the casacore::String representation of this array.
Implementation of TBData for unsigned character data.
int asInt()
asInt() must be implemented by any subclass, although the returned value does not have to be valid fo...
casacore::Array< casacore::Float > value
Value.
bool asBool()
asBool() must be implemented by any subclass, although the returned value does not have to be valid f...
bool equals(TBData *data)
Returns true if the given data is a float type and their values are equal, false otherwise.
Holds a potentially multi-dimensional array.
double asDouble()
Returns the value in double form.
casacore::Record * asRecord()
asRecord() must be implemented by any subclass, although the returned value does not have to be valid...
TBData * dataAt(std::vector< int > d)
See TBArrayData::dataAt().
std::pair< double, double > asDComplex()
asDComplex() must be implemented by any subclass, although the returned value does not have to be val...
static const casacore::String TYPE_DCOMPLEX
casacore::String getType()
Returns the double array type.
unsigned int asUInt()
asUInt() must be implemented by any subclass, although the returned value does not have to be valid f...
casacore::String asString()
Returns the value in casacore::String form.
bool containsBetween(TBData *data, TBData *data2)
See TBArrayData::containsBetween().
casacore::Array< casacore::uChar > value
Value.