OpendTect  7.0
Public Types | Public Member Functions | Private Member Functions | Friends | List of all members
RockPhysics::FormulaSet Class Reference

A repository of mathematics formulaes based on Mnemonics. More...

Inheritance diagram for RockPhysics::FormulaSet:
[legend]

Public Types

typedef Mnemonic::StdType PropType
 
- Public Types inherited from ObjectSet< const Formula >
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 const Formula object_type
 
typedef value_typereference
 
typedef int size_type
 
typedef const Formula * value_type
 

Public Member Functions

 ~FormulaSet ()
 
const FormulagetByName (const char *nm) const
 
const FormulagetByName (const Mnemonic &, const char *) const
 
int getIndexOf (const char *) const
 
bool getMatching (Math::Formula &) const
 
void getRelevant (const Mnemonic &, BufferStringSet &) const
 
bool getRelevant (const Mnemonic &, ObjectSet< const Math::Formula > &) const
 
void getRelevant (PropType, MnemonicSelection &) const
 
bool hasType (PropType) const
 
- Public Member Functions inherited from ObjectSet< const Formula >
 ObjectSet ()
 
 ObjectSet (const Formula *)
 
 ObjectSet (const Formula *, const Formula *)
 
 ObjectSet (const Formula *, const Formula *, const Formula *)
 
 ObjectSet (const ObjectSet &)
 
virtual ~ObjectSet ()
 
ObjectSetadd (const Formula *t)
 
bool addIfNew (const Formula *)
 
void allowNull (bool yn=true)
 
virtual void append (const ObjectSet &)
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
ObjectSetclone () const override
 
virtual void copy (const ObjectSet &)
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
void erase () override
 
const Formula * first ()
 
const const Formula * first () const
 
virtual const Formula * get (const const Formula *) const
 check & unconst More...
 
virtual const Formula * get (idx_type)
 
virtual const const Formula * get (idx_type) const
 
idx_type getIdx (const_iterator it) const
 
idx_type getIdx (iterator it) const
 
virtual idx_type indexOf (const const Formula *) const
 
virtual void insertAfter (const Formula *newptr, idx_type)
 
virtual void insertAt (const Formula *newptr, idx_type)
 
virtual bool isManaged () const
 
virtual bool isPresent (const const Formula *) const
 
const Formula * last ()
 
const const Formula * last () const
 
size_type max_size () const
 
std::int64_t nrItems () const override
 
bool nullAllowed () const
 
bool operator!= (const ObjectSet &oth) const
 
ObjectSetoperator+= (const Formula *t)
 
virtual ObjectSetoperator-= (const Formula *)
 
ObjectSetoperator= (const ObjectSet &)
 
bool operator== (const ObjectSet &) const
 
const const Formula * operator[] (const const Formula *t) const
 
const Formula * operator[] (idx_type i)
 
const const Formula * operator[] (idx_type i) const
 
void plainErase ()
 
virtual const Formula * pop ()
 
void push (const Formula *t)
 
virtual void removeRange (idx_type from, idx_type to)
 
virtual const Formula * removeSingle (idx_type, bool keep_order=true)
 
virtual const Formula * replace (idx_type, const Formula *)
 
void reverse () override
 
void setNullAllowed (bool yn=true)
 
size_type size () const
 
void swap (idx_type, idx_type)
 
void swap (ObjectSet &oth)
 
void swapItems (std::int64_t i1, std::int64_t i2) override
 
void useIndexes (const idx_type *)
 
bool validIdx (std::int64_t) const override
 
- Public Member Functions inherited from OD::Set
virtual ~Set ()
 
bool isEmpty () const
 
void setEmpty ()
 

Private Member Functions

void readFrom (ascistream &)
 
bool save (Repos::Source) const
 
bool writeTo (ascostream &) const
 

Friends

class ::RockPhysicsFormulaMgr
 

Additional Inherited Members

- Static Public Member Functions inherited from OD::Set
static std::int32_t maxIdx32 ()
 
static std::int64_t maxIdx64 ()
 
- Protected Types inherited from ObjectSet< const Formula >
typedef VectorAccess< const Formula *, size_typeimpl_type
 
- Protected Member Functions inherited from ObjectSet< const Formula >
virtual ObjectSetdoAdd (const Formula *)
 
- Protected Attributes inherited from ObjectSet< const Formula >
bool allow0_
 
impl_type vec_
 

Detailed Description

A repository of mathematics formulaes based on Mnemonics.

<>

Member Typedef Documentation

◆ PropType

Constructor & Destructor Documentation

◆ ~FormulaSet()

RockPhysics::FormulaSet::~FormulaSet ( )

Member Function Documentation

◆ getByName() [1/2]

const Formula* RockPhysics::FormulaSet::getByName ( const char *  nm) const
inline

◆ getByName() [2/2]

const Formula* RockPhysics::FormulaSet::getByName ( const Mnemonic ,
const char *   
) const

◆ getIndexOf()

int RockPhysics::FormulaSet::getIndexOf ( const char *  ) const

◆ getMatching()

bool RockPhysics::FormulaSet::getMatching ( Math::Formula ) const

◆ getRelevant() [1/3]

void RockPhysics::FormulaSet::getRelevant ( const Mnemonic ,
BufferStringSet  
) const

◆ getRelevant() [2/3]

bool RockPhysics::FormulaSet::getRelevant ( const Mnemonic ,
ObjectSet< const Math::Formula > &   
) const

◆ getRelevant() [3/3]

void RockPhysics::FormulaSet::getRelevant ( PropType  ,
MnemonicSelection  
) const

◆ hasType()

bool RockPhysics::FormulaSet::hasType ( PropType  ) const

◆ readFrom()

void RockPhysics::FormulaSet::readFrom ( ascistream )
private

◆ save()

bool RockPhysics::FormulaSet::save ( Repos::Source  ) const
private

◆ writeTo()

bool RockPhysics::FormulaSet::writeTo ( ascostream ) const
private

Friends And Related Function Documentation

◆ ::RockPhysicsFormulaMgr

friend class ::RockPhysicsFormulaMgr
friend

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