class Bindgen::Parser::Enum

Overview

Enumeration type as found by the clang tool.

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", isFlags : Bool = false) #

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

Instance Method Detail

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

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


def flags? : Bool #

Tries to figure out if this enumeration is actually a bit-mask flag.


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

See Object#hash(hasher)


def isFlags : Bool #

def isFlags=(_isFlags : Bool) #

def name : String #

def name=(_name : String) #

def to_json(json : JSON::Builder) #

def type : String #

def type=(_type : String) #

def values : Hash(String, Int64) #

def values=(_values : Hash(String, Int64)) #