clang  5.0.0
Public Types | Public Member Functions | Protected Member Functions | List of all members
clang::ObjCProtocolQualifiers< T > Class Template Reference

This class wraps the list of protocol qualifiers. More...

#include "clang/AST/Type.h"

Inheritance diagram for clang::ObjCProtocolQualifiers< T >:
[legend]

Public Types

typedef ObjCProtocolDecl *const * qual_iterator
 
typedef llvm::iterator_range
< qual_iterator
qual_range
 

Public Member Functions

qual_range quals () const
 
qual_iterator qual_begin () const
 
qual_iterator qual_end () const
 
bool qual_empty () const
 
unsigned getNumProtocols () const
 Return the number of qualifying protocols in this type, or 0 if there are none. More...
 
ObjCProtocolDeclgetProtocol (unsigned I) const
 Fetch a protocol by index. More...
 
ArrayRef< ObjCProtocolDecl * > getProtocols () const
 Retrieve all of the protocol qualifiers. More...
 

Protected Member Functions

 ObjCProtocolQualifiers ()
 
ObjCProtocolDecl *const * getProtocolStorage () const
 
ObjCProtocolDecl ** getProtocolStorage ()
 
void setNumProtocols (unsigned N)
 
void initialize (ArrayRef< ObjCProtocolDecl * > protocols)
 

Detailed Description

template<class T>
class clang::ObjCProtocolQualifiers< T >

This class wraps the list of protocol qualifiers.

For types that can take ObjC protocol qualifers, they can subclass this class.

Definition at line 4848 of file Type.h.

Member Typedef Documentation

template<class T>
typedef ObjCProtocolDecl* const* clang::ObjCProtocolQualifiers< T >::qual_iterator

Definition at line 4871 of file Type.h.

template<class T>
typedef llvm::iterator_range<qual_iterator> clang::ObjCProtocolQualifiers< T >::qual_range

Definition at line 4872 of file Type.h.

Constructor & Destructor Documentation

template<class T>
clang::ObjCProtocolQualifiers< T >::ObjCProtocolQualifiers ( )
inlineprotected

Definition at line 4850 of file Type.h.

Member Function Documentation

template<class T>
unsigned clang::ObjCProtocolQualifiers< T >::getNumProtocols ( ) const
inline

Return the number of qualifying protocols in this type, or 0 if there are none.

Definition at line 4882 of file Type.h.

Referenced by clang::ASTContext::canAssignObjCInterfaces(), clang::ObjCTypeParamTypeLoc::getNumProtocols(), and clang::ObjCObjectTypeLoc::getNumProtocols().

template<class T>
ObjCProtocolDecl* clang::ObjCProtocolQualifiers< T >::getProtocol ( unsigned  I) const
inline

Fetch a protocol by index.

Definition at line 4887 of file Type.h.

template<class T>
ArrayRef<ObjCProtocolDecl *> clang::ObjCProtocolQualifiers< T >::getProtocols ( ) const
inline

Retrieve all of the protocol qualifiers.

Definition at line 4893 of file Type.h.

template<class T>
ObjCProtocolDecl* const* clang::ObjCProtocolQualifiers< T >::getProtocolStorage ( ) const
inlineprotected

Definition at line 4851 of file Type.h.

template<class T>
ObjCProtocolDecl** clang::ObjCProtocolQualifiers< T >::getProtocolStorage ( )
inlineprotected

Definition at line 4855 of file Type.h.

template<class T>
void clang::ObjCProtocolQualifiers< T >::initialize ( ArrayRef< ObjCProtocolDecl * >  protocols)
inlineprotected

Definition at line 4861 of file Type.h.

template<class T>
qual_iterator clang::ObjCProtocolQualifiers< T >::qual_begin ( ) const
inline
template<class T>
bool clang::ObjCProtocolQualifiers< T >::qual_empty ( ) const
inline

Definition at line 4878 of file Type.h.

Referenced by clang::Sema::CheckObjCForCollectionOperand().

template<class T>
qual_iterator clang::ObjCProtocolQualifiers< T >::qual_end ( ) const
inline

Definition at line 4876 of file Type.h.

Referenced by clang::ASTContext::applyObjCProtocolQualifiers().

template<class T>
qual_range clang::ObjCProtocolQualifiers< T >::quals ( ) const
inline
template<class T>
void clang::ObjCProtocolQualifiers< T >::setNumProtocols ( unsigned  N)
inlineprotected

Definition at line 4858 of file Type.h.


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