Class managing the row access for the inheritating matrix. More...
Public Member Functions | |
Matrix_row_access () | |
Default constructor. | |
Matrix_row_access (unsigned int numberOfRows) | |
Constructor reserving space for the given number of rows. More... | |
Matrix_row_access (const Matrix_row_access &toCopy) | |
Copy constructor. More... | |
Matrix_row_access (Matrix_row_access &&other) noexcept | |
Move constructor. More... | |
~Matrix_row_access () | |
Destructor. | |
Row_type & | get_row (id_index rowIndex) |
Returns the row at the given row index. The type of the row depends on the choosen options, see PersistenceMatrixOptions::has_intrusive_rows. More... | |
const Row_type & | get_row (id_index rowIndex) const |
Returns the row at the given row index. The type of the row depends on the choosen options, see PersistenceMatrixOptions::has_intrusive_rows. More... | |
void | erase_empty_row (id_index rowIndex) |
Only available if PersistenceMatrixOptions::has_removable_rows is true. Removes the given row from the row container if the row exists and is empty. More... | |
Matrix_row_access & | operator= (const Matrix_row_access &other) |
Assign operator. | |
Friends | |
void | swap (Matrix_row_access &matrix1, Matrix_row_access &matrix2) |
Swap operator. | |
Class managing the row access for the inheritating matrix.
Row_type | Either boost::intrusive::list<Cell_type,...> if PersistenceMatrixOptions::has_intrusive_rows is true, or std::set<Cell_type, RowCellComp> otherwise. |
Row_container_type | Either std::map<index,Row_type> if PersistenceMatrixOptions::has_removable_rows is true, or std::vector<Row_type> otherwise. |
has_removable_rows | Value of PersistenceMatrixOptions::has_removable_rows. |
id_index | IDIdx index type. |
|
inline |
Constructor reserving space for the given number of rows.
Has only an effect if PersistenceMatrixOptions::has_removable_rows is false.
numberOfRows | Number of rows to reserve space for. |
|
inline |
Copy constructor.
toCopy | Matrix to copy. |
|
inlinenoexcept |
Move constructor.
other | Matrix to move. |
|
inline |
Only available if PersistenceMatrixOptions::has_removable_rows is true. Removes the given row from the row container if the row exists and is empty.
rowIndex | Row index of the row to remove. |
|
inline |
Returns the row at the given row index. The type of the row depends on the choosen options, see PersistenceMatrixOptions::has_intrusive_rows.
rowIndex | Row index of the row to return: IDIdx for chain matrices or updated IDIdx for boundary matrices if swaps occured. |
|
inline |
Returns the row at the given row index. The type of the row depends on the choosen options, see PersistenceMatrixOptions::has_intrusive_rows.
rowIndex | Row index of the row to return: IDIdx for chain matrices or updated IDIdx for boundary matrices if swaps occured. |