clang API Documentation
#include <DeclTemplate.h>


Public Member Functions | |
| unsigned | getDepth () const |
| Get the nesting depth of the template parameter. | |
| void | setDepth (unsigned D) |
| unsigned | getPosition () const |
| Get the position of the template parameter within its parameter list. | |
| void | setPosition (unsigned P) |
| unsigned | getIndex () const |
| Get the index of the template parameter within its parameter list. | |
Protected Member Functions | |
| TemplateParmPosition () | |
| TemplateParmPosition (unsigned D, unsigned P) | |
Protected Attributes | |
| unsigned | Depth |
| unsigned | Position |
The TemplateParmPosition class 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 842 of file DeclTemplate.h.
| clang::TemplateParmPosition::TemplateParmPosition | ( | ) | [inline, protected] |
Definition at line 845 of file DeclTemplate.h.
| clang::TemplateParmPosition::TemplateParmPosition | ( | unsigned | D, |
| unsigned | P | ||
| ) | [inline, protected] |
Definition at line 849 of file DeclTemplate.h.
| unsigned clang::TemplateParmPosition::getDepth | ( | ) | const [inline] |
Get the nesting depth of the template parameter.
Definition at line 860 of file DeclTemplate.h.
References Depth.
Referenced by DeduceNonTypeTemplateArgument(), DeduceTemplateArgumentsByTypeMatch(), getDepthAndIndex(), MarkUsedTemplateParameters(), clang::ASTDeclWriter::VisitNonTypeTemplateParmDecl(), clang::ASTNodeImporter::VisitNonTypeTemplateParmDecl(), clang::TemplateDeclInstantiator::VisitNonTypeTemplateParmDecl(), clang::ASTDeclWriter::VisitTemplateTemplateParmDecl(), clang::ASTNodeImporter::VisitTemplateTemplateParmDecl(), and clang::TemplateDeclInstantiator::VisitTemplateTemplateParmDecl().
| unsigned clang::TemplateParmPosition::getIndex | ( | ) | const [inline] |
Get the index of the template parameter within its parameter list.
Definition at line 868 of file DeclTemplate.h.
References Position.
Referenced by DeduceNonTypeTemplateArgument(), getDepthAndIndex(), and MarkUsedTemplateParameters().
| unsigned clang::TemplateParmPosition::getPosition | ( | ) | const [inline] |
Get the position of the template parameter within its parameter list.
Definition at line 864 of file DeclTemplate.h.
References Position.
Referenced by clang::ASTDeclWriter::VisitNonTypeTemplateParmDecl(), clang::ASTNodeImporter::VisitNonTypeTemplateParmDecl(), clang::TemplateDeclInstantiator::VisitNonTypeTemplateParmDecl(), clang::ASTDeclWriter::VisitTemplateTemplateParmDecl(), clang::ASTNodeImporter::VisitTemplateTemplateParmDecl(), and clang::TemplateDeclInstantiator::VisitTemplateTemplateParmDecl().
| void clang::TemplateParmPosition::setDepth | ( | unsigned | D | ) | [inline] |
Definition at line 861 of file DeclTemplate.h.
References Depth.
Referenced by clang::ASTDeclReader::VisitNonTypeTemplateParmDecl(), and clang::ASTDeclReader::VisitTemplateTemplateParmDecl().
| void clang::TemplateParmPosition::setPosition | ( | unsigned | P | ) | [inline] |
Definition at line 865 of file DeclTemplate.h.
References Position.
Referenced by clang::ASTDeclReader::VisitNonTypeTemplateParmDecl(), and clang::ASTDeclReader::VisitTemplateTemplateParmDecl().
unsigned clang::TemplateParmPosition::Depth [protected] |
Definition at line 855 of file DeclTemplate.h.
Referenced by getDepth(), and setDepth().
unsigned clang::TemplateParmPosition::Position [protected] |
Definition at line 856 of file DeclTemplate.h.
Referenced by getIndex(), getPosition(), and setPosition().