Sha256: d499560da2ab262dc3dcea68b885faa6545a9bb8974ea311a4760d4b066cd0e2

Contents?: true

Size: 342 Bytes

Versions: 6

Compression:

Stored size: 342 Bytes

Contents

module RbGCCXML

  # References a <ReferenceType> node, which is a reference to another Type.
  class ReferenceType < Type

    def ==(val)
      check_sub_type_without(val, /\&/)
    end

    def to_cpp(qualified = true)
      type = NodeCache.find(attributes["type"])
      "#{type.to_cpp(qualified)}&"
    end
    once :to_cpp

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rbgccxml-1.1.0 lib/rbgccxml/nodes/types/reference_type.rb
rbgccxml-1.0.4 lib/rbgccxml/nodes/types/reference_type.rb
rbgccxml-1.0.3 lib/rbgccxml/nodes/types/reference_type.rb
rbgccxml-1.0.2 lib/rbgccxml/nodes/types/reference_type.rb
rbgccxml-1.0.1 lib/rbgccxml/nodes/types/reference_type.rb
rbgccxml-1.0 lib/rbgccxml/nodes/types/reference_type.rb