clang API Documentation
Base class of all canonical proxy types, which is responsible for storing the underlying canonical type and providing basic conversions. More...
#include <CanonicalType.h>


Public Member Functions | |
| const T * | getTypePtr () const |
| Retrieve the pointer to the underlying Type. | |
| operator const T * () const | |
| Implicit conversion to the underlying pointer. | |
| template<typename U > | |
| CanProxy< U > | getAs () const |
| Try to convert the given canonical type to a specific structural type. | |
| const CanProxyAdaptor< T > * | operator-> () const |
| Retrieve the proxy-adaptor type. | |
Protected Attributes | |
| CanQual< T > | Stored |
Base class of all canonical proxy types, which is responsible for storing the underlying canonical type and providing basic conversions.
Definition at line 226 of file CanonicalType.h.
| CanProxy<U> clang::CanProxyBase< T >::getAs | ( | ) | const [inline] |
Try to convert the given canonical type to a specific structural type.
Definition at line 245 of file CanonicalType.h.
| const T* clang::CanProxyBase< T >::getTypePtr | ( | ) | const [inline] |
Retrieve the pointer to the underlying Type.
Definition at line 232 of file CanonicalType.h.
Referenced by clang::CanProxyAdaptor< FunctionProtoType >::arg_type_begin(), clang::CanProxyAdaptor< FunctionProtoType >::arg_type_end(), and clang::CanProxyAdaptor< FunctionProtoType >::getArgType().
| clang::CanProxyBase< T >::operator const T * | ( | ) | const [inline] |
Implicit conversion to the underlying pointer.
Also provides the ability to use canonical type proxies in a Boolean
if (CanQual<PointerType> Ptr = T->getAs<PointerType>()) { ... }
Definition at line 241 of file CanonicalType.h.
| const CanProxyAdaptor<T>* clang::CanProxyBase< T >::operator-> | ( | ) | const [inline] |
Retrieve the proxy-adaptor type.
This arrow operator is used when CanProxyAdaptor has been specialized for the given type T. In that case, we reference members of the CanProxyAdaptor specialization. Otherwise, this operator will be hidden by the arrow operator in the primary CanProxyAdaptor template.
Definition at line 307 of file CanonicalType.h.
CanQual<T> clang::CanProxyBase< T >::Stored [protected] |
Definition at line 228 of file CanonicalType.h.
Referenced by clang::CanProxy< T >::CanProxy(), clang::CanProxyBase< ObjCObjectType >::getAs(), clang::CanProxyBase< ObjCObjectType >::getTypePtr(), clang::CanProxy< T >::operator CanQual< T >(), and clang::CanProxyBase< VectorType >::operator const VectorType *().