clang  6.0.0svn
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
clang::ObjCTypeParamList Class Referencefinal

Stores a list of Objective-C type parameters for a parameterized class or a category/extension thereof. More...

#include "clang/AST/DeclObjC.h"

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

Public Types

typedef ObjCTypeParamDecl ** iterator
 Iterate through the type parameters in the list. More...
 
typedef ObjCTypeParamDecl *const * const_iterator
 

Public Member Functions

iterator begin ()
 
iterator end ()
 
unsigned size () const
 Determine the number of type parameters in this list. More...
 
const_iterator begin () const
 
const_iterator end () const
 
ObjCTypeParamDeclfront () const
 
ObjCTypeParamDeclback () const
 
SourceLocation getLAngleLoc () const
 
SourceLocation getRAngleLoc () const
 
SourceRange getSourceRange () const
 
void gatherDefaultTypeArgs (SmallVectorImpl< QualType > &typeArgs) const
 Gather the default set of type arguments to be substituted for these type parameters when dealing with an unspecialized type. More...
 

Static Public Member Functions

static ObjCTypeParamListcreate (ASTContext &ctx, SourceLocation lAngleLoc, ArrayRef< ObjCTypeParamDecl *> typeParams, SourceLocation rAngleLoc)
 Create a new Objective-C type parameter list. More...
 

Public Attributes

friend TrailingObjects
 
PODSourceRange Brackets
 Location of the left and right angle brackets. More...
 
ObjCTypeParamDeclAlignmentHack
 

Detailed Description

Stores a list of Objective-C type parameters for a parameterized class or a category/extension thereof.

@interface NSArray<T> // stores the <T>
@end

Definition at line 615 of file DeclObjC.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 656 of file DeclObjC.h.

◆ iterator

Iterate through the type parameters in the list.

Definition at line 646 of file DeclObjC.h.

Member Function Documentation

◆ back()

ObjCTypeParamDecl* clang::ObjCTypeParamList::back ( ) const
inline

Definition at line 671 of file DeclObjC.h.

References clang::ObjCListBase::size().

◆ begin() [1/2]

iterator clang::ObjCTypeParamList::begin ( )
inline

Definition at line 648 of file DeclObjC.h.

Referenced by sameObjCTypeArgs().

◆ begin() [2/2]

const_iterator clang::ObjCTypeParamList::begin ( ) const
inline

Definition at line 658 of file DeclObjC.h.

◆ create()

ObjCTypeParamList * ObjCTypeParamList::create ( ASTContext ctx,
SourceLocation  lAngleLoc,
ArrayRef< ObjCTypeParamDecl *>  typeParams,
SourceLocation  rAngleLoc 
)
static

Create a new Objective-C type parameter list.

Definition at line 1384 of file DeclObjC.cpp.

References clang::ASTContext::Allocate().

Referenced by clang::ASTNodeImporter::ImportObjCTypeParamList(), and clang::ASTDeclReader::ReadObjCTypeParamList().

◆ end() [1/2]

iterator clang::ObjCTypeParamList::end ( )
inline

Definition at line 650 of file DeclObjC.h.

References clang::ObjCListBase::size().

◆ end() [2/2]

const_iterator clang::ObjCTypeParamList::end ( ) const
inline

Definition at line 662 of file DeclObjC.h.

References clang::ObjCListBase::size().

◆ front()

ObjCTypeParamDecl* clang::ObjCTypeParamList::front ( ) const
inline

Definition at line 666 of file DeclObjC.h.

References clang::ObjCListBase::size().

◆ gatherDefaultTypeArgs()

void ObjCTypeParamList::gatherDefaultTypeArgs ( SmallVectorImpl< QualType > &  typeArgs) const

Gather the default set of type arguments to be substituted for these type parameters when dealing with an unspecialized type.

Definition at line 1395 of file DeclObjC.cpp.

References clang::ObjCListBase::size().

◆ getLAngleLoc()

SourceLocation clang::ObjCTypeParamList::getLAngleLoc ( ) const
inline

◆ getRAngleLoc()

SourceLocation clang::ObjCTypeParamList::getRAngleLoc ( ) const
inline

Definition at line 679 of file DeclObjC.h.

References clang::SourceLocation::getFromRawEncoding().

◆ getSourceRange()

SourceRange clang::ObjCTypeParamList::getSourceRange ( ) const
inline

◆ size()

unsigned clang::ObjCTypeParamList::size ( ) const
inline

Determine the number of type parameters in this list.

Definition at line 653 of file DeclObjC.h.

Referenced by clang::ASTDeclWriter::AddObjCTypeParamList(), and clang::ObjCObjectType::computeSuperClassTypeSlow().

Member Data Documentation

◆ AlignmentHack

ObjCTypeParamDecl* clang::ObjCTypeParamList::AlignmentHack

Definition at line 628 of file DeclObjC.h.

◆ Brackets

PODSourceRange clang::ObjCTypeParamList::Brackets

Location of the left and right angle brackets.

Definition at line 625 of file DeclObjC.h.

◆ TrailingObjects

friend clang::ObjCTypeParamList::TrailingObjects

Definition at line 689 of file DeclObjC.h.


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