clang API Documentation

Public Member Functions | Protected Member Functions | Protected Attributes
clang::TemplateParmPosition Class Reference

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

#include <DeclTemplate.h>

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

List of all members.

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


Constructor & Destructor Documentation

clang::TemplateParmPosition::TemplateParmPosition ( unsigned  D,
unsigned  P 
) [inline, protected]

Definition at line 909 of file DeclTemplate.h.


Member Function Documentation

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

Definition at line 928 of file DeclTemplate.h.

References Position.

Referenced by DeduceNonTypeTemplateArgument(), getDepthAndIndex(), isTemplateArgumentTemplateParameter(), and MarkUsedTemplateParameters().


Member Data Documentation

Definition at line 915 of file DeclTemplate.h.

Referenced by getDepth(), and setDepth().

Definition at line 916 of file DeclTemplate.h.

Referenced by getIndex(), getPosition(), and setPosition().


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