class Registery::TypeNode

Defined in:

gl_generator/registery/type_node.cr

Constant Summary

IGNORED_APIS = ["gles1", "gles2", "glsc2"] of ::String
IGNORED_NAMES = ["stddef", "khrplatform", "inttypes"] of ::String
NAMEMAP = {GLhandleARB: "Void*", GLsync: "Void*", GLDEBUGPROC: "Void*", GLDEBUGPROCARB: "Void*", GLDEBUGPROCKHR: "Void*", GLDEBUGPROCAMD: "Void*", "struct _cl_context": "Void*", "struct _cl_event": "Void*"}

For when the typemap does not hold up

TYPEMAP = {char: "UInt8", "signed char": "Int8", "unsigned char": "UInt8", short: "Int16", "signed short": "Int16", "unsigned short": "UInt16", int: "Int32", "signed int": "Int32", "unsigned int": "UInt32", int64_t: "Int64", uint64_t: "UInt64", float: "Float32", double: "Float64", ptrdiff_t: "Int32", void: "Void", "void *": "Void*", "void *const*": "Void*"}

Instance Method Summary

Instance methods inherited from class Registery::BaseNode

<<(child_node) <<, build build, children : Array(Registery::BaseNode) children, children=(children : Array(Registery::BaseNode)) children=, find_child_by_name(name : String, class_filter : BaseNode.class | Nil = nil) find_child_by_name, ignore? ignore?, name : String name, name=(name : String) name=, parent : BaseNode | Nil parent, parent=(parent : BaseNode | Nil) parent=, parse parse, push(*children : BaseNode) push, root root, root? root?, to_s : String to_s, xml_node : XML::Node | Nil xml_node, xml_node=(xml_node : XML::Node | Nil) xml_node=

Constructor methods inherited from class Registery::BaseNode

new(xml_node : Nil | XML::Node = nil) new

Instance Method Detail

def build #

[View source]
def c_typedef : String #

[View source]
def c_typedef=(c_typedef : String) #

[View source]
def ignore? #

[View source]
def internal_name : String #

[View source]
def internal_name=(internal_name : String) #

[View source]
def parse #

[View source]
def parse_c_typedef #

[View source]
def parse_internal_name #

[View source]
def parse_name #

Get the definition name from the name attr or name node


[View source]