#include <snapshot.hpp>
|
| | ProjectedSnapshot (FunctionT function) |
| | Own the policy callable so its configuration travels with the source.
|
| |
template<typename T>
requires std::invocable<const FunctionT&, const T&> |
| auto | capture (const T &value) const |
| | Capture a comparable value such as a resource revision or a tuple of revisions.
|
| |
template<typename CapturedT, typename T>
requires requires(const CapturedT& captured, const ProjectedSnapshot& policy, const T& value) { { captured == policy.capture(value) } -> std::convertible_to<bool>; } |
| bool | matches (const CapturedT &captured, const T &value) const |
| | Recompute the tracking value without copying the resource itself.
|
| |
◆ ProjectedSnapshot()
template<typename FunctionT>
Own the policy callable so its configuration travels with the source.
◆ capture()
template<typename FunctionT>
template<typename T>
requires std::invocable<const FunctionT&, const T&>
Capture a comparable value such as a resource revision or a tuple of revisions.
◆ matches()
template<typename FunctionT>
template<typename CapturedT, typename T>
requires requires(const CapturedT& captured, const
ProjectedSnapshot& policy, const T& value) { { captured == policy.capture(value) } -> std::convertible_to<bool>; }
Recompute the tracking value without copying the resource itself.
◆ m_function
template<typename FunctionT>
The documentation for this class was generated from the following file: