class TemplateParameter

Defined at line 16 of file ../../src/developer/debug/zxdb/symbols/template_parameter.h

DWARF annotates template definitions with a sequence of template parameter definitions so the

debugger can figure out the types of each template. These are encoded in the same order as the

template definition in the source code.

Public Methods

const std::string & GetAssignedName ()

Symbol public overrides:

Defined at line 16 of file ../../src/developer/debug/zxdb/symbols/template_parameter.cc

const LazySymbol & type ()

The type of this template parameter.

Defined at line 23 of file ../../src/developer/debug/zxdb/symbols/template_parameter.h

bool is_value ()

The template parameters can either be types or values. We don't currently have a need for the

actual values so just encode that it was a value. The actual values could be added in the

future. In this example:

template

<typename

T, int i>

The first parameter will be !is_value() with a name "T" and a type() of whatever it was

instantiated with. And the second will be is_value() with a name "i", a type() "int", and

a value of whatever the value was.

Defined at line 34 of file ../../src/developer/debug/zxdb/symbols/template_parameter.h

const ConstValue & const_value ()

Defined at line 35 of file ../../src/developer/debug/zxdb/symbols/template_parameter.h

void set_const_value (ConstValue value)

Defined at line 36 of file ../../src/developer/debug/zxdb/symbols/template_parameter.h

Protected Methods

const TemplateParameter * AsTemplateParameter ()

Symbol protected overrides:

Defined at line 43 of file ../../src/developer/debug/zxdb/symbols/template_parameter.h

Friends

class MakeRefCountedHelper
class RefCountedThreadSafe