SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
Loading...
Searching...
No Matches
serif::utils::dependencies::ValueSnapshot Struct Reference

Default tracking owns an exact value copy; noncopyable resources supply another policy. More...

#include <snapshot.hpp>

Inheritance diagram for serif::utils::dependencies::ValueSnapshot:
[legend]

Public Member Functions

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

Default tracking owns an exact value copy; noncopyable resources supply another policy.

Member Function Documentation

◆ capture()

template<typename T>
requires std::copy_constructible<T> && std::equality_comparable<T>
T serif::utils::dependencies::ValueSnapshot::capture ( const T & value) const
inlinenodiscard

Keep the accepted value independent of subsequent edits to a borrowed source.

◆ matches()

template<typename T>
requires std::equality_comparable<T>
bool serif::utils::dependencies::ValueSnapshot::matches ( const T & captured,
const T & value ) const
inlinenodiscard

Compare content rather than a hash that could silently miss a change.


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