Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::svg::components::ContextualLengthRecipe Struct Reference

Ordered animation stack retained until the referencing instance's length context is known. More...

#include "donner/svg/components/animation/ContextualLengthRecipe.h"

Static Public Member Functions

static std::shared_ptr< const ContextualLengthRecipe > Create (std::vector< ContextualLengthSample > &&samples)
 Validate owned operands and derive immutable storage/work costs; reject excessive input.

Public Attributes

const std::vector< ContextualLengthSample > samples
 Lower to higher sandwich layers.
const std::size_t sourceBytes
 Aggregate owned declaration bytes.
const std::size_t retainedBytes
 Conservative admitted storage.
const std::size_t evaluationWork
 Cost charged before consumer evaluation.
const std::size_t nestingDepth
 Maximum frozen-boundary recipe depth.

Detailed Description

Ordered animation stack retained until the referencing instance's length context is known.

Member Function Documentation

◆ Create()

std::shared_ptr< const ContextualLengthRecipe > donner::svg::components::ContextualLengthRecipe::Create ( std::vector< ContextualLengthSample > && samples)
static

Validate owned operands and derive immutable storage/work costs; reject excessive input.

Parameters
samplesOwned sample stack, consumed only after its shape has been checked.
Returns
Immutable admitted recipe, or nullptr when its source/storage envelope is exceeded.

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