24 #ifndef TRITRIZINDICES_H 25 #define TRITRIZINDICES_H 27 #include "utility/matrices/IndicesMatrix.h" 36 typedef IndicesMatrix::reference reference;
37 typedef IndicesMatrix::const_reference const_reference;
41 {
return (*
this)[capa-1]; }
42 inline const IndicesMatrix &get_capa(
const size_t &capa)
const 43 {
return (*
this)[capa-1]; }
45 Indices3dArray(
const size_t &capas= 1,
const size_t &n_rows= 1,
const size_t &n_cols= 1);
46 inline size_t getNumberOfLayers(
void)
const 47 {
return this->size(); }
52 inline const IndicesMatrix &operator()(
const size_t &capa)
const 53 {
return get_capa(capa); }
55 {
return get_capa(capa); }
56 inline const VIndices &operator()(
const size_t &i,
const size_t &j,
const size_t &k)
const 57 {
return get_capa(i)(j,k); }
58 inline VIndices &operator()(
const size_t &i,
const size_t &j,
const size_t &k)
59 {
return get_capa(i)(j,k); }
void Offset(const VIndices &)
Agrega a todos los elementos el valor que is being passed as parameter.
Definition: Indices3dArray.cc:70
size_t getNumberOfColumns(void) const
Return the number of columns of the array.
Definition: Indices3dArray.cc:51
Clase base para las «tritrices» de posiciones.
Definition: Indices3dArray.h:32
size_t getNumberOfRows(void) const
Return the number of rows of the array.
Definition: Indices3dArray.cc:42
size_t NumIndices(void) const
Return the number of elements of the array.
Definition: Indices3dArray.cc:29
Matrix of indices.
Definition: IndicesMatrix.h:39