SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
Loading...
Searching...
No Matches
serif::model::normalization::detail::ConfigurationTracking Struct Referencefinal

Rebuilding the input context does not change the identity of an immutable configuration. More...

#include <computations.hpp>

Inheritance diagram for serif::model::normalization::detail::ConfigurationTracking:
[legend]
Collaboration diagram for serif::model::normalization::detail::ConfigurationTracking:
[legend]

Public Member Functions

template<typename Options>
const void * identity (const std::shared_ptr< const Options > &options) const
 Track the owned configuration rather than a copied shared pointer wrapper.
 
- Public Member Functions inherited from serif::utils::dependencies::ValueSnapshot
template<typename T>
requires std::copy_constructible<T> && std::equality_comparable<T>
T capture (const T &value) const
 Keep the accepted value independent of subsequent edits to a borrowed source.
 
template<typename T>
requires std::equality_comparable<T>
bool matches (const T &captured, const T &value) const
 Compare content rather than a hash that could silently miss a change.
 

Detailed Description

Rebuilding the input context does not change the identity of an immutable configuration.

Member Function Documentation

◆ identity()

template<typename Options>
const void * serif::model::normalization::detail::ConfigurationTracking::identity ( const std::shared_ptr< const Options > & options) const
inlinenodiscard

Track the owned configuration rather than a copied shared pointer wrapper.


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