rasdaman client API  10.6.3
The Array Analytics Engine: Datacubes at Your Fingertips
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
r_Nullvalues Class Reference

#include <nullvalues.hh>

Public Member Functions

 r_Nullvalues ()=default
 
 r_Nullvalues (std::vector< std::pair< r_Double, r_Double >> &&nullvaluesArg)
 
const std::vector< std::pair< r_Double, r_Double > > & getNullvalues () const
 
template<typename T >
bool isNullNonFloat (const T value) const
 check whether a value is in an interval (hence a null value) More...
 
template<typename T >
bool isNullFloat (const T value) const
 check whether a value is in an interval (hence a null value) TODO: this needs to be improved, performance and scope More...
 
double getFirstNullValue () const
 if the null set contains any non-interval null values, then the first such null value is returned, otherwise the first interval bound which is not '*' is returned; useful in cases where a single nodata value is needed, e.g. More...
 
std::string toString () const
 

Static Public Attributes

static const double_t unlimitedLow
 the * in *:hi, it is the smallest double number More...
 
static const double_t unlimitedHigh
 the * in lo:*, it is the maximum double number More...
 

Protected Attributes

std::vector< std::pair< r_Double, r_Double > > nullvalues
 

Constructor & Destructor Documentation

◆ r_Nullvalues() [1/2]

r_Nullvalues::r_Nullvalues ( )
default

◆ r_Nullvalues() [2/2]

r_Nullvalues::r_Nullvalues ( std::vector< std::pair< r_Double, r_Double >> &&  nullvaluesArg)
explicit

Member Function Documentation

◆ getFirstNullValue()

double r_Nullvalues::getFirstNullValue ( ) const

if the null set contains any non-interval null values, then the first such null value is returned, otherwise the first interval bound which is not '*' is returned; useful in cases where a single nodata value is needed, e.g.

when encoding the data

◆ getNullvalues()

const std::vector<std::pair<r_Double, r_Double> >& r_Nullvalues::getNullvalues ( ) const
inline

References nullvalues.

◆ isNullFloat()

template<typename T >
bool r_Nullvalues::isNullFloat ( const T  value) const
inline

check whether a value is in an interval (hence a null value) TODO: this needs to be improved, performance and scope

References nullvalues.

◆ isNullNonFloat()

template<typename T >
bool r_Nullvalues::isNullNonFloat ( const T  value) const
inline

check whether a value is in an interval (hence a null value)

References nullvalues.

◆ toString()

std::string r_Nullvalues::toString ( ) const

Member Data Documentation

◆ nullvalues

std::vector<std::pair<r_Double, r_Double> > r_Nullvalues::nullvalues
protected

◆ unlimitedHigh

const double_t r_Nullvalues::unlimitedHigh
static

the * in lo:*, it is the maximum double number

◆ unlimitedLow

const double_t r_Nullvalues::unlimitedLow
static

the * in *:hi, it is the smallest double number


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