clang
7.0.0
|
Defines the position of a template parameter within a template parameter list. More...
#include "clang/AST/DeclTemplate.h"
Public Member Functions | |
TemplateParmPosition ()=delete | |
unsigned | getDepth () const |
Get the nesting depth of the template parameter. More... | |
void | setDepth (unsigned D) |
unsigned | getPosition () const |
Get the position of the template parameter within its parameter list. More... | |
void | setPosition (unsigned P) |
unsigned | getIndex () const |
Get the index of the template parameter within its parameter list. More... | |
Protected Member Functions | |
TemplateParmPosition (unsigned D, unsigned P) | |
Protected Attributes | |
unsigned | Depth |
unsigned | Position |
Defines the position of a template parameter within a template parameter list.
Because template parameter can be listed sequentially for out-of-line template members, each template parameter is given a Depth - the nesting of template parameter scopes - and a Position - the occurrence within the parameter list. This class is inheritedly privately by different kinds of template parameters and is not part of the Decl hierarchy. Just a facility.
Definition at line 1124 of file DeclTemplate.h.
|
inlineprotected |
Definition at line 1131 of file DeclTemplate.h.
|
delete |
|
inline |
Get the nesting depth of the template parameter.
Definition at line 1137 of file DeclTemplate.h.
References Depth.
Referenced by clang::Sema::CheckTemplateArgument(), DeduceNonTypeTemplateArgument(), SubstDefaultTemplateArgument(), clang::ASTDeclWriter::VisitNonTypeTemplateParmDecl(), and clang::ASTDeclWriter::VisitTemplateTemplateParmDecl().
|
inline |
Get the index of the template parameter within its parameter list.
Definition at line 1145 of file DeclTemplate.h.
Referenced by DeduceNonTypeTemplateArgument().
|
inline |
Get the position of the template parameter within its parameter list.
Definition at line 1141 of file DeclTemplate.h.
Referenced by clang::ASTDeclWriter::VisitNonTypeTemplateParmDecl(), and clang::ASTDeclWriter::VisitTemplateTemplateParmDecl().
|
inline |
Definition at line 1138 of file DeclTemplate.h.
Referenced by clang::ASTDeclReader::VisitNonTypeTemplateParmDecl(), and clang::ASTDeclReader::VisitTemplateTemplateParmDecl().
|
inline |
Definition at line 1142 of file DeclTemplate.h.
References P.
Referenced by clang::ASTDeclReader::VisitNonTypeTemplateParmDecl(), and clang::ASTDeclReader::VisitTemplateTemplateParmDecl().
|
protected |
Definition at line 1128 of file DeclTemplate.h.
|
protected |
Definition at line 1129 of file DeclTemplate.h.