SpECTRE  v2025.08.19
ah::Storage::LockedPreviousSurface< Fr > Struct Template Reference

Holds a previous surface and a lock that protects it. More...

#include <Storage.hpp>

Public Member Functions

 LockedPreviousSurface (const PreviousSurface< Fr > &rhs)
 
 LockedPreviousSurface (const LockedPreviousSurface &rhs)
 
LockedPreviousSurfaceoperator= (const LockedPreviousSurface &rhs)
 
 LockedPreviousSurface (LockedPreviousSurface &&rhs)
 
LockedPreviousSurfaceoperator= (LockedPreviousSurface &&rhs)
 
void pup (PUP::er &p)
 

Public Attributes

std::optional< PreviousSurface< Fr > > surface
 
Parallel::MultiReaderSpinlock lock
 

Detailed Description

template<typename Fr>
struct ah::Storage::LockedPreviousSurface< Fr >

Holds a previous surface and a lock that protects it.

Details

This is used to store and update a previous surface in the global cache and allow multiple readers (elements) to access it simultaneously.


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