OpendTect-6_4  6.4
Protected Attributes | Private Member Functions | 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]

Protected Attributes

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

Private Member Functions

 mODTextTranslationClass (NumInpSpec) public
 
 NumInpSpec (T val)
 
 NumInpSpec (T val, T start, T stop=mUdf(T), T step=1)
 
 NumInpSpec (T val, const StepInterval< T > &intv)
 
 NumInpSpec (const NumInpSpec< T > &)
 
 ~NumInpSpec ()
 
virtual NumInpSpec< T > * clone () const
 
virtual bool isUndef (int idx=0) const
 
virtual bool setText (const char *s, int idx=0)
 
virtual int getIntValue (int idx=0) const
 
virtual double getDValue (int idx=0) const
 
virtual float getFValue (int idx=0) const
 
virtual int getDefaultIntValue (int idx=0) const
 
virtual double getDefaultValue (int idx=0) const
 
virtual float getDefaultfValue (int idx=0) const
 
virtual void setDefaultValue (int val, int idx=0)
 
virtual void setDefaultValue (double val, int idx=0)
 
virtual void setDefaultValue (float val, int idx=0)
 
virtual void setDefaultValue (bool val, int idx=0)
 
virtual void setDefaultValue (const char *val, int idx=0)
 
value () const
 
defaultValue () const
 
virtual const char * text (int idx=0) const
 
virtual bool hasLimits () const
 
virtual bool isInsideLimits (int idx=0) const
 
const StepInterval< T > * limits () const
 
NumInpSpec< T > & setLimits (const Interval< T > &intv)
 
NumInpSpec< T > & setLimits (const StepInterval< T > &r)
 

Additional Inherited Members

- Public Member Functions inherited from DataInpSpec
double getdValue (int idx=0) const
 
float getfValue (int idx=0) const
 
- 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

template<class T>
NumInpSpec< T >::NumInpSpec ( val)
inlineprivate
template<class T>
NumInpSpec< T >::NumInpSpec ( val,
start,
stop = mUdf(T),
step = 1 
)
inlineprivate
template<class T>
NumInpSpec< T >::NumInpSpec ( val,
const StepInterval< T > &  intv 
)
inlineprivate
template<class T >
NumInpSpec< T >::NumInpSpec ( const NumInpSpec< T > &  nis)
private
template<class T>
NumInpSpec< T >::~NumInpSpec ( )
inlineprivate

Member Function Documentation

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

Implements DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Sets the values (with setText())

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Implements DataInpSpec.

template<class T>
const StepInterval<T>* NumInpSpec< T >::limits ( ) const
inlineprivate
template<class T>
NumInpSpec< T >::mODTextTranslationClass ( NumInpSpec< T >  )
inlineprivate
template<class T>
virtual void NumInpSpec< T >::setDefaultValue ( int  val,
int  idx = 0 
)
inlineprivatevirtual

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

template<class T>
NumInpSpec<T>& NumInpSpec< T >::setLimits ( const Interval< T > &  intv)
inlineprivate
template<class T>
NumInpSpec<T>& NumInpSpec< T >::setLimits ( const StepInterval< T > &  r)
inlineprivate
template<class T>
virtual bool NumInpSpec< T >::setText ( const char *  s,
int  idx = 0 
)
inlineprivatevirtual

Implements DataInpSpec.

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

Implements DataInpSpec.

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

Member Data Documentation

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

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