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

Type information for tokens. Specifically, this struct contains the fields needed to support token types, which carry dynamically allocated data. More...

#include <lf_token.h>

Data Fields

size_t element_size
 
void(* destructor )(void *value)
 
void *(* copy_constructor )(void *value)
 

Detailed Description

Type information for tokens. Specifically, this struct contains the fields needed to support token types, which carry dynamically allocated data.

Field Documentation

◆ copy_constructor

void *(* token_type_t::copy_constructor) (void *value)

The copy constructor or NULL to use memcpy.

◆ destructor

void(* token_type_t::destructor) (void *value)

The destructor or NULL to use the default free().

◆ element_size

size_t token_type_t::element_size

Size of the struct or array element.


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