clang  14.0.0git
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

using qual_iterator = ObjCProtocolDecl *const *
 
using qual_range = llvm::iterator_range< qual_iterator >
 

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 ()=default
 
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 5686 of file Type.h.

Member Typedef Documentation

◆ qual_iterator

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

Definition at line 5712 of file Type.h.

◆ qual_range

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

Definition at line 5713 of file Type.h.

Constructor & Destructor Documentation

◆ ObjCProtocolQualifiers()

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

Member Function Documentation

◆ getNumProtocols()

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

◆ getProtocol()

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

Fetch a protocol by index.

Definition at line 5728 of file Type.h.

Referenced by clang::ObjCObjectPointerType::getProtocol().

◆ getProtocols()

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

Retrieve all of the protocol qualifiers.

Definition at line 5734 of file Type.h.

◆ getProtocolStorage() [1/2]

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

Definition at line 5694 of file Type.h.

◆ getProtocolStorage() [2/2]

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

◆ initialize()

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

Definition at line 5702 of file Type.h.

◆ qual_begin()

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

◆ 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

◆ quals()

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

◆ setNumProtocols()

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

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