class Bindgen::Parser::Enum

Overview

Enumeration type as found by the clang tool.

Included Modules

Defined in:

bindgen/parser/enum.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, values : Hash(String, Int64), type : String = "unsigned int", flags : Bool = false, anonymous : Bool = false) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

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


def anonymous? : Bool #

[View source]
def flags? : Bool #

[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def name : String #

Name of the enumeration type.


[View source]
def type : String #

C++ type name, to be mapped later.


[View source]
def values : Hash(String, Int64) #

Enum fields


[View source]