clang  6.0.0svn
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]
Collaboration diagram for clang::CanProxy< T >:
Collaboration graph
[legend]

Public Member Functions

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

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 32 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.

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.


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