clang 20.0.0git
Public Member Functions | List of all members
clang::CanProxy< T > Class Template Reference

Canonical proxy type returned when retrieving the members of a canonical type or as the result of the CanQual<T>::getAs member function. More...

#include "clang/AST/CanonicalType.h"

Inheritance diagram for clang::CanProxy< T >:
Inheritance graph
[legend]

Public Member Functions

 CanProxy ()=default
 Build a NULL proxy.
 
 CanProxy (CanQual< T > Stored)
 Build a proxy to the given canonical type.
 
 operator CanQual< T > () const
 Implicit conversion to the stored canonical type.
 
- Public Member Functions inherited from clang::CanProxyBase< T >
const TgetTypePtr () const
 Retrieve the pointer to the underlying Type.
 
 operator const T * () const
 Implicit conversion to the underlying pointer.
 
template<typename U >
CanProxy< UgetAs () const
 Try to convert the given canonical type to a specific structural type.
 
const CanProxyAdaptor< T > * operator-> () const
 Retrieve the proxy-adaptor type.
 

Additional Inherited Members

- Protected Attributes inherited from clang::CanProxyBase< T >
CanQual< TStored
 

Detailed Description

template<typename T>
class clang::CanProxy< T >

Canonical proxy type returned when retrieving the members of a canonical type or as the result of the CanQual<T>::getAs member function.

The CanProxy type mainly exists as a proxy through which operator-> will look to either map down to a raw T* (e.g., PointerType*) or to a proxy type that provides canonical-type access to the fields of the type.

Definition at line 348 of file CanonicalType.h.

Constructor & Destructor Documentation

◆ CanProxy() [1/2]

template<typename T >
clang::CanProxy< T >::CanProxy ( )
default

Build a NULL proxy.

◆ CanProxy() [2/2]

template<typename T >
clang::CanProxy< T >::CanProxy ( CanQual< T Stored)
inline

Build a proxy to the given canonical type.

Definition at line 354 of file CanonicalType.h.

References clang::CanProxyBase< T >::Stored.

Member Function Documentation

◆ operator CanQual< T >()

template<typename T >
clang::CanProxy< T >::operator CanQual< T > ( ) const
inline

Implicit conversion to the stored canonical type.

Definition at line 357 of file CanonicalType.h.

References clang::CanProxyBase< T >::Stored.


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