mrdocs::dom::Function

Value‐semantic wrapper over a callable exposed to the DOM layer.

Synopsis

Declared in <mrdocs/Dom/Function.hpp>

class Function;

Member Functions

Name

Description

Function [constructor]

Constructors

~Function [destructor]

Destructor.

operator=

Assignment.

call

Invoke the function.

impl

Return the implementation used by this object.

operator()

Invoke the function.

swap

Swap two objects.

try_invoke

Invoke the function.

type_key

Return the type key.

Friends

Name

Description

mrdocs::dom::newFunction

Return a diagnostic string.

mrdocs::dom::swap

Swap two objects.

Non-Member Functions

Name

Description

makeInvocable

Create a Function from a fixed‐arity invocable.

makeVariadicInvocable

Create a Function that receives the argument Array directly.

::mrdocs::lua::makeCallable

Wrap a registry‐anchored Lua function as a dom::Function.

Created with MrDocs