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

Series of values from a SamplingData object. Never writable, only a quick way of providing all values without storing them in an array. More...

Inheritance diagram for SamplingValues< T >:
[legend]

Public Member Functions

 SamplingValues (const SamplingData< T > &, std::int64_t sz)
 
 SamplingValues (const SamplingValues &)
 
 SamplingValues (const StepInterval< T > &)
 
 ~SamplingValues ()
 
char bytesPerItem () const override
 
ValueSeries< T > * clone () const override
 
const SamplingData< T > & getSampling () const
 
bool isOK () const override
 
bool operator!= (const SamplingValues< T > &) const
 
ValueSeries< T > & operator= (const SamplingValues &)
 
bool operator== (const SamplingValues< T > &) const
 
bool reSizeable () const override
 
void setSampling (const SamplingData< T > &, std::int64_t sz=-1)
 
void setSampling (const StepInterval< T > &)
 
bool setSize (std::int64_t) override
 
std::int64_t size () const override
 
value (std::int64_t) const override
 
- Public Member Functions inherited from ValueSeries< T >
virtual ~ValueSeries ()
 
virtual T * arr ()
 
virtual const T * arr () const
 
virtual bool canSetAll () const
 
void getValues (T *, std::int64_t nrvals) const
 
void getValues (ValueSeries< T > &, std::int64_t nrvals) const
 
operator[] (std::int64_t idx) const
 
virtual bool selfSufficient () const
 
virtual void setAll (T)
 
virtual void setValue (std::int64_t, T)
 
virtual bool writable () const
 

Protected Attributes

SamplingData< T > sd_
 
std::int64_t sz_
 

Detailed Description

template<class T>
class SamplingValues< T >

Series of values from a SamplingData object. Never writable, only a quick way of providing all values without storing them in an array.

<>

Constructor & Destructor Documentation

◆ SamplingValues() [1/3]

template<class T >
SamplingValues< T >::SamplingValues ( const SamplingData< T > &  sd,
std::int64_t  sz 
)
inline

◆ SamplingValues() [2/3]

template<class T >
SamplingValues< T >::SamplingValues ( const StepInterval< T > &  rg)
inline

◆ SamplingValues() [3/3]

template<class T >
SamplingValues< T >::SamplingValues ( const SamplingValues< T > &  oth)
inline

◆ ~SamplingValues()

template<class T >
SamplingValues< T >::~SamplingValues
inline

Member Function Documentation

◆ bytesPerItem()

template<class T >
char SamplingValues< T >::bytesPerItem ( ) const
inlineoverridevirtual

Reimplemented from ValueSeries< T >.

◆ clone()

template<class T >
ValueSeries< T > * SamplingValues< T >::clone
inlineoverridevirtual

Implements ValueSeries< T >.

◆ getSampling()

template<class T >
const SamplingData<T>& SamplingValues< T >::getSampling ( ) const
inline

◆ isOK()

template<class T >
bool SamplingValues< T >::isOK
inlineoverridevirtual

Reimplemented from ValueSeries< T >.

◆ operator!=()

template<class T >
bool SamplingValues< T >::operator!= ( const SamplingValues< T > &  oth) const
inline

◆ operator=()

template<class T >
ValueSeries< T > & SamplingValues< T >::operator= ( const SamplingValues< T > &  oth)
inline

◆ operator==()

template<class T >
bool SamplingValues< T >::operator== ( const SamplingValues< T > &  oth) const
inline

◆ reSizeable()

template<class T >
bool SamplingValues< T >::reSizeable ( ) const
inlineoverridevirtual

Reimplemented from ValueSeries< T >.

◆ setSampling() [1/2]

template<class T >
void SamplingValues< T >::setSampling ( const SamplingData< T > &  sd,
std::int64_t  sz = -1 
)
inline

◆ setSampling() [2/2]

template<class T >
void SamplingValues< T >::setSampling ( const StepInterval< T > &  rg)
inline

◆ setSize()

template<class T >
bool SamplingValues< T >::setSize ( std::int64_t  sz)
inlineoverridevirtual

Reimplemented from ValueSeries< T >.

◆ size()

template<class T >
std::int64_t SamplingValues< T >::size ( ) const
inlineoverridevirtual

Implements ValueSeries< T >.

◆ value()

template<class T >
T SamplingValues< T >::value ( std::int64_t  idx) const
inlineoverridevirtual

Implements ValueSeries< T >.

Member Data Documentation

◆ sd_

template<class T >
SamplingData<T> SamplingValues< T >::sd_
protected

◆ sz_

template<class T >
std::int64_t SamplingValues< T >::sz_
protected

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