Tool to iterate over a matrix. More...
#include <core/alien/data/utils/ExtractionIndices.h>
Public Member Functions | |
| ExtractionIndices (const Arccore::Integer rowStart, const Arccore::Integer rowRange, const Arccore::Integer colStart=-1, const Arccore::Integer colRange=-1) | |
| Constructor. | |
| ~ExtractionIndices () | |
| Free resources. | |
| ExtractionIndices (const ExtractionIndices &)=delete | |
| ExtractionIndices (ExtractionIndices &&)=delete | |
| ExtractionIndices & | operator= (const ExtractionIndices &)=delete |
| ExtractionIndices & | operator= (ExtractionIndices &&)=delete |
| Arccore::Integer | rowStart () const |
| Get the index of the starting row. | |
| Arccore::Integer | rowRange () const |
| Get the length of the row. | |
| Arccore::Integer | colStart () const |
| Get the index of the starting col. | |
| Arccore::Integer | colRange () const |
| Get the length of the col. | |
| Arccore::Integer | toLocalRow (const Arccore::Integer uid) const |
| Get the local index of a row given a global index. | |
| Arccore::Integer | toLocalCol (const Arccore::Integer uid) const |
| Get the local index of a col given a global index. | |
Tool to iterate over a matrix.
Definition at line 41 of file ExtractionIndices.h.
| Alien::ExtractionIndices::ExtractionIndices | ( | const Arccore::Integer | rowStart, |
| const Arccore::Integer | rowRange, | ||
| const Arccore::Integer | colStart = -1, | ||
| const Arccore::Integer | colRange = -1 ) |
Constructor.
| [in] | rowStart | The index of the starting row |
| [in] | rowRange | The length of the row |
| [in] | colStart | The index of the starting col |
| [in] | colRange | The length of the col |
References colRange(), colStart(), ExtractionIndices(), rowRange(), rowStart(), toLocalCol(), and toLocalRow().
Referenced by ExtractionIndices().
| Alien::ExtractionIndices::~ExtractionIndices | ( | ) |
Free resources.
Definition at line 48 of file ExtractionIndices.cc.
References ~ExtractionIndices().
Referenced by ~ExtractionIndices().
| Integer Alien::ExtractionIndices::colRange | ( | ) | const |
Get the length of the col.
Definition at line 81 of file ExtractionIndices.cc.
References colRange().
Referenced by colRange(), and ExtractionIndices().
| Integer Alien::ExtractionIndices::colStart | ( | ) | const |
Get the index of the starting col.
Definition at line 72 of file ExtractionIndices.cc.
References colStart().
Referenced by colStart(), and ExtractionIndices().
| Integer Alien::ExtractionIndices::rowRange | ( | ) | const |
Get the length of the row.
Definition at line 63 of file ExtractionIndices.cc.
References rowRange().
Referenced by ExtractionIndices(), and rowRange().
| Integer Alien::ExtractionIndices::rowStart | ( | ) | const |
Get the index of the starting row.
Definition at line 54 of file ExtractionIndices.cc.
References rowStart().
Referenced by ExtractionIndices(), and rowStart().
| Integer Alien::ExtractionIndices::toLocalCol | ( | const Arccore::Integer | uid | ) | const |
Get the local index of a col given a global index.
| [in] | uid | The global index of a col |
Definition at line 99 of file ExtractionIndices.cc.
References toLocalCol().
Referenced by ExtractionIndices(), and toLocalCol().
| Integer Alien::ExtractionIndices::toLocalRow | ( | const Arccore::Integer | uid | ) | const |
Get the local index of a row given a global index.
| [in] | uid | The global index of a row |
Definition at line 90 of file ExtractionIndices.cc.
References toLocalRow().
Referenced by ExtractionIndices(), and toLocalRow().