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

#include <python_port.h>

Data Fields

size_t element_size
 
void(* destructor )(void *value)
 
void *(* copy_constructor )(void *value)
 
lf_token_ttoken
 
size_t length
 
bool is_present
 
lf_port_internal_t _base
 
PyObject * value
 

Detailed Description

The struct used to instantiate a port in Lingua Franca. This is used in the PythonGenerator instead of redefining a struct for each port. This can be used for any Python object, including lists and tuples. PyObject* value is the value of the port with the generic Python type. NOTE: The structure here must follow exactly that of lf_port_base_t, which includes as its first element a token_template_t, which includes as its first element a token_type_t.

Field Documentation

◆ _base

lf_port_internal_t generic_port_instance_struct::_base

◆ copy_constructor

void *(* generic_port_instance_struct::copy_constructor) (void *value)

◆ destructor

void(* generic_port_instance_struct::destructor) (void *value)

◆ element_size

size_t generic_port_instance_struct::element_size

◆ is_present

bool generic_port_instance_struct::is_present

◆ length

size_t generic_port_instance_struct::length

◆ token

lf_token_t* generic_port_instance_struct::token

◆ value

PyObject* generic_port_instance_struct::value

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