clang  6.0.0svn
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 >:
Inheritance graph
[legend]

Public Types

typedef ObjCProtocolDecl *const * qual_iterator
 
typedef llvm::iterator_range< qual_iteratorqual_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 4902 of file Type.h.

Member Typedef Documentation

◆ qual_iterator

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

Definition at line 4925 of file Type.h.

◆ qual_range

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

Definition at line 4926 of file Type.h.

Constructor & Destructor Documentation

◆ ObjCProtocolQualifiers()

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

Definition at line 4904 of file Type.h.

Member Function Documentation

◆ getNumProtocols()

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 4936 of file Type.h.

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

◆ getProtocol()

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

Fetch a protocol by index.

Definition at line 4941 of file Type.h.

◆ getProtocols()

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

Retrieve all of the protocol qualifiers.

Definition at line 4947 of file Type.h.

◆ getProtocolStorage() [1/2]

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

Definition at line 4905 of file Type.h.

◆ getProtocolStorage() [2/2]

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

Definition at line 4909 of file Type.h.

◆ initialize()

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

Definition at line 4915 of file Type.h.

◆ qual_begin()

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

Definition at line 4929 of file Type.h.

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

◆ qual_empty()

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

◆ qual_end()

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

Definition at line 4930 of file Type.h.

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

◆ quals()

template<class T>
qual_range clang::ObjCProtocolQualifiers< T >::quals ( ) const
inline

◆ setNumProtocols()

template<class T>
void clang::ObjCProtocolQualifiers< T >::setNumProtocols ( unsigned  N)
inlineprotected

Definition at line 4912 of file Type.h.


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