class Bindgen::Parser::Enum
- Bindgen::Parser::Enum
- Reference
- Object
Overview
Enumeration type as found by the clang tool.
Included Modules
- JSON::Serializable
Defined in:
bindgen/parser/enum.crConstructors
- .new(name : String, values : Hash(String, Int64), type : String = "unsigned int", flags : Bool = false, anonymous : Bool = false)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
true
if this reference is the same as other. - #anonymous? : Bool
- #flags? : Bool
-
#hash(hasher)
See
Object#hash(hasher)
-
#name : String
Name of the enumeration type.
-
#type : String
C++ type name, to be mapped later.
-
#values : Hash(String, Int64)
Enum fields
Constructor Detail
def self.new(name : String, values : Hash(String, Int64), type : String = "unsigned int", flags : Bool = false, anonymous : Bool = false)
#
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.