reactor-c
C Runtime for Lingua Franca
|
#include <python_port.h>
Data Fields | |
size_t | element_size |
void(* | destructor )(void *value) |
void *(* | copy_constructor )(void *value) |
lf_token_t * | token |
size_t | length |
bool | is_present |
lf_port_internal_t | _base |
PyObject * | value |
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.
lf_port_internal_t generic_port_instance_struct::_base |
void *(* generic_port_instance_struct::copy_constructor) (void *value) |
void(* generic_port_instance_struct::destructor) (void *value) |
size_t generic_port_instance_struct::element_size |
bool generic_port_instance_struct::is_present |
size_t generic_port_instance_struct::length |
lf_token_t* generic_port_instance_struct::token |
PyObject* generic_port_instance_struct::value |