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

Subclass of Array1D and ArrayNDSliceBase. More...

Inheritance diagram for Array1DSlice< T >:
[legend]

Public Member Functions

 Array1DSlice (ArrayND< T > &)
 
 Array1DSlice (const ArrayND< T > &)
 
 ~Array1DSlice ()
 
ValueSeries< T > * clone () const override
 
get (int) const override
 
const Array1DInfoinfo () const override
 
bool isSettable () const override
 
void set (int, T) 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 bool canSetInfo () const
 
virtual bool canSetStorage () 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 isOK () const
 
int nrDims () const
 
virtual bool setInfo (const ArrayNDInfo &)
 
virtual bool setStorage (ValueSeries< T > *s)
 
std::uint64_t totalSize () const
 
bool validPos (int *pos) const
 
- Public Member Functions inherited from ValueSeries< T >
virtual ~ValueSeries ()
 
virtual T * arr ()
 
virtual const T * arr () const
 
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
 
virtual bool isOK () const
 
operator[] (std::int64_t idx) const
 
virtual bool reSizeable () const
 
virtual bool selfSufficient () const
 
virtual bool setSize (std::int64_t)
 
- Public Member Functions inherited from ArrayNDSliceBase
virtual ~ArrayNDSliceBase ()
 
int getDimSize (int dim) const
 
int getPos (int dim) const
 
bool init ()
 
void setDimMap (int localdim, int remotedim)
 
bool setPos (int dim, int pos)
 

Protected Member Functions

const ValueSeries< T > * getStorage_ () const override
 
- Protected Member Functions inherited from ArrayND< T >
virtual const T * getData_ () const
 
- Protected Member Functions inherited from ArrayNDSliceBase
 ArrayNDSliceBase (ArrayNDInfo *, const ArrayNDInfo &)
 
void getSourcePos (const int *localpos, int *sourcepos) const
 

Protected Attributes

ArrayND< T > & source_
 
OffsetValueSeries< T > * storage_ = nullptr
 
bool writable_
 
- Protected Attributes inherited from ArrayNDSliceBase
ArrayNDInfoinfo_
 
std::int64_t offset_
 
TypeSet< int > position_
 
const ArrayNDInfosourceinfo_
 
TypeSet< int > vardim_
 

Detailed Description

template<class T>
class Array1DSlice< T >

Subclass of Array1D and ArrayNDSliceBase.

<>

Constructor & Destructor Documentation

◆ Array1DSlice() [1/2]

template<class T >
Array1DSlice< T >::Array1DSlice ( ArrayND< T > &  source)
inline

◆ Array1DSlice() [2/2]

template<class T >
Array1DSlice< T >::Array1DSlice ( const ArrayND< T > &  source)
inline

◆ ~Array1DSlice()

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

Member Function Documentation

◆ clone()

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

Implements ValueSeries< T >.

◆ get()

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

Implements Array1D< T >.

◆ getStorage_()

template<class T >
const ValueSeries< T > * Array1DSlice< T >::getStorage_
inlineoverrideprotectedvirtual

Reimplemented from ArrayND< T >.

◆ info()

template<class T >
const Array1DInfo & Array1DSlice< T >::info
inlineoverridevirtual

Implements Array1D< T >.

◆ isSettable()

template<class T >
bool Array1DSlice< T >::isSettable
inlineoverridevirtual

Reimplemented from ArrayND< T >.

◆ set()

template<class T >
void Array1DSlice< T >::set ( int  pos,
val 
)
inlineoverridevirtual

Implements Array1D< T >.

Member Data Documentation

◆ source_

template<class T >
ArrayND<T>& Array1DSlice< T >::source_
protected

◆ storage_

template<class T >
OffsetValueSeries<T>* Array1DSlice< T >::storage_ = nullptr
mutableprotected

◆ writable_

template<class T >
bool Array1DSlice< T >::writable_
protected

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