GeoTessCPP  2.0.0
Software to facilitate storage and retrieval of 3D information about the Earth.
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines
Public Member Functions
geotess::DataValue< T > Class Template Reference

#include <DataValue.h>

Inheritance diagram for geotess::DataValue< T >:
geotess::Data

List of all members.

Public Member Functions

 DataValue (T v)
 DataValue ()
virtual Datacopy ()
virtual byte getByte (int attributeIndex) const
virtual const DataTypegetDataType () const
virtual double getDouble (int attributeIndex) const
virtual float getFloat (int attributeIndex) const
virtual int getInt (int attributeIndex) const
virtual LONG_INT getLong (int attributeIndex) const
virtual short getShort (int attributeIndex) const
virtual void getValue (int attributeIndex, double &val) const
virtual void getValue (int attributeIndex, float &val) const
virtual void getValue (int attributeIndex, LONG_INT &val) const
virtual void getValue (int attributeIndex, int &val) const
virtual void getValue (int attributeIndex, short &val) const
virtual void getValue (int attributeIndex, byte &val) const
virtual void getValues (double values[], const int &n)
virtual void getValues (float values[], const int &n)
virtual void getValues (LONG_INT values[], const int &n)
virtual void getValues (int values[], const int &n)
virtual void getValues (short values[], const int &n)
virtual void getValues (byte values[], const int &n)
virtual bool isNaN (int attributeIndex) const
bool operator== (const DataValue< T > &d) const
virtual bool operator== (const Data &d) const
virtual DatasetValue (int attributeIndex, double v)
virtual DatasetValue (int attributeIndex, float v)
virtual DatasetValue (int attributeIndex, LONG_INT v)
virtual DatasetValue (int attributeIndex, int v)
virtual DatasetValue (int attributeIndex, short v)
virtual DatasetValue (int attributeIndex, byte v)
virtual int size () const

Detailed Description

template<typename T>
class geotess::DataValue< T >

Manages the data values attached to single grid node defined as a single value of type T (See DataType for supported types). The number of stored values is always 1 for this object.


Constructor & Destructor Documentation

template<typename T>
geotess::DataValue< T >::DataValue ( v) [inline]

Standard constructor. Sets value.

template<typename T>
geotess::DataValue< T >::DataValue ( ) [inline]

Default constructor.


Member Function Documentation

template<typename T>
virtual Data* geotess::DataValue< T >::copy ( ) [inline, virtual]

Returns a copy of this DataValue.

template<typename T>
virtual byte geotess::DataValue< T >::getByte ( int  attributeIndex) const [inline, virtual]

Retrieve the value of the attribute at the specified attribute index as a bute value.

Returns:
the value of the attribute at the specified attribute index

Reimplemented from geotess::Data.

template<typename T>
virtual const DataType& geotess::DataValue< T >::getDataType ( ) const [inline, virtual]

Retrieve the DataType of this Data object. One of DOUBLE, FLOAT, LONG, INT SHORT, BYTE

Returns:
the DataType of this Data object.

Reimplemented from geotess::Data.

template<typename T>
virtual double geotess::DataValue< T >::getDouble ( int  attributeIndex) const [inline, virtual]

Returns value as one of six intrinsic types.

Reimplemented from geotess::Data.

template<typename T>
virtual float geotess::DataValue< T >::getFloat ( int  attributeIndex) const [inline, virtual]

Retrieve the value of the attribute at the specified attribute index as a float value.

Returns:
the value of the attribute at the specified attribute index

Reimplemented from geotess::Data.

template<typename T>
virtual int geotess::DataValue< T >::getInt ( int  attributeIndex) const [inline, virtual]

Retrieve the value of the attribute at the specified attribute index as a int value.

Returns:
the value of the attribute at the specified attribute index

Reimplemented from geotess::Data.

template<typename T>
virtual LONG_INT geotess::DataValue< T >::getLong ( int  attributeIndex) const [inline, virtual]

Retrieve the value of the attribute at the specified attribute index as a LONG_INT value.

Returns:
the value of the attribute at the specified attribute index

Reimplemented from geotess::Data.

template<typename T>
virtual short geotess::DataValue< T >::getShort ( int  attributeIndex) const [inline, virtual]

Retrieve the value of the attribute at the specified attribute index as a short value.

Returns:
the value of the attribute at the specified attribute index

Reimplemented from geotess::Data.

template<typename T>
virtual void geotess::DataValue< T >::getValue ( int  attributeIndex,
double &  val 
) const [inline, virtual]

Returns the attribute at the input attribute index as a double value.

Reimplemented from geotess::Data.

template<typename T>
virtual void geotess::DataValue< T >::getValue ( int  attributeIndex,
float &  val 
) const [inline, virtual]

Returns the attribute at the input attribute index as a float value.

Reimplemented from geotess::Data.

template<typename T>
virtual void geotess::DataValue< T >::getValue ( int  attributeIndex,
LONG_INT val 
) const [inline, virtual]

Returns the attribute at the input attribute index as a long value.

Reimplemented from geotess::Data.

template<typename T>
virtual void geotess::DataValue< T >::getValue ( int  attributeIndex,
int &  val 
) const [inline, virtual]

