Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
correlation::analysis::BondCutoffMatrix::ConstRowProxy Class Reference

Immutable row proxy providing element access and span conversion. More...

#include <AnalysisTypes.hpp>

Collaboration diagram for correlation::analysis::BondCutoffMatrix::ConstRowProxy:

Public Member Functions

 ConstRowProxy ()=default
 ConstRowProxy (const BondCutoffMatrix &matrix, size_t row) noexcept
const BondCutoffRange & operator[] (size_t col) const noexcept
size_t size () const noexcept
bool empty () const noexcept
void advance (std::ptrdiff_t n) noexcept
 Advances row offset by n rows.
size_t row () const noexcept
const BondCutoffMatrix * matrix () const noexcept
 operator std::span< const BondCutoffRange > () const noexcept
const BondCutoffRange * begin () const noexcept
const BondCutoffRange * end () const noexcept

Private Attributes

const BondCutoffMatrix * matrix_ {nullptr}
size_t row_ {0}

Detailed Description

Immutable row proxy providing element access and span conversion.

Constructor & Destructor Documentation

◆ ConstRowProxy() [1/2]

correlation::analysis::BondCutoffMatrix::ConstRowProxy::ConstRowProxy ( )
default

◆ ConstRowProxy() [2/2]

correlation::analysis::BondCutoffMatrix::ConstRowProxy::ConstRowProxy ( const BondCutoffMatrix & matrix,
size_t row )
inlinenoexcept
Here is the call graph for this function:

Member Function Documentation

◆ advance()

void correlation::analysis::BondCutoffMatrix::ConstRowProxy::advance ( std::ptrdiff_t n)
inlinenoexcept

Advances row offset by n rows.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ begin()

const BondCutoffRange * correlation::analysis::BondCutoffMatrix::ConstRowProxy::begin ( ) const
inlinenodiscardnoexcept

◆ empty()

bool correlation::analysis::BondCutoffMatrix::ConstRowProxy::empty ( ) const
inlinenodiscardnoexcept
Returns
True if row has zero elements.

◆ end()

const BondCutoffRange * correlation::analysis::BondCutoffMatrix::ConstRowProxy::end ( ) const
inlinenodiscardnoexcept

◆ matrix()

const BondCutoffMatrix * correlation::analysis::BondCutoffMatrix::ConstRowProxy::matrix ( ) const
inlinenodiscardnoexcept
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator std::span< const BondCutoffRange >()

correlation::analysis::BondCutoffMatrix::ConstRowProxy::operator std::span< const BondCutoffRange > ( ) const
inlineexplicitnoexcept

◆ operator[]()

const BondCutoffRange & correlation::analysis::BondCutoffMatrix::ConstRowProxy::operator[] ( size_t col) const
inlinenodiscardnoexcept
Returns
Const reference to element at index col.

◆ row()

size_t correlation::analysis::BondCutoffMatrix::ConstRowProxy::row ( ) const
inlinenodiscardnoexcept
Here is the caller graph for this function:

◆ size()

size_t correlation::analysis::BondCutoffMatrix::ConstRowProxy::size ( ) const
inlinenodiscardnoexcept
Returns
Number of elements in this row.

Member Data Documentation

◆ matrix_

const BondCutoffMatrix* correlation::analysis::BondCutoffMatrix::ConstRowProxy::matrix_ {nullptr}
private

◆ row_

size_t correlation::analysis::BondCutoffMatrix::ConstRowProxy::row_ {0}
private

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