gstlearn  1.0.0
CCC
Array Class Reference

#include <Array.hpp>

Inheritance diagram for Array:
AArray AStringable

Public Member Functions

 Array (const VectorInt &ndims=VectorInt())
 
 Array (const Array &m)
 
Arrayoperator= (const Array &m)
 
virtual ~Array ()
 
void init (const VectorInt &ndims)
 
double getValue (const VectorInt &indice) const
 
void setValue (const VectorInt &indice, double value)
 
const VectorDoublegetValues () const
 
void setValues (const VectorDouble &values)
 
- Public Member Functions inherited from AArray
 AArray (const VectorInt &ndims=VectorInt())
 
 AArray (const AArray &m)
 
AArrayoperator= (const AArray &m)
 
virtual ~AArray ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 Interface for AStringable. More...
 
void init (const VectorInt &ndims)
 
int indiceToRank (const VectorInt &indice) const
 
VectorInt rankToIndice (int rank) const
 
void rankToIndice (int rank, VectorInt &indices) const
 
int getNDim () const
 
int getNPixels () const
 
const VectorIntgetNDims () const
 
VectorInt getNDimsExt (int ndimMax) const
 
int getNDims (int idim) const
 
- Public Member Functions inherited from AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (int level) const final
 

Private Member Functions

void _update ()
 

Private Attributes

VectorDouble _values
 

Additional Inherited Members

- Protected Member Functions inherited from AArray
bool _isValidIndice (const VectorInt &indice) const
 

Constructor & Destructor Documentation

◆ Array() [1/2]

Array::Array ( const VectorInt ndims = VectorInt())

◆ Array() [2/2]

Array::Array ( const Array m)

◆ ~Array()

Array::~Array ( )
virtual

Member Function Documentation

◆ _update()

void Array::_update ( )
private

◆ getValue()

double Array::getValue ( const VectorInt indice) const

◆ getValues()

const VectorDouble& Array::getValues ( ) const
inline

◆ init()

void Array::init ( const VectorInt ndims)

◆ operator=()

Array & Array::operator= ( const Array m)

◆ setValue()

void Array::setValue ( const VectorInt indice,
double  value 
)

◆ setValues()

void Array::setValues ( const VectorDouble values)
inline

Member Data Documentation

◆ _values

VectorDouble Array::_values
private

The documentation for this class was generated from the following files: