reactor-c 1.0
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
lf_action_base_t Struct Reference

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_tparent
 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_ttrigger
 Pointer to the trigger associated with this action.

Detailed Description

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.

Field Documentation

◆ has_value

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.

◆ is_present

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.

◆ parent

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.

◆ source_id

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.

◆ tmplt

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

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.

See also
trigger_t for details about the trigger structure.

The documentation for this struct was generated from the following file:
  • /Users/runner/work/reactor-c/reactor-c/include/core/lf_types.h