class
Bindgen::Parser::BaseClass
- Bindgen::Parser::BaseClass
- Reference
- Object
Overview
Describes a class which is derived from another Bindgen::Class.
Included Modules
- JSON::Serializable
Defined in:
bindgen/parser/base_class.crConstructors
- .new(pull : JSON::PullParser)
- .new(name : String, access : Bindgen::Parser::AccessSpecifier = AccessSpecifier::Public, virtual : Bool = false, inherited_constructor : Bool = false, offset : Int32 = 0)
Instance Method Summary
-
#access : Bindgen::Parser::AccessSpecifier
Visibility of the base class.
-
#inherited_constructor? : Bool
Does the
Bindgen::Classderive its constructors from this class? -
#name : String
Fully qualified name of the base class.
-
#offset : Int32
Offset of the base in the derived class.
- #private?(*args, **options)
- #private?(*args, **options, &)
- #protected?(*args, **options)
- #protected?(*args, **options, &)
- #public?(*args, **options)
- #public?(*args, **options, &)
-
#virtual? : Bool
Is this inheritance virtual?
Constructor Detail
def self.new(name : String, access : Bindgen::Parser::AccessSpecifier = AccessSpecifier::Public, virtual : Bool = false, inherited_constructor : Bool = false, offset : Int32 = 0)
#
Instance Method Detail
def inherited_constructor? : Bool
#
Does the Bindgen::Class derive its constructors from this class?
def offset : Int32
#
Offset of the base in the derived class. A pointer to the derived
class can only be used as pointer to the base if it's 0.