class RbGCCXML::Node

Public Instance Methods

cpp_name() click to toggle source
# File lib/rbplusplus/transformers/node.rb, line 46
def cpp_name
  rbgccxml_name
end
disable_typedef_lookup() click to toggle source

In some cases, the automatic typedef lookup of rb++ can end up doing the wrong thing (for example, it can take a normal class and end up using the typedef for stl::container<>::value_type). Flag a given class as ignoring this typedef lookup if this situation happens.

# File lib/rbplusplus/transformers/node.rb, line 55
def disable_typedef_lookup
  @disable_typedef_lookup = true
end
ignore() click to toggle source

Specify to Rb++ that this node is not to be wrapped

# File lib/rbplusplus/transformers/node.rb, line 5
def ignore
  @ignored = true
end
ignored?() click to toggle source

Has this node been previously declared to not be wrapped?

# File lib/rbplusplus/transformers/node.rb, line 16
def ignored?
  !!@ignored
end
incomplete?() click to toggle source

Is this node an incomplete node? TODO Move to rbgccxml

# File lib/rbplusplus/transformers/node.rb, line 65
def incomplete?
  self["incomplete"] ? self["incomplete"] == "1" : false
end
moved_to() click to toggle source

Where has this node moved to?

# File lib/rbplusplus/transformers/node.rb, line 32
def moved_to
  @moved_to
end
moved_to=(val) click to toggle source

Specifies that this node has been included somewhere else

# File lib/rbplusplus/transformers/node.rb, line 21
def moved_to=(val)
  @moved_to = val
end
renamed?() click to toggle source

Has this node been renamed

# File lib/rbplusplus/transformers/node.rb, line 37
def renamed?
  !!@wrap_as
end
unignore() click to toggle source

Un-ignore this node, useful if there’s a glob ignore and the wrapper just wants a few of the classes

# File lib/rbplusplus/transformers/node.rb, line 11
def unignore
  @ignored = false
end
wrap_as(name) click to toggle source

Change what the name of this node will be when wrapped into Ruby

# File lib/rbplusplus/transformers/node.rb, line 26
def wrap_as(name)
  @wrap_as = name
  self
end