class FunctionType

Defined at line 20 of file ../../src/developer/debug/zxdb/symbols/function_type.h

This class represents types for functions. This corresponds to a dwarf "subroutine type" entry

which has no direct analog in C/C++.

When referenced by a "pointer" ModifiedType class, the combination becomes a pointer to a

function. When referenced by a MemberPtr class, the combination becomes a pointer to a member

function.

Public Methods

std::string ComputeFullNameForFunctionPtr (const std::string & container)

Computes the name of this function when it's a member function pointer of the given type. For

example, if container is "Foo", this might return

"void (Foo::*)(int)"

If |container| is empty, this will compute the name assuming it's not a member pointer.

Defined at line 25 of file ../../src/developer/debug/zxdb/symbols/function_type.cc

const LazySymbol & return_type ()

The return value type. This should be some kind of Type object. Will be empty for void return

types.

Defined at line 26 of file ../../src/developer/debug/zxdb/symbols/function_type.h

const std::vector<LazySymbol> & parameters ()

Parameters passed to the function. These should be Variable objects.

Defined at line 29 of file ../../src/developer/debug/zxdb/symbols/function_type.h

Protected Methods

const FunctionType * AsFunctionType ()

Symbol protected overrides.

Defined at line 23 of file ../../src/developer/debug/zxdb/symbols/function_type.cc

std::string ComputeFullName ()

Defined at line 43 of file ../../src/developer/debug/zxdb/symbols/function_type.cc

Friends

class MakeRefCountedHelper
class RefCountedThreadSafe