clang API Documentation

Public Member Functions
clang::MemberSpecializationInfo Class Reference

Provides information a specialization of a member of a class template, which may be a member function, static data member, member class or member enumeration. More...

#include <DeclTemplate.h>

List of all members.

Public Member Functions

 MemberSpecializationInfo (NamedDecl *IF, TemplateSpecializationKind TSK, SourceLocation POI=SourceLocation())
NamedDeclgetInstantiatedFrom () const
 Retrieve the member declaration from which this member was instantiated.
TemplateSpecializationKind getTemplateSpecializationKind () const
 Determine what kind of template specialization this is.
void setTemplateSpecializationKind (TemplateSpecializationKind TSK)
 Set the template specialization kind.
SourceLocation getPointOfInstantiation () const
 Retrieve the first point of instantiation of this member. If the point of instantiation is an invalid location, then this member has not yet been instantiated.
void setPointOfInstantiation (SourceLocation POI)
 Set the first point of instantiation.

Detailed Description

Provides information a specialization of a member of a class template, which may be a member function, static data member, member class or member enumeration.

Definition at line 360 of file DeclTemplate.h.


Constructor & Destructor Documentation

clang::MemberSpecializationInfo::MemberSpecializationInfo ( NamedDecl IF,
TemplateSpecializationKind  TSK,
SourceLocation  POI = SourceLocation() 
) [inline, explicit]

Definition at line 370 of file DeclTemplate.h.

References clang::TSK_Undeclared.


Member Function Documentation

NamedDecl* clang::MemberSpecializationInfo::getInstantiatedFrom ( ) const [inline]

Retrieve the member declaration from which this member was instantiated.

Definition at line 379 of file DeclTemplate.h.

Referenced by clang::EnumDecl::getInstantiatedFromMemberEnum(), clang::ASTDeclWriter::VisitFunctionDecl(), and clang::ASTDeclWriter::VisitVarDecl().

SourceLocation clang::MemberSpecializationInfo::getPointOfInstantiation ( ) const [inline]
TemplateSpecializationKind clang::MemberSpecializationInfo::getTemplateSpecializationKind ( ) const [inline]
void clang::MemberSpecializationInfo::setPointOfInstantiation ( SourceLocation  POI) [inline]
void clang::MemberSpecializationInfo::setTemplateSpecializationKind ( TemplateSpecializationKind  TSK) [inline]

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