class

Bindgen::Parser::Field

Inherits JSON::Serializable < Bindgen::Parser::Type < JSON::Serializable < Reference < Object

A C++ struct/class field.

Constructors

new(pull : JSON::PullParser)

A C++ struct/class field.

Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

access

Visibility of the field.

Source
bit_field

The size of this field, if it is a bitfield.

Source
bit_field?

The size of this field, if it is a bitfield.

Source
bit_offset

Offset of this non-static field in its class, in bits.

Source
bit_size

Size of the type of this non-static field, in bits. For a bit-field, this is the size of its declared type.

Source
crystal_name

Suitable name for Crystal code

Source
doc

Documentation comment from the C++ source, without comment markers.

Source
has_default?

Does this field have a default value?

Source
name

Name of the field.

Source
private?(*args, **options)
Source
private?(*args, **options, &)
Source
protected?(*args, **options)
Source
protected?(*args, **options, &)
Source
public?(*args, **options)
Source
public?(*args, **options, &)
Source
static?

Is this field a static data member?

Source
value

Default value for this field, if an initializer literal is found.

Source