class Bindgen::Parser::Enum
- Bindgen::Parser::Enum
- Reference
- Object
Overview
Enumeration type as found by the clang tool.
Defined in:
bindgen/parser/enum.crConstructors
- .new(name : String, values : Hash(String, Int64), type : String = "unsigned int", isFlags : Bool = false)
- .new(__temp_158 : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
true
if this reference is the same as other. -
#flags? : Bool
Tries to figure out if this enumeration is actually a bit-mask flag.
-
#hash(hasher)
See
Object#hash(hasher)
- #isFlags : Bool
- #isFlags=(_isFlags : Bool)
- #name : String
- #name=(_name : String)
- #to_json(json : JSON::Builder)
- #type : String
- #type=(_type : String)
- #values : Hash(String, Int64)
- #values=(_values : Hash(String, Int64))
Constructor Detail
def self.new(name : String, values : Hash(String, Int64), type : String = "unsigned int", isFlags : 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?
.