Bindgen::Graph::Struct
Inherits Bindgen::Graph::Container < Bindgen::Graph::Node < Reference < Object
A struct in Crystal (lib or not), or a plain struct in C++.
A structure can host both raw non-static variable fields (C-style) and other methods at once.
Constants
COPY_BASE_CONSTRUCTOR_TAG = "COPY_BASE_CONSTRUCTOR_TAG"
Used to signal the Generator::Cpp to generate a constructor copying
an instance of the base class, which isn't inherited by the above.
INHERIT_CONSTRUCTORS_TAG = "INHERIT_CONSTRUCTORS_TAG"
Used to signal the Generator::Cpp to generate a using BASE::BASE;.
Constructors
Instance methods
base_class
Name of the base-class, if any. This is mainly useful for C++ to generate the jump-table.
Name of the base-class, if any. This is mainly useful for C++ to generate the jump-table.
field_defaults
Default member initializers of fields, by name, as C++ expressions:
nullptr. Only Generator::Cpp writes them.