casa
$Rev:20696$
|
Implementation of TBArrayData for boolean array data. More...
#include <TBData.h>
Public Member Functions | |
TBArrayDataBool () | |
Default constructor. | |
TBArrayDataBool (const Array< Bool > &value, bool full=false) | |
Constructor that takes the value and whether or not to load (copy) the given data or not. | |
TBArrayDataBool (TBData &data) | |
Constructor that copies the given data if it is the correct type. | |
~TBArrayDataBool () | |
TBData * | dataAt (vector< int > d) |
See TBArrayData::dataAt(). | |
Array< Bool > & | data () |
Returns the value. | |
String | asString () |
Returns the String representation of this array. | |
void | load (const Array< Bool > &value) |
Loads the given data into the array. | |
bool | release () |
Releases the loaded data, if any. | |
void | setDataAt (vector< int > d, TBData &value) |
If the array is loaded, sets the value at the given coordinates (if valid) to the given data. | |
String | getType () |
Returns the boolean array type. | |
bool | contains (TBData *data) |
See TBArrayData::contains(). | |
bool | containsBetween (TBData *data, TBData *data2) |
See TBArrayData::containsBetween(). | |
bool | containsLessThan (TBData *data) |
See TBArrayData::containsLessThan(). | |
bool | containsGreaterThan (TBData *data) |
See TBArrayData::containsGreaterThan(). | |
String | to1DString () |
See TBArrayData::to1DString(). | |
Private Attributes | |
Array< Bool > | value |
Value. |
Implementation of TBArrayData for boolean array data.
Default constructor.
Builds an empty, unloaded array.
casa::TBArrayDataBool::TBArrayDataBool | ( | const Array< Bool > & | value, |
bool | full = false |
||
) |
Constructor that takes the value and whether or not to load (copy) the given data or not.
Note: data is always loaded for one-dimensional arrays.
casa::TBArrayDataBool::TBArrayDataBool | ( | TBData & | data | ) |
Constructor that copies the given data if it is the correct type.
String casa::TBArrayDataBool::asString | ( | ) | [virtual] |
Returns the String representation of this array.
For one-dimensional, loaded arrays returns the values; otherwise returns the shape and type.
Implements casa::TBArrayData.
bool casa::TBArrayDataBool::contains | ( | TBData * | data | ) | [virtual] |
Returns false if the given data is not of type boolean.
Implements casa::TBArrayData.
bool casa::TBArrayDataBool::containsBetween | ( | TBData * | data, |
TBData * | data2 | ||
) | [virtual] |
See TBArrayData::containsBetween().
Returns false if either data is not of type boolean.
Implements casa::TBArrayData.
bool casa::TBArrayDataBool::containsGreaterThan | ( | TBData * | data | ) | [virtual] |
See TBArrayData::containsGreaterThan().
Returns false if either data is not of type boolean.
Implements casa::TBArrayData.
bool casa::TBArrayDataBool::containsLessThan | ( | TBData * | data | ) | [virtual] |
See TBArrayData::containsLessThan().
Returns false if either data is not of type boolean.
Implements casa::TBArrayData.
Array<Bool>& casa::TBArrayDataBool::data | ( | ) | [inline] |
TBData* casa::TBArrayDataBool::dataAt | ( | vector< int > | d | ) | [virtual] |
String casa::TBArrayDataBool::getType | ( | ) | [inline, virtual] |
void casa::TBArrayDataBool::load | ( | const Array< Bool > & | value | ) |
Loads the given data into the array.
bool casa::TBArrayDataBool::release | ( | ) | [virtual] |
Releases the loaded data, if any.
Returns whether the release was successful or not.
Implements casa::TBArrayData.
void casa::TBArrayDataBool::setDataAt | ( | vector< int > | d, |
TBData & | value | ||
) | [virtual] |
If the array is loaded, sets the value at the given coordinates (if valid) to the given data.
This method is not defined if the given value is not of the correct type.
Implements casa::TBArrayData.
String casa::TBArrayDataBool::to1DString | ( | ) | [virtual] |
See TBArrayData::to1DString().
Implements casa::TBArrayData.
Array<Bool> casa::TBArrayDataBool::value [private] |