casa::TBArrayDataShort Class Reference

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

#include <TBData.h>

Inheritance diagram for casa::TBArrayDataShort:
casa::TBArrayData casa::TBData

List of all members.

Public Member Functions

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

Detailed Description

Implementation of TBArrayData for short array data.

Definition at line 1664 of file TBData.h.


Constructor & Destructor Documentation

casa::TBArrayDataShort::TBArrayDataShort (  ) 

Default constructor.

Builds an empty, unloaded array.

casa::TBArrayDataShort::TBArrayDataShort ( const Array< Short > &  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::TBArrayDataShort::TBArrayDataShort ( TBData data  ) 

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

casa::TBArrayDataShort::~TBArrayDataShort (  ) 

Member Function Documentation

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

See TBArrayData::contains().

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

Implements casa::TBArrayData.

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

See TBArrayData::containsBetween().

Returns false if either data is not of type short.

Implements casa::TBArrayData.

bool casa::TBArrayDataShort::containsGreaterThan ( TBData data  )  [virtual]

See TBArrayData::containsGreaterThan().

Returns false if either data is not of type short.

Implements casa::TBArrayData.

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

See TBArrayData::containsLessThan().

Returns false if either data is not of type short.

Implements casa::TBArrayData.

Array<Short>& casa::TBArrayDataShort::data (  )  [inline]

Returns the value.

Definition at line 1684 of file TBData.h.

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

See TBArrayData::dataAt().

Returns data of type short.

Implements casa::TBArrayData.

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

Returns the short array type.

Implements casa::TBData.

Definition at line 1704 of file TBData.h.

References casa::TBConstants::TYPE_ARRAY_SHORT.

void casa::TBArrayDataShort::load ( const Array< Short > &  value  ) 

Loads the given data into the array.

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

Releases the loaded data, if any.

Returns whether the release was successful or not.

Implements casa::TBArrayData.

void casa::TBArrayDataShort::setDataAt ( std::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::TBArrayDataShort::to1DString (  )  [virtual]

Member Data Documentation

Array<Short> casa::TBArrayDataShort::value [private]

Value.

Definition at line 1727 of file TBData.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1