LLVM API Documentation
#include <PointerUnion.h>
Public Types | |
| typedef PointerUnion< PT1, PT2 > | InnerUnion |
| typedef PointerUnion < InnerUnion, PT3 > | ValTy |
Public Member Functions | |
| PointerUnion3 () | |
| PointerUnion3 (PT1 V) | |
| PointerUnion3 (PT2 V) | |
| PointerUnion3 (PT3 V) | |
| bool | isNull () const |
| operator bool () const | |
| template<typename T> | |
| int | is () const |
| is<T>() return true if the Union currently holds the type matching T. | |
| template<typename T> | |
| T | get () const |
| template<typename T> | |
| T | dyn_cast () const |
| const PointerUnion3 & | operator= (const PT1 &RHS) |
| const PointerUnion3 & | operator= (const PT2 &RHS) |
| const PointerUnion3 & | operator= (const PT3 &RHS) |
| void * | getOpaqueValue () const |
Static Public Member Functions | |
| static PointerUnion3 | getFromOpaqueValue (void *VP) |
Definition at line 160 of file PointerUnion.h.
| typedef PointerUnion<PT1, PT2> llvm::PointerUnion3< PT1, PT2, PT3 >::InnerUnion |
Definition at line 162 of file PointerUnion.h.
| typedef PointerUnion<InnerUnion, PT3> llvm::PointerUnion3< PT1, PT2, PT3 >::ValTy |
Definition at line 163 of file PointerUnion.h.
| llvm::PointerUnion3< PT1, PT2, PT3 >::PointerUnion3 | ( | ) | [inline] |
Definition at line 167 of file PointerUnion.h.
| llvm::PointerUnion3< PT1, PT2, PT3 >::PointerUnion3 | ( | PT1 | V | ) | [inline] |
Definition at line 169 of file PointerUnion.h.
| llvm::PointerUnion3< PT1, PT2, PT3 >::PointerUnion3 | ( | PT2 | V | ) | [inline] |
Definition at line 172 of file PointerUnion.h.
| llvm::PointerUnion3< PT1, PT2, PT3 >::PointerUnion3 | ( | PT3 | V | ) | [inline] |
Definition at line 175 of file PointerUnion.h.
| bool llvm::PointerUnion3< PT1, PT2, PT3 >::isNull | ( | ) | const [inline] |
isNull - Return true if the pointer held in the union is null, regardless of which type it is.
Definition at line 181 of file PointerUnion.h.
Referenced by llvm::PointerUnion3< PT1, PT2, PT3 >::operator bool().
| llvm::PointerUnion3< PT1, PT2, PT3 >::operator bool | ( | ) | const [inline] |
Definition at line 182 of file PointerUnion.h.
References llvm::PointerUnion3< PT1, PT2, PT3 >::isNull().
| int llvm::PointerUnion3< PT1, PT2, PT3 >::is | ( | ) | const [inline] |
is<T>() return true if the Union currently holds the type matching T.
Definition at line 186 of file PointerUnion.h.
References T.
| T llvm::PointerUnion3< PT1, PT2, PT3 >::get | ( | ) | const [inline] |
get<T>() - Return the value of the specified pointer type. If the specified pointer type is incorrect, assert.
Definition at line 196 of file PointerUnion.h.
References T.
| T llvm::PointerUnion3< PT1, PT2, PT3 >::dyn_cast | ( | ) | const [inline] |
dyn_cast<T>() - If the current value is of the specified pointer type, return it, otherwise return null.
Definition at line 208 of file PointerUnion.h.
References T.
| const PointerUnion3& llvm::PointerUnion3< PT1, PT2, PT3 >::operator= | ( | const PT1 & | RHS | ) | [inline] |
Assignment operators - Allow assigning into this union from either pointer type, setting the discriminator to remember what it came from.
Definition at line 215 of file PointerUnion.h.
| const PointerUnion3& llvm::PointerUnion3< PT1, PT2, PT3 >::operator= | ( | const PT2 & | RHS | ) | [inline] |
Definition at line 219 of file PointerUnion.h.
| const PointerUnion3& llvm::PointerUnion3< PT1, PT2, PT3 >::operator= | ( | const PT3 & | RHS | ) | [inline] |
Definition at line 223 of file PointerUnion.h.
| void* llvm::PointerUnion3< PT1, PT2, PT3 >::getOpaqueValue | ( | ) | const [inline] |
Definition at line 228 of file PointerUnion.h.
Referenced by llvm::PointerLikeTypeTraits< PointerUnion3< PT1, PT2, PT3 > >::getAsVoidPointer().
| static PointerUnion3 llvm::PointerUnion3< PT1, PT2, PT3 >::getFromOpaqueValue | ( | void * | VP | ) | [inline, static] |
Definition at line 229 of file PointerUnion.h.
References V, and llvm::PointerUnion3< PT1, PT2, PT3 >::Val.