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

Mutable row proxy providing element access, span conversion, and compatibility resize. More...

#include <AnalysisTypes.hpp>

Collaboration diagram for correlation::analysis::BondCutoffMatrix::RowProxy:

Public Member Functions

 RowProxy ()=default
 RowProxy (BondCutoffMatrix &matrix, size_t row) noexcept
BondCutoffRange & operator[] (size_t col) const noexcept
size_t size () const noexcept
bool empty () const noexcept
void resize (size_t new_cols)
 Compatibility resize ensuring matrix column count matches new_cols.
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< BondCutoffRange > () const noexcept
 operator std::span< const BondCutoffRange > () const noexcept
BondCutoffRange * begin () const noexcept
BondCutoffRange * end () const noexcept

Private Attributes

BondCutoffMatrix * matrix_ {nullptr}
size_t row_ {0}

Detailed Description

Mutable row proxy providing element access, span conversion, and compatibility resize.

Constructor & Destructor Documentation

◆ RowProxy() [1/2]

correlation::analysis::BondCutoffMatrix::RowProxy::RowProxy ( )
default

◆ RowProxy() [2/2]

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

Member Function Documentation

◆ advance()

void correlation::analysis::BondCutoffMatrix::RowProxy::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()

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

◆ empty()

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

◆ end()

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

◆ matrix()

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

◆ operator std::span< BondCutoffRange >()

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

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

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

◆ operator[]()

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

◆ resize()

void correlation::analysis::BondCutoffMatrix::RowProxy::resize ( size_t new_cols)
inline

Compatibility resize ensuring matrix column count matches new_cols.

◆ row()

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

◆ size()

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

Member Data Documentation

◆ matrix_

BondCutoffMatrix* correlation::analysis::BondCutoffMatrix::RowProxy::matrix_ {nullptr}
private

◆ row_

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

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