OpendTect  7.0
Public Member Functions | Static Public Member Functions | List of all members
Math::SpecVarSet Class Reference

Set of special variables for Math Formulae/Expressions. More...

Inheritance diagram for Math::SpecVarSet:
[legend]

Public Member Functions

 SpecVarSet ()
 
mDeprecatedDef void add (const char *varnm, const char *dispnm, bool hasuns, Mnemonic::StdType typ)
 
void add (const char *varnm, const char *dispnm, bool hasuns=false, const Mnemonic *mn=nullptr)
 
const OD::StringdispName (int idx) const
 
SpecVarfind (const char *nm)
 
const SpecVarfind (const char *nm) const
 
int getIndexOf (const char *varnm) const
 
void getNames (BufferStringSet &, bool usrdisp=true) const
 
bool hasUnits (int idx) const
 
bool isPresent (const char *nm) const
 
const Mnemonicmnemonic (int idx) const
 
Mnemonic::StdType propType (int idx) const
 
const OD::StringvarName (int idx) const
 
- Public Member Functions inherited from TypeSet< SpecVar >
 TypeSet ()
 
 TypeSet (const SpecVar *t, size_type nr)
 
 TypeSet (const TypeSet &oth)
 
 TypeSet (size_type nr, SpecVar typ)
 
 TypeSet (SpecVar typ)
 
TypeSetclone () const override
 
- Public Member Functions inherited from OD::ValVec< T, IT >
virtual ~ValVec ()
 
ValVecadd (const T &)
 
virtual bool addIfNew (const T &)
 
virtual bool append (const T *, size_type)
 
virtual bool append (const ValVec &)
 
virtual T * arr ()
 3rd party access More...
 
virtual const T * arr () const
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
virtual ValVeccopy (const T *, size_type)
 
virtual ValVeccopy (const ValVec &)
 
size_type count (const T &) const
 
virtual void createDifference (const ValVec &, bool must_preserve_order=false)
 Removes all items present in other set. More...
 
virtual void createIntersection (const ValVec &)
 Only keeps common items. More...
 
virtual void createUnion (const ValVec &)
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
void erase () override
 
T & first ()
 
const T & first () const
 
T & get (idx_type)
 
const T & get (idx_type) const
 
virtual size_type getCapacity () const
 
idx_type getIdx (const_iterator it) const
 
idx_type getIdx (iterator it) const
 
virtual idx_type indexOf (T, bool forward=true, idx_type start=-1) const
 
virtual void insert (idx_type, const T &)
 
bool isPresent (const T &) const
 
T & last ()
 
const T & last () const
 
size_type max_size () const
 
virtual void move (idx_type from, idx_type to)
 
std::int64_t nrItems () const override
 
bool operator!= (const ValVec &oth) const
 
ValVecoperator+= (const T &t)
 
ValVecoperator-= (const T &t)
 
ValVecoperator= (const ValVec &oth)
 
bool operator== (const ValVec &) const
 
T & operator[] (idx_type i)
 
const T & operator[] (idx_type i) const
 
pop ()
 
bool push (const T &)
 
virtual void removeRange (idx_type from, idx_type to)
 
virtual void removeSingle (idx_type, bool preserver_order=true)
 
void replace (T, T)
 
void reverse () override
 
void setAll (T)
 
virtual bool setCapacity (size_type sz, bool withmargin)
 
virtual bool setSize (size_type sz, T val=T())
 
size_type size () const
 
void swap (IT, IT)
 
void swap (ValVec &oth)
 
void swapItems (std::int64_t i1, std::int64_t i2) override
 
virtual void useIndexes (const idx_type *)
 
bool validIdx (std::int64_t) const override
 
std::vector< T > & vec ()
 
const std::vector< T > & vec () const
 
- Public Member Functions inherited from OD::Set
virtual ~Set ()
 
bool isEmpty () const
 
void setEmpty ()
 

Static Public Member Functions

static const SpecVarSetgetEmpty ()
 
- Static Public Member Functions inherited from OD::Set
static std::int32_t maxIdx32 ()
 
static std::int64_t maxIdx64 ()
 

Additional Inherited Members

- Public Types inherited from TypeSet< SpecVar >
typedef OD::ValVec< SpecVar, std::int32_t >::idx_type idx_type
 
typedef OD::ValVec< SpecVar, std::int32_t >::size_type size_type
 
- Public Types inherited from OD::ValVec< T, IT >
typedef impl_type::const_iterator const_iterator
 
typedef const value_typeconst_reference
 
typedef size_type difference_type
 
typedef size_type idx_type
 
typedef impl_type::iterator iterator
 
typedef T object_type
 
typedef value_typereference
 
typedef IT size_type
 
typedef T value_type
 
- Protected Types inherited from OD::ValVec< T, IT >
typedef VectorAccess< T, IT > impl_type
 
- Protected Member Functions inherited from OD::ValVec< T, IT >
 ValVec ()
 
 ValVec (const T *, size_type nr)
 
 ValVec (const ValVec &)
 
 ValVec (size_type nr, T typ)
 
T * gtArr () const
 
- Protected Attributes inherited from OD::ValVec< T, IT >
impl_type vec_
 

Detailed Description

Set of special variables for Math Formulae/Expressions.

<>

Constructor & Destructor Documentation

◆ SpecVarSet()

Math::SpecVarSet::SpecVarSet ( )
inline

Member Function Documentation

◆ add() [1/2]

mDeprecatedDef void Math::SpecVarSet::add ( const char *  varnm,
const char *  dispnm,
bool  hasuns,
Mnemonic::StdType  typ 
)
inline

◆ add() [2/2]

void Math::SpecVarSet::add ( const char *  varnm,
const char *  dispnm,
bool  hasuns = false,
const Mnemonic mn = nullptr 
)
inline

◆ dispName()

const OD::String& Math::SpecVarSet::dispName ( int  idx) const
inline

◆ find() [1/2]

SpecVar* Math::SpecVarSet::find ( const char *  nm)
inline

◆ find() [2/2]

const SpecVar* Math::SpecVarSet::find ( const char *  nm) const
inline

◆ getEmpty()

static const SpecVarSet& Math::SpecVarSet::getEmpty ( )
static

◆ getIndexOf()

int Math::SpecVarSet::getIndexOf ( const char *  varnm) const

◆ getNames()

void Math::SpecVarSet::getNames ( BufferStringSet ,
bool  usrdisp = true 
) const

◆ hasUnits()

bool Math::SpecVarSet::hasUnits ( int  idx) const
inline

◆ isPresent()

bool Math::SpecVarSet::isPresent ( const char *  nm) const
inline

◆ mnemonic()

const Mnemonic& Math::SpecVarSet::mnemonic ( int  idx) const
inline

◆ propType()

Mnemonic::StdType Math::SpecVarSet::propType ( int  idx) const
inline

◆ varName()

const OD::String& Math::SpecVarSet::varName ( int  idx) const
inline

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