raiigraph
C++ RAII for igraph data structures
|
View into a row/column of the matrix. More...
#include <Matrix.hpp>
Classes | |
struct | Iterator |
Random-access iterator through the view. More... | |
Public Member Functions | |
bool | empty () const |
size_type | size () const |
BaseReference | operator[] (size_type i) const |
BaseReference | back () const |
BaseReference | front () const |
Iterator | begin () const |
Iterator | end () const |
Iterator | cbegin () const |
Iterator | cend () const |
std::reverse_iterator< Iterator > | rbegin () const |
std::reverse_iterator< Iterator > | rend () const |
std::reverse_iterator< Iterator > | crbegin () const |
std::reverse_iterator< Iterator > | crend () const |
View into a row/column of the matrix.
BaseIterator | Internal use only. |
BaseReference | Internal use only. |
This provides an STL-like container around a row or column of the matrix for convenient access, modification and iteration. It avoids the need to copy data to/from the matrix and an external vector when interfacing with STL functions. Views should be treated like iterators in that they are potentially invalidated by any re/deallocations in the parent Matrix
.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
i | Index on the view (i.e., the column). |
i
.
|
inline |
|
inline |
|
inline |