clang  6.0.0svn
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
clang::TemplateParmPosition Class Reference

Defines the position of a template parameter within a template parameter list. More...

#include "clang/AST/DeclTemplate.h"

Inheritance diagram for clang::TemplateParmPosition:
Inheritance graph
[legend]
Collaboration diagram for clang::TemplateParmPosition:
Collaboration graph
[legend]

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
 

Detailed Description

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 1104 of file DeclTemplate.h.

Constructor & Destructor Documentation

◆ TemplateParmPosition()

clang::TemplateParmPosition::TemplateParmPosition ( unsigned  D,
unsigned  P 
)
inlineprotected

Definition at line 1108 of file DeclTemplate.h.

Member Function Documentation

◆ getDepth()

unsigned clang::TemplateParmPosition::getDepth ( ) const
inline

◆ getIndex()

unsigned clang::TemplateParmPosition::getIndex ( ) const
inline

Get the index of the template parameter within its parameter list.

Definition at line 1127 of file DeclTemplate.h.

Referenced by DeduceNonTypeTemplateArgument(), and isTemplateArgumentTemplateParameter().

◆ getPosition()

unsigned clang::TemplateParmPosition::getPosition ( ) const
inline

Get the position of the template parameter within its parameter list.

Definition at line 1123 of file DeclTemplate.h.

Referenced by clang::ASTDeclWriter::VisitNonTypeTemplateParmDecl(), and clang::ASTDeclWriter::VisitTemplateTemplateParmDecl().

◆ setDepth()

void clang::TemplateParmPosition::setDepth ( unsigned  D)
inline

◆ setPosition()

void clang::TemplateParmPosition::setPosition ( unsigned  P)
inline

Member Data Documentation

◆ Depth

unsigned clang::TemplateParmPosition::Depth
protected

Definition at line 1114 of file DeclTemplate.h.

◆ Position

unsigned clang::TemplateParmPosition::Position
protected

Definition at line 1115 of file DeclTemplate.h.


The documentation for this class was generated from the following file: