class

Bindgen::Parser::Enum

Inherits JSON::Serializable < Reference < Object

Enumeration type as found by the clang tool.

Constructors

new(name : String, values : Hash(String, Int64), type : String = "unsigned int", flags : Bool = false, anonymous : Bool = false, doc : Nil | String = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

==(other : self)

Returns true if this reference is the same as other. Invokes same?.

anonymous?

Is this enumeration anonymous?

Source
doc

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

Source
flags?

Is this enumeration a flag type?

Source
hash(hasher)

See Object#hash(hasher)

name

Name of the enumeration type.

Source
type

C++ type name, to be mapped later.

Source
values

Enum fields

Source

Nested types