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

Implementation of TBArrayData for int array data. More...

#include <TBData.h>

Inheritance diagram for casa::TBArrayDataInt:
casa::TBArrayData casa::TBData

List of all members.

Public Member Functions

 TBArrayDataInt ()
 Default constructor.
 TBArrayDataInt (const Array< Int > &value, bool full=false)
 Constructor that takes the value and whether or not to load (copy) the given data or not.
 TBArrayDataInt (TBData &data)
 Constructor that copies the given data if it is the correct type.
 ~TBArrayDataInt ()
TBDatadataAt (vector< int > d)
 See TBArrayData::dataAt().
Array< Int > & data ()
 Returns the value.
String asString ()
 Returns the String representation of this array.
void load (const Array< Int > &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 int 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< Intvalue
 Value.

Detailed Description

Implementation of TBArrayData for int array data.

Definition at line 1312 of file TBData.h.


Constructor & Destructor Documentation

Default constructor.

Builds an empty, unloaded array.

casa::TBArrayDataInt::TBArrayDataInt ( const Array< Int > &  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.

Constructor that copies the given data if it is the correct type.


Member Function Documentation

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::TBArrayDataInt::contains ( TBData data) [virtual]

See TBArrayData::contains().

Returns false if the given data is not of type int.

Implements casa::TBArrayData.

bool casa::TBArrayDataInt::containsBetween ( TBData data,
TBData data2 
) [virtual]

See TBArrayData::containsBetween().

Returns false if either data is not of type int.

Implements casa::TBArrayData.

See TBArrayData::containsGreaterThan().

Returns false if either data is not of type int.

Implements casa::TBArrayData.

bool casa::TBArrayDataInt::containsLessThan ( TBData data) [virtual]

See TBArrayData::containsLessThan().

Returns false if either data is not of type int.

Implements casa::TBArrayData.

Returns the value.

Definition at line 1332 of file TBData.h.

References casa::value().

TBData* casa::TBArrayDataInt::dataAt ( vector< int >  d) [virtual]

See TBArrayData::dataAt().

Returns data of type int.

Implements casa::TBArrayData.

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

Returns the int array type.

Implements casa::TBData.

Definition at line 1352 of file TBData.h.

void casa::TBArrayDataInt::load ( const Array< Int > &  value)

Loads the given data into the array.

bool casa::TBArrayDataInt::release ( ) [virtual]

Releases the loaded data, if any.

Returns whether the release was successful or not.

Implements casa::TBArrayData.

void casa::TBArrayDataInt::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.


Member Data Documentation

Value.

Definition at line 1375 of file TBData.h.


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