Skip to content

ludus::foundation::geometry::PreparedFrames

Ludus Wiki · API overview · Browse API

Class

Immutable frame cache for one path revision; move-only.
Built only by TryBuildFrames. A default owner is empty, and evaluation through its view returns MissingCache. Single owner; synchronize replacement externally.

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/frame.hpp

#include <ludus/foundation/geometry/frame.hpp>
class ludus::foundation::geometry::PreparedFrames final

Methods

PreparedFrames

ludus::foundation::geometry::PreparedFrames::PreparedFrames() noexcept=default
Construct an empty cache; evaluation reports MissingCache.

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/frame.hpp

PreparedFrames

ludus::foundation::geometry::PreparedFrames::PreparedFrames(PreparedFrames &&other) noexcept=default
Transfer the cache; the source becomes empty.

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/frame.hpp

operator=

PreparedFrames & ludus::foundation::geometry::PreparedFrames::operator=(PreparedFrames &&other) noexcept=default
Release this cache and take the other's; the source becomes empty.

Related types: PreparedFrames

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/frame.hpp

PreparedFrames

ludus::foundation::geometry::PreparedFrames::PreparedFrames(const PreparedFrames &)=delete
Copying is disabled: one owner holds the prepared storage.

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/frame.hpp

operator=

PreparedFrames & ludus::foundation::geometry::PreparedFrames::operator=(const PreparedFrames &)=delete
Copy assignment is disabled: one owner holds the prepared storage.

Related types: PreparedFrames

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/frame.hpp

~PreparedFrames

ludus::foundation::geometry::PreparedFrames::~PreparedFrames()=default
Release the prepared storage; views into it become invalid.

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/frame.hpp

GetView

FramesView ludus::foundation::geometry::PreparedFrames::GetView() const noexcept
Borrow the cache; invalidated by moving or destroying the owner.

Related types: FramesView

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/frame.hpp

IsEmpty

bool ludus::foundation::geometry::PreparedFrames::IsEmpty() const noexcept
Whether no frames have been built into this owner.

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/frame.hpp