OpendTect  7.0
Public Member Functions | Protected Attributes | List of all members
NumInpSpec< T > Class Template Reference

Specifications for numerical inputs that may or may not have limits. More...

Inheritance diagram for NumInpSpec< T >:
[legend]

Public Member Functions

 NumInpSpec ()
 
 NumInpSpec (const NumInpSpec< T > &)
 
 NumInpSpec (T val)
 
 NumInpSpec (T val, const StepInterval< T > &intv)
 
 NumInpSpec (T val, T start, T stop=mUdf(T), T step=1)
 
 ~NumInpSpec ()
 
NumInpSpec< T > * clone () const override
 
defaultValue () const
 
float getDefaultfValue (int idx=0) const override
 
int getDefaultIntValue (int idx=0) const override
 
double getDefaultValue (int idx=0) const override
 
double getDValue (int idx=0) const override
 
float getFValue (int idx=0) const override
 
od_int64 getInt64Value (int idx=0) const override
 
int getIntValue (int idx=0) const override
 
bool hasLimits () const override
 
bool isInsideLimits (int idx=0) const override
 
bool isUndef (int idx=0) const override
 
const StepInterval< T > * limits () const
 
void setDefaultValue (bool val, int idx=0) override
 
void setDefaultValue (const char *val, int idx=0) override
 
void setDefaultValue (double val, int idx=0) override
 
void setDefaultValue (float val, int idx=0) override
 
void setDefaultValue (int val, int idx=0) override
 
NumInpSpec< T > & setLimits (const Interval< T > &intv)
 
NumInpSpec< T > & setLimits (const StepInterval< T > &r)
 
bool setText (const char *s, int idx=0) override
 
const char * text (int idx=0) const override
 
value () const
 
- Public Member Functions inherited from DataInpSpec
 DataInpSpec (const DataInpSpec &)
 
 DataInpSpec (DataType)
 
virtual ~DataInpSpec ()
 
void fillPar (IOPar &) const
 
virtual bool getBoolValue (int idx=0) const
 
virtual bool getDefaultBoolValue (int idx=0) const
 
virtual const char * getDefaultStringValue (int idx=0) const
 
double getdValue (int idx=0) const
 
float getfValue (int idx=0) const
 
virtual const char * name (int idx=0) const
 
virtual int nElems () const
 
virtual DataInpSpecsetName (const char *, int idx=0)
 
virtual void setValue (bool b, int idx=0)
 
virtual void setValue (double d, int idx=0)
 
virtual void setValue (float f, int idx=0)
 
virtual void setValue (int i, int idx=0)
 
virtual void setValue (od_int64 i, int idx=0)
 
DataType type () const
 
bool usePar (const IOPar &)
 

Protected Attributes

defaultvalue_
 
StepInterval< T > * limits_
 
value_
 
- Protected Attributes inherited from DataInpSpec
TypeSet< int > nameidxs_
 
BufferStringSet names_
 
bool prefempty_
 
DataType tp_
 

Additional Inherited Members

- Protected Member Functions inherited from DataInpSpec
void setType (DataType t)
 

Detailed Description

template<class T>
class NumInpSpec< T >

Specifications for numerical inputs that may or may not have limits.

If the input must lie in a certain range, this range can be obtainted by Limits() and set by... setLimits().

<>

Constructor & Destructor Documentation

◆ NumInpSpec() [1/5]

template<class T >
NumInpSpec< T >::NumInpSpec ( )
inline

◆ NumInpSpec() [2/5]

template<class T >
NumInpSpec< T >::NumInpSpec ( val)
inline

◆ NumInpSpec() [3/5]

template<class T >
NumInpSpec< T >::NumInpSpec ( val,
start,
stop = mUdf(T),
step = 1 
)
inline

◆ NumInpSpec() [4/5]

template<class T >
NumInpSpec< T >::NumInpSpec ( val,
const StepInterval< T > &  intv 
)
inline

◆ NumInpSpec() [5/5]

template<class T >
NumInpSpec< T >::NumInpSpec ( const NumInpSpec< T > &  nis)

◆ ~NumInpSpec()

template<class T >
NumInpSpec< T >::~NumInpSpec ( )
inline

Member Function Documentation

◆ clone()

template<class T >
NumInpSpec<T>* NumInpSpec< T >::clone ( ) const
inlineoverridevirtual

Implements DataInpSpec.

◆ defaultValue()

template<class T >
T NumInpSpec< T >::defaultValue ( ) const
inline

◆ getDefaultfValue()

template<class T >
float NumInpSpec< T >::getDefaultfValue ( int  idx = 0) const
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ getDefaultIntValue()

template<class T >
int NumInpSpec< T >::getDefaultIntValue ( int  idx = 0) const
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ getDefaultValue()

template<class T >
double NumInpSpec< T >::getDefaultValue ( int  idx = 0) const
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ getDValue()

template<class T >
double NumInpSpec< T >::getDValue ( int  idx = 0) const
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ getFValue()

template<class T >
float NumInpSpec< T >::getFValue ( int  idx = 0) const
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ getInt64Value()

template<class T >
od_int64 NumInpSpec< T >::getInt64Value ( int  idx = 0) const
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ getIntValue()

template<class T >
int NumInpSpec< T >::getIntValue ( int  idx = 0) const
inlineoverridevirtual

Sets the values (with setText())

Reimplemented from DataInpSpec.

◆ hasLimits()

template<class T >
bool NumInpSpec< T >::hasLimits ( ) const
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ isInsideLimits()

template<class T >
bool NumInpSpec< T >::isInsideLimits ( int  idx = 0) const
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ isUndef()

template<class T >
bool NumInpSpec< T >::isUndef ( int  idx = 0) const
inlineoverridevirtual

Implements DataInpSpec.

◆ limits()

template<class T >
const StepInterval<T>* NumInpSpec< T >::limits ( ) const
inline

◆ setDefaultValue() [1/5]

template<class T >
void NumInpSpec< T >::setDefaultValue ( bool  val,
int  idx = 0 
)
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ setDefaultValue() [2/5]

template<class T >
void NumInpSpec< T >::setDefaultValue ( const char *  val,
int  idx = 0 
)
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ setDefaultValue() [3/5]

template<class T >
void NumInpSpec< T >::setDefaultValue ( double  val,
int  idx = 0 
)
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ setDefaultValue() [4/5]

template<class T >
void NumInpSpec< T >::setDefaultValue ( float  val,
int  idx = 0 
)
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ setDefaultValue() [5/5]

template<class T >
void NumInpSpec< T >::setDefaultValue ( int  val,
int  idx = 0 
)
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ setLimits() [1/2]

template<class T >
NumInpSpec<T>& NumInpSpec< T >::setLimits ( const Interval< T > &  intv)
inline

◆ setLimits() [2/2]

template<class T >
NumInpSpec<T>& NumInpSpec< T >::setLimits ( const StepInterval< T > &  r)
inline

◆ setText()

template<class T >
bool NumInpSpec< T >::setText ( const char *  s,
int  idx = 0 
)
inlineoverridevirtual

Implements DataInpSpec.

◆ text()

template<class T >
const char* NumInpSpec< T >::text ( int  idx = 0) const
inlineoverridevirtual

Implements DataInpSpec.

◆ value()

template<class T >
T NumInpSpec< T >::value ( ) const
inline

Member Data Documentation

◆ defaultvalue_

template<class T >
T NumInpSpec< T >::defaultvalue_
protected

◆ limits_

template<class T >
StepInterval<T>* NumInpSpec< T >::limits_
protected

◆ value_

template<class T >
T NumInpSpec< T >::value_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024