clang
3.7.0
|
Defines the position of a template parameter within a template parameter list. More...
#include <DeclTemplate.h>
Public Member Functions | |
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 988 of file DeclTemplate.h.
Definition at line 992 of file DeclTemplate.h.
|
inline |
Get the nesting depth of the template parameter.
Definition at line 1003 of file DeclTemplate.h.
References Depth.
Referenced by CheckNonTypeTemplatePartialSpecializationArgs(), DeduceNonTypeTemplateArgument(), DeduceTemplateArgumentsByTypeMatch(), getDepthAndIndex(), isTemplateArgumentTemplateParameter(), MarkUsedTemplateParameters(), SubstDefaultTemplateArgument(), clang::ASTDeclWriter::VisitNonTypeTemplateParmDecl(), clang::ASTNodeImporter::VisitNonTypeTemplateParmDecl(), clang::ASTDeclWriter::VisitTemplateTemplateParmDecl(), and clang::ASTNodeImporter::VisitTemplateTemplateParmDecl().
|
inline |
Get the index of the template parameter within its parameter list.
Definition at line 1011 of file DeclTemplate.h.
References Position.
Referenced by DeduceNonTypeTemplateArgument(), getDepthAndIndex(), isTemplateArgumentTemplateParameter(), and MarkUsedTemplateParameters().
|
inline |
Get the position of the template parameter within its parameter list.
Definition at line 1007 of file DeclTemplate.h.
References Position.
Referenced by clang::ASTDeclWriter::VisitNonTypeTemplateParmDecl(), clang::ASTNodeImporter::VisitNonTypeTemplateParmDecl(), clang::ASTDeclWriter::VisitTemplateTemplateParmDecl(), and clang::ASTNodeImporter::VisitTemplateTemplateParmDecl().
|
inline |
Definition at line 1004 of file DeclTemplate.h.
References Depth.
Referenced by clang::ASTDeclReader::VisitNonTypeTemplateParmDecl(), and clang::ASTDeclReader::VisitTemplateTemplateParmDecl().
|
inline |
Definition at line 1008 of file DeclTemplate.h.
Referenced by clang::ASTDeclReader::VisitNonTypeTemplateParmDecl(), and clang::ASTDeclReader::VisitTemplateTemplateParmDecl().
|
protected |
Definition at line 998 of file DeclTemplate.h.
|
protected |
Definition at line 999 of file DeclTemplate.h.