OpendTect  6.6
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 ()
 
virtual NumInpSpec< T > * clone () const
 
defaultValue () const
 
virtual float getDefaultfValue (int idx=0) const
 
virtual int getDefaultIntValue (int idx=0) const
 
virtual double getDefaultValue (int idx=0) const
 
virtual double getDValue (int idx=0) const
 
virtual float getFValue (int idx=0) const
 
virtual od_int64 getInt64Value (int idx=0) const
 
virtual int getIntValue (int idx=0) const
 
virtual bool hasLimits () const
 
virtual bool isInsideLimits (int idx=0) const
 
virtual bool isUndef (int idx=0) const
 
const StepInterval< T > * limits () const
 
virtual void setDefaultValue (bool val, int idx=0)
 
virtual void setDefaultValue (const char *val, int idx=0)
 
virtual void setDefaultValue (double val, int idx=0)
 
virtual void setDefaultValue (float val, int idx=0)
 
virtual void setDefaultValue (int val, int idx=0)
 
NumInpSpec< T > & setLimits (const Interval< T > &intv)
 
NumInpSpec< T > & setLimits (const StepInterval< T > &r)
 
virtual bool setText (const char *s, int idx=0)
 
virtual const char * text (int idx=0) const
 
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 >
virtual NumInpSpec<T>* NumInpSpec< T >::clone ( ) const
inlinevirtual

Implements DataInpSpec.

◆ defaultValue()

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

◆ getDefaultfValue()

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

Reimplemented from DataInpSpec.

◆ getDefaultIntValue()

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

Reimplemented from DataInpSpec.

◆ getDefaultValue()

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

Reimplemented from DataInpSpec.

◆ getDValue()

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

Reimplemented from DataInpSpec.

◆ getFValue()

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

Reimplemented from DataInpSpec.

◆ getInt64Value()

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

Reimplemented from DataInpSpec.

◆ getIntValue()

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

Sets the values (with setText())

Reimplemented from DataInpSpec.

◆ hasLimits()

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

Reimplemented from DataInpSpec.

◆ isInsideLimits()

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

Reimplemented from DataInpSpec.

◆ isUndef()

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

Implements DataInpSpec.

◆ limits()

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

◆ setDefaultValue() [1/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [2/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [3/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [4/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [5/5]

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

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 >
virtual bool NumInpSpec< T >::setText ( const char *  s,
int  idx = 0 
)
inlinevirtual

Implements DataInpSpec.

◆ text()

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

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-2022