class RbGCCXML::CvQualifiedType

Represents a <CvQualifiedType> node. This node keeps track of the const nature of a Node.

Public Instance Methods

==(val) click to toggle source
# File lib/rbgccxml/nodes/types/cv_qualified_type.rb, line 7
def ==(val)
  check_sub_type_without(val, %rconst/)
end
to_cpp(qualified = true) click to toggle source

See RbGCCXML::Node#to_cpp

# File lib/rbgccxml/nodes/types/cv_qualified_type.rb, line 12
def to_cpp(qualified = true)
  type = NodeCache.find(attributes["type"])

  post_const = container ? " const" : ""
  pre_const = container ? "" : "const "

  "#{pre_const}#{type.to_cpp(qualified)}#{post_const}"
end