SnapshotRead class
#include <GGUI/Public/Snapshot.h>
A read lock on a snapshot: it can't change or be reused while this exists.
Constructors, destructors, conversion operators
- SnapshotRead() defaulted
- No snapshot.
- ~SnapshotRead()
- Lets the snapshot go.
- SnapshotRead(SnapshotRead&& other) noexcept
- Takes
other'slock. - SnapshotRead(const SnapshotRead&) deleted
- operator bool() const explicit
- False if nothing has been published.
Public functions
- auto operator=(SnapshotRead&& other) -> SnapshotRead& noexcept
- Lets its own snapshot go and takes
other'slock. - auto operator=(const SnapshotRead&) -> SnapshotRead& deleted
- auto operator->() const -> const GGSnapshot*
- The snapshot.
- auto operator*() const -> const GGSnapshot&
- The snapshot.
- auto Again() const -> SnapshotRead
- A second lock on the same snapshot.