OpendTect 8.0
Loading...
Searching...
No Matches
Math::SpecVarSet Class Reference

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

#include <mathspecvars.h>

Inheritance diagram for Math::SpecVarSet:
[legend]

Public Member Functions

 SpecVarSet ()
 
 ~SpecVarSet ()
 
void add (const char *varnm, const char *dispnm, bool hasuns, Mnemonic::StdType)
 
void add (const char *varnm, const char *dispnm, bool hasuns=false, const Mnemonic *mn=nullptr)
 
const OD::String & dispName (int idx) const
 
SpecVar * find (const char *nm)
 
const SpecVar * find (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 Mnemonic & mnemonic (int idx) const
 
Mnemonic::StdType propType (int idx) const
 
const OD::String & varName (int idx) const
 
- Public Member Functions inherited from TypeSet< SpecVar >
 TypeSet ()
 
 TypeSet (const SpecVar *t, size_type sz)
 
 TypeSet (const TypeSet &oth)
 
 TypeSet (size_type sz, SpecVar typ)
 
 TypeSet (SpecVar typ)
 
 ~TypeSet ()
 
TypeSet * clone () const override
 
- Public Member Functions inherited from OD::ValVec< SpecVar, od_int32 >
virtual ~ValVec ()
 
ValVec & add (const SpecVar &)
 
virtual bool addIfNew (const SpecVar &)
 
virtual bool append (const SpecVar *, size_type)
 
virtual bool append (const ValVec &)
 
virtual SpecVar * arr ()
 3rd party access
 
virtual const SpecVar * arr () const
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
virtual ValVec & copy (const SpecVar *, size_type)
 
virtual ValVec & copy (const ValVec &)
 
size_type count (const SpecVar &) const
 
virtual void createDifference (const ValVec &, bool must_preserve_order=false)
 Removes all items present in other set.
 
virtual void createIntersection (const ValVec &)
 Only keeps common items.
 
virtual void createUnion (const ValVec &)
 
void emplace_back (Args &&... args)
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
void erase () override
 
std::enable_if< std::is_arithmetic< U >::value >::type fillWithIncreasingValues (U startval=0)
 
SpecVar & first ()
 
const SpecVar & first () const
 
SpecVar & get (idx_type)
 
const SpecVar & 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 (SpecVar, bool forward=true, idx_type start=-1) const
 
virtual void insert (idx_type, const SpecVar &)
 
bool isPresent (const SpecVar &) const
 
SpecVar & last ()
 
const SpecVar & last () const
 
size_type max_size () const
 
virtual void move (idx_type from, idx_type to)
 
od_int64 nrItems () const override
 
bool operator!= (const ValVec &oth) const
 
ValVec & operator+= (const SpecVar &t)
 
ValVec & operator-= (const SpecVar &t)
 
ValVec & operator= (const ValVec &oth)
 
bool operator== (const ValVec &) const
 
SpecVar & operator[] (idx_type i)
 
const SpecVar & operator[] (idx_type i) const
 
SpecVar pop ()
 
bool push (const SpecVar &)
 
virtual void removeRange (idx_type from, idx_type to)
 
virtual void removeSingle (idx_type, bool preserver_order=true)
 
void replace (SpecVar, SpecVar)
 
void reverse () override
 
void setAll (SpecVar)
 
virtual bool setCapacity (size_type sz, bool withmargin)
 
virtual bool setSize (size_type sz, SpecVar val=SpecVar())
 
size_type size () const
 
void swap (od_int32, od_int32)
 
void swap (ValVec &oth)
 
void swapItems (od_int64 i1, od_int64 i2) override
 
virtual void useIndexes (const idx_type *)
 
bool validIdx (od_int64) const override
 
std::vector< SpecVar > & vec ()
 
const std::vector< SpecVar > & vec () const
 
- Public Member Functions inherited from OD::Set
virtual ~Set ()
 
bool isEmpty () const
 
void setEmpty ()
 

Static Public Member Functions

static const SpecVarSet & getEmpty ()
 
- Static Public Member Functions inherited from OD::Set
static od_int32 maxIdx32 ()
 
static od_int64 maxIdx64 ()
 

Additional Inherited Members

- Public Types inherited from TypeSet< SpecVar >
typedef OD::ValVec< SpecVar, od_int32 >::idx_type idx_type
 
typedef OD::ValVec< SpecVar, od_int32 >::size_type size_type
 
- Public Types inherited from OD::ValVec< SpecVar, od_int32 >
typedef impl_type::const_iterator const_iterator
 
typedef const value_type & const_reference
 
typedef size_type difference_type
 
typedef size_type idx_type
 
typedef impl_type::iterator iterator
 
typedef SpecVar object_type
 
typedef value_type & reference
 
typedef od_int32 size_type
 
typedef SpecVar value_type
 
- Protected Types inherited from OD::ValVec< SpecVar, od_int32 >
typedef VectorAccess< SpecVar, od_int32 > impl_type
 
- Protected Member Functions inherited from OD::ValVec< SpecVar, od_int32 >
 ValVec ()
 
 ValVec (const SpecVar *, size_type sz)
 
 ValVec (const ValVec &)
 
 ValVec (size_type sz, SpecVar typ)
 
SpecVar * gtArr () const
 
- Protected Attributes inherited from OD::ValVec< SpecVar, od_int32 >
impl_type vec_
 

Detailed Description

Set of special variables for Math Formulae/Expressions.

Constructor & Destructor Documentation

◆ SpecVarSet()

Math::SpecVarSet::SpecVarSet ( )

◆ ~SpecVarSet()

Math::SpecVarSet::~SpecVarSet ( )

Member Function Documentation

◆ add() [1/2]

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

◆ 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-2026