MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Memory::SnapshotCell< T >::Guard Class Reference

Keeps one snapshot alive and unchanged while it exists. More...

#include <SnapshotCell.hpp>

Collaboration diagram for MayaFlux::Memory::SnapshotCell< T >::Guard:

Public Member Functions

const T * get () const noexcept
 The snapshot, or null when the cell was empty.
 Guard () noexcept=default
 Guard (const Guard &)=delete
 Guard (Guard &&other) noexcept
 operator bool () const noexcept
const T & operator* () const noexcept
const T * operator-> () const noexcept
Guard & operator= (const Guard &)=delete
Guard & operator= (Guard &&other) noexcept
 ~Guard ()

Private Member Functions

 Guard (const SnapshotCell *cell, const T *value) noexcept
void release () noexcept

Private Attributes

const SnapshotCell * m_cell { nullptr }
const T * m_value { nullptr }

Friends

class SnapshotCell

Detailed Description

template<typename T>
class MayaFlux::Memory::SnapshotCell< T >::Guard

Keeps one snapshot alive and unchanged while it exists.

Empty when the cell held nothing at read(). Movable, not copyable.

Definition at line 46 of file SnapshotCell.hpp.


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