Skip to content

ludus::foundation::geometry::PreparedPath

Ludus Wiki · API overview · Browse API

Class

Immutable prepared path owner; move-only.
Created only by TryPreparePath. Sampling borrows GetView() and never allocates or mutates the owner. Single owner; external synchronization is required to replace it while readers hold views.

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

#include <ludus/foundation/geometry/path.hpp>
class ludus::foundation::geometry::PreparedPath final

Methods

PreparedPath

ludus::foundation::geometry::PreparedPath::PreparedPath() noexcept=default
Construct an empty owner with no spans.

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

PreparedPath

ludus::foundation::geometry::PreparedPath::PreparedPath(PreparedPath &&other) noexcept=default
Transfer the prepared storage; the source becomes empty.

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

operator=

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

Related types: PreparedPath

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

PreparedPath

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

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

operator=

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

Related types: PreparedPath

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

~PreparedPath

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

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

GetView

PathView ludus::foundation::geometry::PreparedPath::GetView() const noexcept
Borrow the prepared data; the view is invalidated by moving or destroying the owner.

Related types: PathView

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

IsEmpty

bool ludus::foundation::geometry::PreparedPath::IsEmpty() const noexcept
Whether no path has been prepared into this owner.

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