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

Base type for ports (lf_port_base_t) and actions (trigger_t), which can carry tokens. The structs lf_port_base_t and trigger_t should start with an instance of this struct so that they can be cast to this struct to access these fields in a uniform way. More...

#include <lf_token.h>

Data Fields

token_type_t type
 
lf_token_ttoken
 
size_t length
 

Detailed Description

Base type for ports (lf_port_base_t) and actions (trigger_t), which can carry tokens. The structs lf_port_base_t and trigger_t should start with an instance of this struct so that they can be cast to this struct to access these fields in a uniform way.

Field Documentation

◆ length

size_t token_template_t::length

◆ token

lf_token_t* token_template_t::token

◆ type

token_type_t token_template_t::type

Instances of this struct can be cast to token_type_t.


The documentation for this struct was generated from the following file: