|
Icarus
Vehicle Simulation as a Transformable Computational Graph, built on Vulcan and Janus
|
Handle to an input signal port. More...
#include <InputHandle.hpp>
Public Member Functions | |
| InputHandle () | |
| T | get () const |
| Get the current value (from wired source or default buffer). | |
| void | set (const T &value) |
| Set the default value (for external injection when unwired). | |
| T | operator* () const |
| Dereference operator (same as get()). | |
| T * | data_ptr () |
| Get pointer to the default value buffer (for registry). | |
| bool | is_wired () const |
| Check if this input has been wired. | |
| const std::string & | name () const |
| Get the port name (local name). | |
| const std::string & | full_name () const |
| Get the full qualified name (entity.component.signal). | |
| const std::string & | wired_to () const |
| Get the wired source signal name (empty if unwired). | |
| const std::string & | units () const |
| Get units. | |
| const std::string & | description () const |
| Get description. | |
Friends | |
| template<typename S> | |
| class | Backplane |
| template<typename S> | |
| class | SignalRegistry |
Handle to an input signal port.
Registered at Provision, wired to a source at Stage. Provides type-safe access to the wired signal value.
Inputs have their own storage buffer that:
| T | The value type (Scalar, Vec3<Scalar>, etc.) |
|
inline |
|
inlinenodiscard |
Get pointer to the default value buffer (for registry).
Used by SignalRegistry to enable poke via sim.set("signal", value)
|
inlinenodiscard |
Get description.
|
inlinenodiscard |
Get the full qualified name (entity.component.signal).
|
inlinenodiscard |
Get the current value (from wired source or default buffer).
Priority:
|
inlinenodiscard |
Check if this input has been wired.
|
inlinenodiscard |
Get the port name (local name).
|
inlinenodiscard |
Dereference operator (same as get()).
|
inline |
Set the default value (for external injection when unwired).
This value is used when the input is not wired. Allows external systems (Hermes, tests) to inject values.
| value | The value to set |
|
inlinenodiscard |
Get units.
|
inlinenodiscard |
Get the wired source signal name (empty if unwired).
|
friend |
|
friend |