![]() |
reactor-c 1.0
C Runtime for Lingua Franca
|
Base type for actions. More...
#include <lf_types.h>
Data Fields | |
| bool | has_value |
| Flag indicating whether the action has a value. | |
| bool | is_present |
| Flag indicating whether the action has a value at the current logical time. | |
| self_base_t * | parent |
| Pointer to the parent reactor's self struct. | |
| int | source_id |
| Source identifier for federated network input actions. | |
| token_template_t | tmplt |
| Type and token information template. | |
| trigger_t * | trigger |
| Pointer to the trigger associated with this action. | |
Base type for actions.
Action structs are customized types because their payloads are type specific. This struct represents their common features. Given any pointer to an action struct, it can be cast to lf_action_base_t, to token_template_t, or to token_type_t to access these common fields.
| bool lf_action_base_t::has_value |
Flag indicating whether the action has a value.
True if the action has a value, false otherwise. This is distinct from is_present as it indicates value availability rather than temporal presence.
| bool lf_action_base_t::is_present |
Flag indicating whether the action has a value at the current logical time.
True if the action is present at the current logical time, false otherwise.
| self_base_t* lf_action_base_t::parent |
Pointer to the parent reactor's self struct.
Provides access to the reactor instance that owns this action.
| int lf_action_base_t::source_id |
Source identifier for federated network input actions.
Used to identify the source of network input actions in federated execution. Only meaningful for federated network input actions.
| token_template_t lf_action_base_t::tmplt |
Type and token information template.
Contains type information and token handling details for the action. Note: 'template' is a C++ keyword, hence the abbreviated name. This field must match the layout of token_template_t for proper casting.
| trigger_t* lf_action_base_t::trigger |
Pointer to the trigger associated with this action.
This field must match the layout of lf_action_internal_t for proper casting.