Sha256: c0bad28622cdede5c42352e39f66e98acea53714dd2708dffdea095d29270b3f

Contents?: true

Size: 368 Bytes

Versions: 6

Compression:

Stored size: 368 Bytes

Contents

module RbGCCXML

  # Represents a <PointerType>, a node designating a pointer type to another Type.
  class PointerType < Type

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

    # See Node#to_cpp
    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/pointer_type.rb
rbgccxml-1.0.4 lib/rbgccxml/nodes/types/pointer_type.rb
rbgccxml-1.0.3 lib/rbgccxml/nodes/types/pointer_type.rb
rbgccxml-1.0.2 lib/rbgccxml/nodes/types/pointer_type.rb
rbgccxml-1.0.1 lib/rbgccxml/nodes/types/pointer_type.rb
rbgccxml-1.0 lib/rbgccxml/nodes/types/pointer_type.rb