Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

MultiDimMatrixIndex

 

class MultiDimMatrixIndex

 

A class to access multidimensional matrices stored in simple vector containers.

 

 

Constructor Detail


 

MultiDimMatrixIndex(int numAxis)

Sets the number of dimensions with numAxis.

 

Public Member List


 

void SetNumAxis(int numAxis)

Sets the number of dimensions with numAxis.

 


 

void SetAxisDim(int axis, int dim)

Sets the size dim of the dimension axis.

 


 

void SetAxis1D(int dimX)

Sets the size dimX of unidimensional vector.

 


 

void SetAxis2D(int dimX, int dimY)

Sets with dimX and dimY the sizes of a bidimensional vector.

 


 

Upp::Vector<int> &GetAxisDim()

Gets the array of dimensions including the size of each.

 


 

int GetIndex(const Vector<int> &indexconst

Gets the index in the storage of a multidimensional matrix of index included in Vector index..

 


 

template <typename T, typename... Argsint GetIndex(T t, Args... args) const

Gets the index in the storage of a multidimensional matrix of indexes t (t0, t1, ...).

 


 

int GetIndex(int x, int yconst

Gets the index in the storage of a bidimensional matrix of index x and y.

 


 

bool IsValid(int x, int yconst

Gets if the bidimensional matrix index x and y is inside bounds..

 


 

int GetNumAxis() const

Gets the number of dimensions.

 

Last edit by koldo on 05/13/2020. Do you want to contribute?. T++