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

Implementation of Array1D. More...

Inheritance diagram for Array1DImpl< T >:
[legend]

Public Member Functions

 Array1DImpl (const Array1D< T > &)
 
 Array1DImpl (const Array1DImpl< T > &)
 
 Array1DImpl (int sz)
 
const T * arr () const override
 
T * arr () override
 
bool canSetInfo () const override
 
bool canSetStorage () const override
 
ValueSeries< T > * clone () const override
 
void copyFrom (const Array1D< T > &)
 
get (int pos) const override
 
const Array1DInfoinfo () const override
 
bool isOK () const override
 
Array1DImpl< T > & operator= (const Array1D< T > &ai)
 
Array1DImpl< T > & operator= (const Array1DImpl< T > &ai)
 
void set (int pos, T) override
 
bool setInfo (const ArrayNDInfo &) override
 
bool setSize (int)
 
bool setSize (std::int64_t sz) override
 
bool setStorage (ValueSeries< T > *vs) override
 
- Public Member Functions inherited from Array1D< T >
getND (const int *pos) const override
 
operator[] (int idx) const
 
void setAll (T t) override
 
void setND (const int *pos, T v) override
 
void setValue (std::int64_t i, T t) override
 
std::int64_t size () const override
 
value (std::int64_t i) const override
 
bool writable () const override
 
- Public Member Functions inherited from ArrayND< T >
virtual ~ArrayND ()
 
virtual bool canChangeNrDims () const
 
virtual T * get1D (const int *)
 
virtual const T * get1D (const int *) const
 
virtual int get1DDim () const
 
virtual void getAll (T *ptr) const
 
virtual void getAll (ValueSeries< T > &vs) const
 
T * getData ()
 
const T * getData () const
 
int getSize (int dim) const
 
ValueSeries< T > * getStorage ()
 
const ValueSeries< T > * getStorage () const
 
virtual bool isEmpty () const
 
virtual bool isSettable () const
 
int nrDims () const
 
std::uint64_t totalSize () const
 
bool validPos (int *pos) const
 
- Public Member Functions inherited from ValueSeries< T >
virtual ~ValueSeries ()
 
virtual char bytesPerItem () 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 reSizeable () const
 
virtual bool selfSufficient () const
 

Protected Member Functions

const T * getData_ () const override
 
const ValueSeries< T > * getStorage_ () const override
 
std::int64_t getStorageSize () const override
 
- Protected Member Functions inherited from ArrayImplBase< T >
 ArrayImplBase ()
 
 ~ArrayImplBase ()
 
bool getDataFrom (const ArrayND< T > &templ)
 
bool setStorageInternal (ValueSeries< T > *)
 
bool setStorageNoResize (ValueSeries< T > *)
 
bool storageOK () const
 
bool updateStorageSize ()
 

Protected Attributes

Array1DInfoImpl in_
 
- Protected Attributes inherited from ArrayImplBase< T >
T * ptr_ = nullptr
 
ValueSeries< T > * stor_ = nullptr
 

Private Types

typedef ArrayImplBase< T > base
 

Detailed Description

template<class T>
class Array1DImpl< T >

Implementation of Array1D.

<>

Member Typedef Documentation

◆ base

template<class T >
typedef ArrayImplBase<T> Array1DImpl< T >::base
private

Constructor & Destructor Documentation

◆ Array1DImpl() [1/3]

template<class T >
Array1DImpl< T >::Array1DImpl ( int  sz)
inline

◆ Array1DImpl() [2/3]

template<class T >
Array1DImpl< T >::Array1DImpl ( const Array1D< T > &  templ)
inline

◆ Array1DImpl() [3/3]

template<class T >
Array1DImpl< T >::Array1DImpl ( const Array1DImpl< T > &  templ)
inline

Member Function Documentation

◆ arr() [1/2]

template<class T >
const T* Array1DImpl< T >::arr ( ) const
inlineoverridevirtual

Reimplemented from ValueSeries< T >.

◆ arr() [2/2]

template<class T >
T* Array1DImpl< T >::arr ( )
inlineoverridevirtual

Reimplemented from ValueSeries< T >.

◆ canSetInfo()

template<class T >
bool Array1DImpl< T >::canSetInfo ( ) const
inlineoverridevirtual

Reimplemented from ArrayND< T >.

◆ canSetStorage()

template<class T >
bool Array1DImpl< T >::canSetStorage ( ) const
inlineoverridevirtual

Reimplemented from ArrayND< T >.

◆ clone()

template<class T >
ValueSeries<T>* Array1DImpl< T >::clone ( ) const
inlineoverridevirtual

Implements ValueSeries< T >.

◆ copyFrom()

template<class T >
void Array1DImpl< T >::copyFrom ( const Array1D< T > &  templ)
inline

◆ get()

template<class T >
T Array1DImpl< T >::get ( int  pos) const
inlineoverridevirtual

Implements Array1D< T >.

◆ getData_()

template<class T >
const T* Array1DImpl< T >::getData_ ( ) const
inlineoverrideprotectedvirtual

Reimplemented from ArrayND< T >.

◆ getStorage_()

template<class T >
const ValueSeries<T>* Array1DImpl< T >::getStorage_ ( ) const
inlineoverrideprotectedvirtual

Reimplemented from ArrayND< T >.

◆ getStorageSize()

template<class T >
std::int64_t Array1DImpl< T >::getStorageSize ( ) const
inlineoverrideprotectedvirtual

Implements ArrayImplBase< T >.

◆ info()

template<class T >
const Array1DInfo& Array1DImpl< T >::info ( ) const
inlineoverridevirtual

Implements Array1D< T >.

◆ isOK()

template<class T >
bool Array1DImpl< T >::isOK ( ) const
inlineoverridevirtual

Reimplemented from ArrayND< T >.

◆ operator=() [1/2]

template<class T >
Array1DImpl<T>& Array1DImpl< T >::operator= ( const Array1D< T > &  ai)
inline

◆ operator=() [2/2]

template<class T >
Array1DImpl<T>& Array1DImpl< T >::operator= ( const Array1DImpl< T > &  ai)
inline

◆ set()

template<class T >
void Array1DImpl< T >::set ( int  pos,
v 
)
inlineoverridevirtual

Implements Array1D< T >.

◆ setInfo()

template<class T >
bool Array1DImpl< T >::setInfo ( const ArrayNDInfo ni)
inlineoverridevirtual

Reimplemented from ArrayND< T >.

◆ setSize() [1/2]

template<class T >
bool Array1DImpl< T >::setSize ( int  s)
inline

◆ setSize() [2/2]

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

Reimplemented from ValueSeries< T >.

◆ setStorage()

template<class T >
bool Array1DImpl< T >::setStorage ( ValueSeries< T > *  s)
inlineoverridevirtual

becomes mine. The size must be settable, or I return false.

Reimplemented from ArrayND< T >.

Member Data Documentation

◆ in_

template<class T >
Array1DInfoImpl Array1DImpl< T >::in_
protected

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