class Bindgen::Parser::Field

Overview

A C++ struct/class field.

Defined in:

bindgen/parser/field.cr

Constructors

Instance Method Summary

Instance methods inherited from class Bindgen::Parser::Type

==(other : self) ==, base_name : String base_name, baseName : String baseName, baseName=(_baseName : String) baseName=, builtin? : Bool builtin?, const? : Bool const?, decayed : Type | Nil decayed, equals_except_nil?(other : Type) equals_except_nil?, full_name : String full_name, fullName : String fullName, fullName=(_fullName : String) fullName=, hash(hasher) hash, isBuiltin : Bool isBuiltin, isBuiltin=(_isBuiltin : Bool) isBuiltin=, isConst : Bool isConst, isConst=(_isConst : Bool) isConst=, isMove : Bool isMove, isMove=(_isMove : Bool) isMove=, isReference : Bool isReference, isReference=(_isReference : Bool) isReference=, isVoid : Bool isVoid, isVoid=(_isVoid : Bool) isVoid=, kind : Kind kind, kind=(_kind : Kind) kind=, mangled_name mangled_name, move? : Bool move?, nilable : Bool nilable, nilable=(_nilable : Bool) nilable=, nilable? : Bool nilable?, pointer : Int32 pointer, pointer=(_pointer : Int32) pointer=, pure_void? pure_void?, reference? : Bool reference?, template : Template | Nil template, template=(_template : Template | Nil) template=, to_json(json : JSON::Builder) to_json, void? : Bool void?

Constructor methods inherited from class Bindgen::Parser::Type

new(baseName : String, fullName : String, isConst : Bool, isReference : Bool, pointer : Int32, isMove : Bool = false, isBuiltin : Bool = false, isVoid : Bool = false, kind : Bindgen::Parser::Type::Kind = Kind::Class, template : Template | Nil = nil, nilable : Bool = false)
new(__temp_44 : JSON::PullParser)
new

Class methods inherited from class Bindgen::Parser::Type

builtin_type(cpp_name : String, pointer = 0, reference = false) builtin_type, parse(type_name : String, pointer_depth = 0) parse, proc(return_type : Type, arguments : Enumerable(Type)) proc

Constructor Detail

def self.new(__temp_169 : JSON::PullParser) #

Instance Method Detail

def access : AccessSpecifier #

def access=(_access : AccessSpecifier) #

def baseName : String #

def baseName=(_baseName : String) #

def bit_field : Int32 #

Returns the bit-size of this bitfield.


[View source]
def bit_field? : Int32 | Nil #

Returns the size of this bitfield, if it is a bitfield.


[View source]
def bitField : Union(Int32, Nil) #

def bitField=(_bitField : Union(Int32, Nil)) #

def crystal_name : String #

Suitable name for Crystal code


[View source]
def fullName : String #

def fullName=(_fullName : String) #

def isBuiltin : Bool #

def isBuiltin=(_isBuiltin : Bool) #

def isConst : Bool #

def isConst=(_isConst : Bool) #

def isMove : Bool #

def isMove=(_isMove : Bool) #

def isReference : Bool #

def isReference=(_isReference : Bool) #

def isVoid : Bool #

def isVoid=(_isVoid : Bool) #

def kind : Kind #

def kind=(_kind : Kind) #

def name : String #

def name=(_name : String) #

def nilable : Bool #

def nilable=(_nilable : Bool) #

def pointer : Int32 #

def pointer=(_pointer : Int32) #

def private?(*args, **options) #

[View source]
def private?(*args, **options, &) #

[View source]
def protected?(*args, **options) #

[View source]
def protected?(*args, **options, &) #

[View source]
def public?(*args, **options) #

[View source]
def public?(*args, **options, &) #

[View source]
def template : Template | Nil #

def template=(_template : Template | Nil) #

def to_json(json : JSON::Builder) #