template <ConstraintKind K>

class Constraint

Defined at line 62 of file ../../tools/fidl/fidlc/src/constraints.h

Constraint wraps ConstraintStorage to build higher-level functionality shared by all constraints

but depending on things defined in ConstraintStorage.

Public Methods

void Constraint<K> ()

Defined at line 67 of file ../../tools/fidl/fidlc/src/constraints.h

void Constraint<K> (ValueType value)

Defined at line 68 of file ../../tools/fidl/fidlc/src/constraints.h

bool ResolveConstraint (TypeResolver * resolver, Constant * param, Resource * resource)

Try to resolve this constraint against the Constant param, and if it resolves store the

constant as the raw constraint.

Defined at line 72 of file ../../tools/fidl/fidlc/src/constraints.h

bool HasConstraint ()

Returns true if this has a non-default value.

Defined at line 81 of file ../../tools/fidl/fidlc/src/constraints.h

void PopulateLayoutInvocation (LayoutInvocation * layout_invocation)

Fill a LayoutInvocation object with the value, and optionally raw value of this constraint.

Friends

template <ConstraintKind K>
bool Constraint (Reporter * reporterconst Name & layout_nameconst Constraint<K> & baseconst Constraint<K> & resolvedConstraint<K> * out_merged)