class Input
Update scheduling policy for Op arguments.
index
members
-
input:__call()
– alias for unwrap.
static functions
-
Input.cold(value)
– Create a cold Input. -
Input.hot(value)
– Create a hot Input.
input interface
-
Input(stream)
– create a new Input. -
input:setup(prev)
– copy state from old instance (optional). -
input:dirty()
– whether this input requires processing (optional). -
input:finish_setup()
– leave setup state (optional). -
input:unwrap()
– unwrap to Lua value (optional). -
input:type()
– return the type name of this Input (optional). -
input:metatype()
– return the metatype name of this Input (optional). -
input.stream
– the current value
details
members
-
– alias for unwrap.
static functions
-
– Create a cold Input.
Never marked dirty. Use this for input streams that are only read when another Input is dirty.
parameters:
-
– Create a hot Input.
Behaviour depends on what kind of Stream
value
is:- ValueStream: Marked dirty only if old and new ValueStream differ.
- EventStream and IOStream: Marked dirty only if the current EventStream is dirty.
This is the most common Input strategy.
parameters:
input interface
-
– create a new Input.
parameters:
-
– copy state from old instance (optional).
called by Op:setup with another Input instance or
nil
once this instance is registered. Must prepare this instance for dirty.May enter a ‘setup state’ that is exited using finish_setup.
parameters:
- previous Input intance or nil
- – whether this input requires processing (optional).
- – leave setup state (optional).
-
– unwrap to Lua value (optional).
returns:
- (any): the raw Lua value
-
– return the type name of this Input (optional).
-
– return the metatype name of this Input (optional).
-
– the current value