Returns the attribute at the input attribute index as a int value.

Reimplemented from geotess::Data.

template<typename T>
virtual void geotess::DataValue< T >::getValue ( int  attributeIndex,
short &  val 
) const [inline, virtual]

Returns the attribute at the input attribute index as a short value.

Reimplemented from geotess::Data.

template<typename T>
virtual void geotess::DataValue< T >::getValue ( int  attributeIndex,
byte val 
) const [inline, virtual]

Returns the attribute at the input attribute index as a byte value.

Reimplemented from geotess::Data.

template<typename T>
virtual void geotess::DataValue< T >::getValues ( double  values[],
const int &  n 
) [inline, virtual]

Copy value into the supplied array at index 0 as a double value.

Reimplemented from geotess::Data.

template<typename T>
virtual void geotess::DataValue< T >::getValues ( float  values[],
const int &  n 
) [inline, virtual]

Copy value into the supplied array at index 0 as a float value.

Reimplemented from geotess::Data.

template<typename T>
virtual void geotess::DataValue< T >::getValues ( LONG_INT  values[],
const int &  n 
) [inline, virtual]

Copy value into the supplied array at index 0 as a LONG_INT value.

Reimplemented from geotess::Data.

template<typename T>
virtual void geotess::DataValue< T >::getValues ( int  values[],
const int &  n 
) [inline, virtual]

Copy value into the supplied array at index 0 as an int value.

Reimplemented from geotess::Data.

template<typename T>
virtual void geotess::DataValue< T >::getValues ( short  values[],
const int &  n 
) [inline, virtual]

Copy value into the supplied array at index 0 as a short value.

Reimplemented from geotess::Data.

template<typename T>
virtual void geotess::DataValue< T >::getValues ( byte  values[],
const int &  n 
) [inline, virtual]

Copy value into the supplied array at index 0 as a byte value.

Reimplemented from geotess::Data.

template<typename T>
virtual bool geotess::DataValue< T >::isNaN ( int  attributeIndex) const [inline, virtual]

Returns true if the specified attribute is NaN. when Data values are of type Byte, Short, Int and Long, this method always returns false since those types do not support NaN. float and double types are overridden and returns true if value isNaN and false otherwise.

Parameters:
attributeIndexThe attribute value to be tested.
Returns:
true if the value of the specified attribute is NaN.

Reimplemented from geotess::Data.

template<typename T>
bool geotess::DataValue< T >::operator== ( const DataValue< T > &  d) const [inline]

Return true if the input DataValue<T> object (d) equals this DataValue<T> object.

template<typename T>
virtual bool geotess::DataValue< T >::operator== ( const Data d) const [inline, virtual]

Return true if the input DataValue<T> object (d) equals this DataValue<T> object.

Reimplemented from geotess::Data.

template<typename T>
virtual Data& geotess::DataValue< T >::setValue ( int  attributeIndex,
double  v 
) [inline, virtual]

Set the value at the input attribute index to the input intrinsic.

Reimplemented from geotess::Data.

template<typename T>
virtual Data& geotess::DataValue< T >::setValue ( int  attributeIndex,
float  v 
) [inline, virtual]

Set the value of the specified attributeIndex and return a reference to this Data object.

Parameters:
attributeIndexthe index of the attribute that is to be modified.
vthe new value that is to replace the old value.
Returns:
a reference to this Data object.

Reimplemented from geotess::Data.

template<typename T>
virtual Data& geotess::DataValue< T >::setValue ( int  attributeIndex,
LONG_INT  v 
) [inline, virtual]

Set the value of the specified attributeIndex and return a reference to this Data object.

Parameters:
attributeIndexthe index of the attribute that is to be modified.
vthe new value that is to replace the old value.
Returns:
a reference to this Data object.

Reimplemented from geotess::Data.

template<typename T>
virtual Data& geotess::DataValue< T >::setValue ( int  attributeIndex,
int  v 
) [inline, virtual]

Set the value of the specified attributeIndex and return a reference to this Data object.

Parameters:
attributeIndexthe index of the attribute that is to be modified.
vthe new value that is to replace the old value.
Returns:
a reference to this Data object.

Reimplemented from geotess::Data.

template<typename T>
virtual Data& geotess::DataValue< T >::setValue ( int  attributeIndex,
short  v 
) [inline, virtual]

Set the value of the specified attributeIndex and return a reference to this Data object.

Parameters:
attributeIndexthe index of the attribute that is to be modified.
vthe new value that is to replace the old value.
Returns:
a reference to this Data object.

Reimplemented from geotess::Data.

template<typename T>
virtual Data& geotess::DataValue< T >::setValue ( int  attributeIndex,
byte  v 
) [inline, virtual]

Set the value of the specified attributeIndex and return a reference to this Data object.

Parameters:
attributeIndexthe index of the attribute that is to be modified.
vthe new value that is to replace the old value.
Returns:
a reference to this Data object.

Reimplemented from geotess::Data.

template<typename T>
virtual int geotess::DataValue< T >::size ( ) const [inline, virtual]

Return size.

Reimplemented from geotess::Data.


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