Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::FlatMatrix< T >::ConstRowsIterator Class Reference

#include <flat_matrix.h>

Public Types

typedef T value_type
 

Public Member Functions

 ConstRowsIterator (const T *ptr, size_t row, size_t row_size)
 Implementation of the templates.
 
absl::Span< const T > operator* () const
 
ConstRowsIteratoroperator++ ()
 
bool operator!= (const ConstRowsIterator &rhs) const
 

Detailed Description

template<typename T>
class operations_research::FlatMatrix< T >::ConstRowsIterator

To iterate over the rows of the FlatMatrix. Example: FlatMatrix<double> matrix(23, 45); for (absl::Span<const double> row : matrix.rows()) { LOG(INFO) << DUMP_VARS(row); }

Definition at line 65 of file flat_matrix.h.

Member Typedef Documentation

◆ value_type

template<typename T >
T operations_research::FlatMatrix< T >::ConstRowsIterator::value_type

Definition at line 67 of file flat_matrix.h.

Constructor & Destructor Documentation

◆ ConstRowsIterator()

template<typename T >
operations_research::FlatMatrix< T >::ConstRowsIterator::ConstRowsIterator ( const T * ptr,
size_t row,
size_t row_size )

Implementation of the templates.

Definition at line 98 of file flat_matrix.h.

Member Function Documentation

◆ operator!=()

template<typename T >
bool operations_research::FlatMatrix< T >::ConstRowsIterator::operator!= ( const ConstRowsIterator & rhs) const

Definition at line 111 of file flat_matrix.h.

◆ operator*()

template<typename T >
absl::Span< const T > operations_research::FlatMatrix< T >::ConstRowsIterator::operator* ( ) const
inline

Definition at line 69 of file flat_matrix.h.

◆ operator++()

template<typename T >
FlatMatrix< T >::ConstRowsIterator & operations_research::FlatMatrix< T >::ConstRowsIterator::operator++ ( )

Definition at line 104 of file flat_matrix.h.


The documentation for this class was generated from the following file: