Vulpes  0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
Loading...
Searching...
No Matches
vulpes::datastructure::IndexTracker< IndexType >::Reference Class Reference

Proxy reference type for element access with automatic index tracking update. More...

#include <index_tracker.hpp>

Collaboration diagram for vulpes::datastructure::IndexTracker< IndexType >::Reference:
[legend]

Public Member Functions

 Reference (IndexTracker &tracker, IndexType idx)
 operator IndexType () const
 Implicit conversion to IndexType for reading value.
Reference & operator= (IndexType new_v)
 Assignment from new value triggers internal update logic.
Reference & operator= (const Reference &other)
 Assignment from another Reference.

Private Attributes

IndexTracker & m_tracker
IndexType m_idx

Detailed Description

template<typename IndexType>
class vulpes::datastructure::IndexTracker< IndexType >::Reference

Proxy reference type for element access with automatic index tracking update.

Constructor & Destructor Documentation

◆ Reference()

template<typename IndexType>
vulpes::datastructure::IndexTracker< IndexType >::Reference::Reference ( IndexTracker & tracker,
IndexType idx )

Member Function Documentation

◆ operator IndexType()

template<typename IndexType>
vulpes::datastructure::IndexTracker< IndexType >::Reference::operator IndexType ( ) const

Implicit conversion to IndexType for reading value.

◆ operator=() [1/2]

template<typename IndexType>
IndexTracker< IndexType >::Reference & vulpes::datastructure::IndexTracker< IndexType >::Reference::operator= ( const Reference & other)

Assignment from another Reference.

◆ operator=() [2/2]

template<typename IndexType>
IndexTracker< IndexType >::Reference & vulpes::datastructure::IndexTracker< IndexType >::Reference::operator= ( IndexType new_v)

Assignment from new value triggers internal update logic.

Member Data Documentation

◆ m_idx

template<typename IndexType>
IndexType vulpes::datastructure::IndexTracker< IndexType >::Reference::m_idx
private

◆ m_tracker

template<typename IndexType>
IndexTracker& vulpes::datastructure::IndexTracker< IndexType >::Reference::m_tracker
private

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