ssm
0.0.2
Runtime Library for the Sparse Synchronous Model
|
The struct template of a heap-allocated ADT object. More...
#include <ssm.h>
Data Fields | |
struct ssm_mm | mm |
Variant-flavored memory management header. More... | |
ssm_value_t | fields [1] |
Array of ADT object fields. More... | |
The struct template of a heap-allocated ADT object.
This ADT struct is meant to be used as a template for performing other ADT-related pointer arithmetic; no instance of this should ever be declared.
Though this struct's fields is only declared with 1 ssm_value_t, actual heap-allocated ADT objects may have more fields. For instance, an object with 3 fields might look like:
Note that the memory layout of all ADTs is the same save for the length of the fields, so we use this struct definition as the "base case" of ADT object lengths.
ssm_value_t fields[1] |