HomeReferenceDomain.h ⇀ Continuation

Continuation class

This class manages ownership of a continuation. A continuation is a link between two domains (including from a domain to itself).

Continuations are created with MakeContinuation.

Synopsis

template
<
    typename D,
    typename D2
>
class Continuation
{
    // Type aliases
    using SourceDomainT = D;
    using TargetDomainT = D2;

    // Constructor
    Continuation();
    Continuation(Continuation&& other); // Move

    // Assignment
    Continuation& operator=(Continuation&& other); // Move

    // Tests if this instance is linked to a node
    bool IsValid() const;

    // Sets weight override for linked node
    void SetWeightHint(WeightHint hint);
};

Template parameters

D The domain this continuation belongs to. Aliased as member type SourceDomainT.
D2 Signal value type. Aliased as member type TargetDomainT.