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

Refcounted Formula snapshot. More...

#include <mathformula.h>

Inheritance diagram for Math::SharedFormula:
[legend]

Public Member Functions

 SharedFormula (const Formula &)
 
Formula & form ()
 
const Formula & form () const
 
- Public Member Functions inherited from RefCount::Referenced
void addObserver (WeakPtrBase *obs)
 Not for normal use. May become private.
 
int nrRefs () const
 Only for expert use.
 
void ref () const
 
bool refIfReffed () const
 Don't use in production, for debugging.
 
void removeObserver (WeakPtrBase *obs)
 Not for normal use. May become private.
 
bool tryRef () const
 Not for normal use. May become private.
 
void unRef () const
 
void unRefNoDelete () const
 

Protected Member Functions

 ~SharedFormula ()
 
- Protected Member Functions inherited from RefCount::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
virtual ~Referenced ()
 
Referenced & operator= (const Referenced &)
 

Private Attributes

Formula form_
 

Additional Inherited Members

- Static Public Member Functions inherited from RefCount::Referenced
static bool isSane (const Referenced *)
 

Detailed Description

Refcounted Formula snapshot.

Many objects can share one SharedFormula to avoid cloning the formula while remaining safe if the originating Formula destroyed.

Constructor & Destructor Documentation

◆ SharedFormula()

Math::SharedFormula::SharedFormula ( const Formula & )

◆ ~SharedFormula()

Math::SharedFormula::~SharedFormula ( )
protected

Member Function Documentation

◆ form() [1/2]

Formula & Math::SharedFormula::form ( )

◆ form() [2/2]

const Formula & Math::SharedFormula::form ( ) const

Member Data Documentation

◆ form_

Formula Math::SharedFormula::form_
private

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