class Doxyparser::Friend

A friend member declared inside a C++ {Class}. Can itself refer to an external {Function} or {Class}

Public Instance Methods

is_class?() click to toggle source

@return true if the friend declaration refers to a {Class} false if refers to a {Function}

# File lib/nodes/friend.rb, line 7
def is_class?
  args.nil? || args == ""
end
is_qualified?() click to toggle source

@return true if the name used in the declaration is fully qualified (using the ‘::’ operator) false otherwise

# File lib/nodes/friend.rb, line 12
def is_qualified?
  basename.include? '::'
end

Private Instance Methods

find_name() click to toggle source
# File lib/nodes/friend.rb, line 18
def find_name
  @basename = @node.xpath("name")[0].child.content
  @parent.name + '::' + @basename
end