|
DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
|
Non-owning span (pointer, size) into an ArrayAdjacency row.
More...
#include <AdjacencyRow.hpp>
Public Member Functions | |
| DNDS_DEVICE_CALLABLE | AdjacencyRow ()=default |
| the copy is not trivial! | |
| DNDS_DEVICE_CALLABLE | AdjacencyRow (const AdjacencyRow &)=default |
| DNDS_DEVICE_CALLABLE | ~AdjacencyRow ()=default |
| DNDS_DEVICE_CALLABLE | AdjacencyRow (index_T *ptr, rowsize siz) |
| Construct a span from raw pointer and size. | |
| DNDS_DEVICE_CALLABLE index_T & | operator[] (rowsize j) |
| Bounds-checked (debug) element access. | |
| DNDS_DEVICE_CALLABLE index_T | operator[] (rowsize j) const |
| operator std::vector< index > () const | |
Copy the row into a new std::vector<index>. | |
| void | operator= (const std::vector< index > &r) |
| Overwrite the row from a vector of the same size. | |
| DNDS_DEVICE_CALLABLE void | operator= (const AdjacencyRow &r) |
| Copy contents of another span (same size required). | |
| DNDS_DEVICE_CALLABLE index_T * | begin () |
| DNDS_DEVICE_CALLABLE index_T * | end () |
| DNDS_DEVICE_CALLABLE index_T * | cbegin () const |
| DNDS_DEVICE_CALLABLE index_T * | cend () const |
| DNDS_DEVICE_CALLABLE rowsize | size () const |
Row width in number of index_T elements. | |
Non-owning span (pointer, size) into an ArrayAdjacency row.
Serves as the return value of ArrayAdjacency::operator[]. It is the "typed row handle" equivalent of std::span<index_T> with a few DNDSR-specific conveniences:
std::vector<index>;The span does not own the underlying storage; it must not outlive the backing ArrayAdjacency.
| index_T | Either DNDS::index (mutable) or const DNDS::index. |
Definition at line 25 of file AdjacencyRow.hpp.
|
default |
the copy is not trivial!
|
default |
|
default |
|
inline |
Construct a span from raw pointer and size.
Definition at line 38 of file AdjacencyRow.hpp.
|
inline |
|
inline |
Definition at line 75 of file AdjacencyRow.hpp.
|
inline |
Definition at line 76 of file AdjacencyRow.hpp.
|
inline |
Definition at line 74 of file AdjacencyRow.hpp.
|
inline |
Copy the row into a new std::vector<index>.
Definition at line 54 of file AdjacencyRow.hpp.
|
inline |
Copy contents of another span (same size required).
Definition at line 67 of file AdjacencyRow.hpp.
|
inline |
Overwrite the row from a vector of the same size.
Definition at line 60 of file AdjacencyRow.hpp.
|
inline |
Bounds-checked (debug) element access.
Definition at line 41 of file AdjacencyRow.hpp.
|
inline |
Definition at line 47 of file AdjacencyRow.hpp.
|
inline |
Row width in number of index_T elements.
Definition at line 78 of file AdjacencyRow.hpp.