Skip to content

ludus::geometry::content::GeometryLoad

Ludus Wiki · API overview · Browse API

Class

Immutable loaded geometry owner. Move-only; holds exactly one prepared owner.

Declared in modules/geometry/content/include/ludus/geometry/content/geometry_content.h

#include <ludus/geometry/content/geometry_content.h>
class ludus::geometry::content::GeometryLoad final

Fields

Kind

fg::GeometryKindTag ludus::geometry::content::GeometryLoad::Kind = fg::GeometryKindTag::Path
Which prepared owner below is valid.

Declared in modules/geometry/content/include/ludus/geometry/content/geometry_content.h

Path

geom::PreparedPath ludus::geometry::content::GeometryLoad::Path
Valid iff Kind == Path.

Declared in modules/geometry/content/include/ludus/geometry/content/geometry_content.h

Track

geom::PreparedTrack ludus::geometry::content::GeometryLoad::Track
Valid iff Kind == Track.

Declared in modules/geometry/content/include/ludus/geometry/content/geometry_content.h

Surface

geom::PreparedSurface ludus::geometry::content::GeometryLoad::Surface
Valid iff Kind == Surface.

Declared in modules/geometry/content/include/ludus/geometry/content/geometry_content.h

Key

GeometryCacheKey ludus::geometry::content::GeometryLoad::Key {}
Cache key recovered from the blob header.

Related types: GeometryCacheKey

Declared in modules/geometry/content/include/ludus/geometry/content/geometry_content.h

Methods

GeometryLoad

ludus::geometry::content::GeometryLoad::GeometryLoad() noexcept=default
Construct an empty load with no prepared owner.

Declared in modules/geometry/content/include/ludus/geometry/content/geometry_content.h

GeometryLoad

ludus::geometry::content::GeometryLoad::GeometryLoad(GeometryLoad &&) noexcept=default
Transfer the prepared owner and cache key; the source becomes empty.

Declared in modules/geometry/content/include/ludus/geometry/content/geometry_content.h

operator=

GeometryLoad & ludus::geometry::content::GeometryLoad::operator=(GeometryLoad &&) noexcept=default
Release this load's prepared owner and take the other's; the source becomes empty.

Related types: GeometryLoad

Declared in modules/geometry/content/include/ludus/geometry/content/geometry_content.h

GeometryLoad

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

Declared in modules/geometry/content/include/ludus/geometry/content/geometry_content.h

operator=

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

Related types: GeometryLoad

Declared in modules/geometry/content/include/ludus/geometry/content/geometry_content.h

~GeometryLoad

ludus::geometry::content::GeometryLoad::~GeometryLoad()=default
Release the prepared owner; borrowed views into it become invalid.

Declared in modules/geometry/content/include/ludus/geometry/content/geometry_content.h