OpendTect-6_4  6.4
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 ()
 
int getIndexOf (const char *varnm) const
 
void getNames (BufferStringSet &, bool usrdisp=true) const
 
void add (const char *varnm, const char *dispnm, bool hasuns=false, PropertyRef::StdType typ=PropertyRef::Other)
 
SpecVarfind (const char *nm)
 
const SpecVarfind (const char *nm) const
 
bool isPresent (const char *nm) const
 
const OD::StringvarName (int idx) const
 
const OD::StringdispName (int idx) const
 
bool hasUnits (int idx)
 
PropertyRef::StdType propType (int idx)
 
- Public Member Functions inherited from TypeSet< SpecVar >
 TypeSet ()
 
 TypeSet (int nr, SpecVar typ)
 
 TypeSet (const SpecVar *t, int nr)
 
 TypeSet (const TypeSet< SpecVar > &t)
 
- Public Member Functions inherited from TypeSetBase< SpecVar, int >
virtual ~TypeSetBase ()
 
TypeSetBase< SpecVar, int > & operator= (const TypeSetBase< SpecVar, int > &ts)
 
size_type size () const
 
virtual int64_t nrItems () const
 
virtual bool setSize (size_type, SpecVar val=SpecVar())
 
virtual bool setCapacity (size_type sz, bool withmargin)
 
virtual size_type getCapacity () const
 
void setAll (SpecVar)
 
void replace (SpecVar, SpecVar)
 
SpecVar & operator[] (size_type)
 
const SpecVar & operator[] (size_type) const
 
SpecVar & first ()
 
const SpecVar & first () const
 
SpecVar & last ()
 
const SpecVar & last () const
 
virtual bool validIdx (int64_t) const
 
virtual size_type indexOf (SpecVar, bool forward=true, size_type start=-1) const
 
bool isPresent (const SpecVar &) const
 
size_type count (const SpecVar &) const
 
TypeSetBase< SpecVar, int > & add (const SpecVar &)
 
virtual void insert (size_type, const SpecVar &)
 
bool push (const SpecVar &)
 
SpecVar pop ()
 
TypeSetBase< SpecVar, int > & operator+= (const SpecVar &t)
 
virtual bool append (const SpecVar *, size_type)
 
virtual bool append (const TypeSetBase< SpecVar, int > &)
 
virtual bool addIfNew (const SpecVar &)
 
virtual TypeSetBase< SpecVar, int > & copy (const SpecVar *, size_type)
 
virtual TypeSetBase< SpecVar, int > & copy (const TypeSetBase< SpecVar, int > &)
 
virtual void createUnion (const TypeSetBase< SpecVar, int > &)
 
virtual void createIntersection (const TypeSetBase< SpecVar, int > &)
 Only keeps common items. More...
 
virtual void createDifference (const TypeSetBase< SpecVar, int > &, bool must_preserve_order=false)
 Removes all items present in other set. More...
 
virtual void swap (int64_t, int64_t)
 
virtual void move (size_type from, size_type to)
 
virtual void getReOrdered (const size_type *, TypeSetBase< SpecVar, int > &)
 Fills as per the given array of indexes. More...
 
virtual void reverse ()
 
virtual void erase ()
 
virtual void removeSingle (size_type, bool preserver_order=true)
 
TypeSetBase< SpecVar, int > & operator-= (const SpecVar &)
 
virtual void removeRange (size_type from, size_type to)
 
virtual SpecVar * arr ()
 3rd party access More...
 
virtual const SpecVar * arr () const
 
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 SpecVarSetgetEmpty ()
 

Additional Inherited Members

- Public Types inherited from TypeSetBase< SpecVar, int >
typedef int size_type
 
typedef SpecVar object_type
 
- Protected Member Functions inherited from TypeSetBase< SpecVar, int >
 TypeSetBase ()
 
 TypeSetBase (size_type nr, SpecVar typ)
 
 TypeSetBase (const SpecVar *, size_type nr)
 
 TypeSetBase (const TypeSetBase< SpecVar, size_type > &)
 
virtual SpecVar * gtArr () const
 
- Protected Attributes inherited from TypeSetBase< SpecVar, int >
VectorAccess< SpecVar, int > vec_
 

Detailed Description

Set of special variables for Math Formulae/Expressions.

Constructor & Destructor Documentation

Math::SpecVarSet::SpecVarSet ( )
inline

Member Function Documentation

void Math::SpecVarSet::add ( const char *  varnm,
const char *  dispnm,
bool  hasuns = false,
PropertyRef::StdType  typ = PropertyRef::Other 
)
inline
const OD::String& Math::SpecVarSet::dispName ( int  idx) const
inline
SpecVar* Math::SpecVarSet::find ( const char *  nm)
inline
const SpecVar* Math::SpecVarSet::find ( const char *  nm) const
inline
static const SpecVarSet& Math::SpecVarSet::getEmpty ( )
static
int Math::SpecVarSet::getIndexOf ( const char *  varnm) const
void Math::SpecVarSet::getNames ( BufferStringSet ,
bool  usrdisp = true 
) const
bool Math::SpecVarSet::hasUnits ( int  idx)
inline
bool Math::SpecVarSet::isPresent ( const char *  nm) const
inline
PropertyRef::StdType Math::SpecVarSet::propType ( int  idx)
inline
const OD::String& Math::SpecVarSet::varName ( int  idx) const
inline

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