class Bindgen::Parser::Field

Overview

A C++ struct/class field.

Included Modules

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, builtin? : Bool builtin?, const? : Bool const?, decayed : Type | Nil decayed, equals_except_nil?(other : Type) equals_except_nil?, full_name : String full_name, hash(hasher) hash, kind : Bindgen::Parser::Type::Kind kind, make_pointer_nilable : Type | Nil make_pointer_nilable, mangled_name mangled_name, move? : Bool move?, nilable? : Bool nilable?, pointer : Int32 pointer, pure_void? pure_void?, reference? : Bool reference?, substitute(name : String, with type : Type) : Type
substitute(replacements : Hash(String, Type)) : Type
substitute(replacements : Tuple(String, Type)) : Type
substitute
, template : Template | Nil template, uses_typename?(name : String) uses_typename?, void? : Bool void?

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

new(base_name : String, full_name : String, const : Bool, reference : Bool, pointer : Int32, move : Bool = false, builtin : Bool = false, void : Bool = false, kind : Bindgen::Parser::Type::Kind = Kind::Class, template : Nil | Bindgen::Parser::Template = nil, nilable : Bool = false)
new(pull : 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(pull : JSON::PullParser) #

A C++ struct/class field.


[View source]

Instance Method Detail

def access : AccessSpecifier #

Visibility of the field.


[View source]
def bit_field : Int32 #

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

[View source]
def crystal_name : String #

Suitable name for Crystal code


[View source]
def has_default? : Bool #

[View source]
def name : String #

Name of the field.


[View source]
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 static? : Bool #

[View source]
def value : DefaultValueTypes | Nil #

[View source]