clang API Documentation

Public Member Functions | Static Public Member Functions
clang::OpaquePtr< PtrTy > Class Template Reference

#include <Ownership.h>

Inheritance diagram for clang::OpaquePtr< PtrTy >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 OpaquePtr ()
template<typename T >
T * getAs () const
template<typename T >
getAsVal () const
PtrTy get () const
void set (PtrTy P)
 operator bool () const
void * getAsOpaquePtr () const

Static Public Member Functions

static OpaquePtr make (PtrTy P)
static OpaquePtr getFromOpaquePtr (void *P)

Detailed Description

template<class PtrTy>
class clang::OpaquePtr< PtrTy >

OpaquePtr - This is a very simple POD type that wraps a pointer that the Parser doesn't know about but that Sema or another client does. The UID template argument is used to make sure that "Decl" pointers are not compatible with "Type" pointers for example.

Definition at line 44 of file Ownership.h.


Constructor & Destructor Documentation

template<class PtrTy>
clang::OpaquePtr< PtrTy >::OpaquePtr ( ) [inline]

Definition at line 51 of file Ownership.h.

Referenced by clang::OpaquePtr< TemplateName >::getFromOpaquePtr().


Member Function Documentation

template<class PtrTy>
PtrTy clang::OpaquePtr< PtrTy >::get ( ) const [inline]
template<class PtrTy>
template<typename T >
T* clang::OpaquePtr< PtrTy >::getAs ( ) const [inline]

Definition at line 55 of file Ownership.h.

template<class PtrTy>
void* clang::OpaquePtr< PtrTy >::getAsOpaquePtr ( ) const [inline]
template<class PtrTy>
template<typename T >
T clang::OpaquePtr< PtrTy >::getAsVal ( ) const [inline]
template<class PtrTy>
static OpaquePtr clang::OpaquePtr< PtrTy >::getFromOpaquePtr ( void *  P) [inline, static]

Definition at line 74 of file Ownership.h.

template<class PtrTy>
static OpaquePtr clang::OpaquePtr< PtrTy >::make ( PtrTy  P) [inline, static]

Definition at line 53 of file Ownership.h.

template<class PtrTy>
clang::OpaquePtr< PtrTy >::operator bool ( ) const [inline]

Definition at line 71 of file Ownership.h.

template<class PtrTy>
void clang::OpaquePtr< PtrTy >::set ( PtrTy  P) [inline]

Definition at line 67 of file Ownership.h.

Referenced by clang::OpaquePtr< TemplateName >::make().


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