OpendTect  7.0
Public Member Functions | Protected Attributes | List of all members
PeriodicValue< T, P > Class Template Reference

PeriodicValue handles periodic data through mathematical operations. More...

Public Member Functions

 PeriodicValue (T nv)
 
PeriodicValue< T, P > operator* (const PeriodicValue< T, P > &nv) const
 
PeriodicValue< T, P > operator* (T nv) const
 
const PeriodicValue< T, P > & operator*= (const PeriodicValue< T, P > &nv)
 
const PeriodicValue< T, P > & operator*= (T nv)
 
PeriodicValue< T, P > operator+ (const PeriodicValue< T, P > &nv) const
 
PeriodicValue< T, P > operator+ (T nv) const
 
const PeriodicValue< T, P > & operator+= (const PeriodicValue< T, P > &nv)
 
const PeriodicValue< T, P > & operator+= (T nv)
 
PeriodicValue< T, P > operator- (const PeriodicValue< T, P > &nv) const
 
PeriodicValue< T, P > operator- (T nv) const
 
const PeriodicValue< T, P > & operator-= (const PeriodicValue< T, P > &nv)
 
const PeriodicValue< T, P > & operator-= (T nv)
 
PeriodicValue< T, P > operator/ (const PeriodicValue< T, P > &nv) const
 
PeriodicValue< T, P > operator/ (T nv) const
 
const PeriodicValue< T, P > & operator/= (const PeriodicValue< T, P > &nv)
 
const PeriodicValue< T, P > & operator/= (T nv)
 
bool operator< (const PeriodicValue< T, P > &b) const
 
bool operator< (T b) const
 
const PeriodicValue< T, P > & operator= (const PeriodicValue< T, P > &nv) const
 
const PeriodicValue< T, P > & operator= (T nv) const
 
bool operator> (const PeriodicValue< T, P > &b) const
 
bool operator> (T b) const
 
val (bool positive=true) const
 

Protected Attributes

val_
 

Detailed Description

template<class T, int P>
class PeriodicValue< T, P >

PeriodicValue handles periodic data through mathematical operations.

<>

Constructor & Destructor Documentation

◆ PeriodicValue()

template<class T , int P>
PeriodicValue< T, P >::PeriodicValue ( nv)
inline

Member Function Documentation

◆ operator*() [1/2]

template<class T , int P>
PeriodicValue<T,P> PeriodicValue< T, P >::operator* ( const PeriodicValue< T, P > &  nv) const
inline

◆ operator*() [2/2]

template<class T , int P>
PeriodicValue<T,P> PeriodicValue< T, P >::operator* ( nv) const
inline

◆ operator*=() [1/2]

template<class T , int P>
const PeriodicValue<T,P>& PeriodicValue< T, P >::operator*= ( const PeriodicValue< T, P > &  nv)
inline

◆ operator*=() [2/2]

template<class T , int P>
const PeriodicValue<T,P>& PeriodicValue< T, P >::operator*= ( nv)
inline

◆ operator+() [1/2]

template<class T , int P>
PeriodicValue<T,P> PeriodicValue< T, P >::operator+ ( const PeriodicValue< T, P > &  nv) const
inline

◆ operator+() [2/2]

template<class T , int P>
PeriodicValue<T,P> PeriodicValue< T, P >::operator+ ( nv) const
inline

◆ operator+=() [1/2]

template<class T , int P>
const PeriodicValue<T,P>& PeriodicValue< T, P >::operator+= ( const PeriodicValue< T, P > &  nv)
inline

◆ operator+=() [2/2]

template<class T , int P>
const PeriodicValue<T,P>& PeriodicValue< T, P >::operator+= ( nv)
inline

◆ operator-() [1/2]

template<class T , int P>
PeriodicValue<T,P> PeriodicValue< T, P >::operator- ( const PeriodicValue< T, P > &  nv) const
inline

◆ operator-() [2/2]

template<class T , int P>
PeriodicValue<T,P> PeriodicValue< T, P >::operator- ( nv) const
inline

◆ operator-=() [1/2]

template<class T , int P>
const PeriodicValue<T,P>& PeriodicValue< T, P >::operator-= ( const PeriodicValue< T, P > &  nv)
inline

◆ operator-=() [2/2]

template<class T , int P>
const PeriodicValue<T,P>& PeriodicValue< T, P >::operator-= ( nv)
inline

◆ operator/() [1/2]

template<class T , int P>
PeriodicValue<T,P> PeriodicValue< T, P >::operator/ ( const PeriodicValue< T, P > &  nv) const
inline

◆ operator/() [2/2]

template<class T , int P>
PeriodicValue<T,P> PeriodicValue< T, P >::operator/ ( nv) const
inline

◆ operator/=() [1/2]

template<class T , int P>
const PeriodicValue<T,P>& PeriodicValue< T, P >::operator/= ( const PeriodicValue< T, P > &  nv)
inline

◆ operator/=() [2/2]

template<class T , int P>
const PeriodicValue<T,P>& PeriodicValue< T, P >::operator/= ( nv)
inline

◆ operator<() [1/2]

template<class T , int P>
bool PeriodicValue< T, P >::operator< ( const PeriodicValue< T, P > &  b) const
inline

◆ operator<() [2/2]

template<class T , int P>
bool PeriodicValue< T, P >::operator< ( b) const
inline

◆ operator=() [1/2]

template<class T , int P>
const PeriodicValue<T,P>& PeriodicValue< T, P >::operator= ( const PeriodicValue< T, P > &  nv) const
inline

◆ operator=() [2/2]

template<class T , int P>
const PeriodicValue<T,P>& PeriodicValue< T, P >::operator= ( nv) const
inline

◆ operator>() [1/2]

template<class T , int P>
bool PeriodicValue< T, P >::operator> ( const PeriodicValue< T, P > &  b) const
inline

◆ operator>() [2/2]

template<class T , int P>
bool PeriodicValue< T, P >::operator> ( b) const
inline

◆ val()

template<class T , int P>
T PeriodicValue< T, P >::val ( bool  positive = true) const
inline

Returns the value between 0 and P if positive is true, or between -P/2 and P/2 if positive is false;

Member Data Documentation

◆ val_

template<class T , int P>
T PeriodicValue< T, P >::val_
protected

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