![]() |
Vulpes
0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
|
#include <crs_map.hpp>
Public Types | |
| using | reference_t |
| Alias for the reference type, depending on mutability. | |
| using | pointer_t |
| Alias for the pointer type, depending on mutability. | |
| using | iterator = pointer_t |
| Iterator type for mutable/non-mutable rows. | |
| using | const_iterator = const pointer_t |
Public Member Functions | |
| iterator | begin () |
| Get the beginning iterator of the row. | |
| iterator | end () |
| Get the ending iterator of the row. | |
| const_iterator | begin () const |
| Get the beginning iterator of the row (const version). | |
| const_iterator | end () const |
| Get the ending iterator of the row (const version). | |
| RowView (pointer_t data, IndexType size) | |
| Constructor to create a view over a row. | |
| const reference_t | operator[] (IndexType index) const |
| Access an element in the row by index. | |
| reference_t | operator[] (IndexType index) |
| Access an element in the row by index. | |
| constexpr IndexType | size () const |
| Get the size of the row. | |
| constexpr pointer_t const | data () const |
| Get the data of the row. | |
Private Attributes | |
| pointer_t const | m_data |
| Pointer to the first element in the row. | |
| internal::StaticSelector< IndexType, RowSize !=IndexType(-1), RowSize > | m_size |
| Size of the row (either dynamic or static depending if RowSize == -1). | |
| Mutable | Boolean flag to indicate whether the row data is mutable. |
This class provides a view over a single row in the CRS map. The row's elements can be accessed via iterators or array-style indexing.
| using vulpes::datastructure::CrsMap< DataType, IndexType, RowSize >::RowView< Mutable >::const_iterator = const pointer_t |
| using vulpes::datastructure::CrsMap< DataType, IndexType, RowSize >::RowView< Mutable >::iterator = pointer_t |
Iterator type for mutable/non-mutable rows.
| using vulpes::datastructure::CrsMap< DataType, IndexType, RowSize >::RowView< Mutable >::pointer_t |
Alias for the pointer type, depending on mutability.
| using vulpes::datastructure::CrsMap< DataType, IndexType, RowSize >::RowView< Mutable >::reference_t |
Alias for the reference type, depending on mutability.
|
inlineexplicit |
Constructor to create a view over a row.
| data | Pointer to the row data. |
| size | Size of the row (only used if RowSize is dynamic). |
|
inline |
Get the beginning iterator of the row.
|
inline |
Get the beginning iterator of the row (const version).
|
inlineconstexpr |
Get the data of the row.
|
inline |
Get the ending iterator of the row.
|
inline |
Get the ending iterator of the row (const version).
|
inline |
Access an element in the row by index.
| index | The index of the element to access. |
|
inline |
Access an element in the row by index.
| index | The index of the element to access. |
|
inlineconstexpr |
Get the size of the row.
|
private |
Pointer to the first element in the row.
|
private |
Size of the row (either dynamic or static depending if RowSize == -1).