|
LLVM
3.7.0
|
PointerUnion3 - This is a pointer union of three pointer types. More...
#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 |
| isNull - Return true if the pointer held in the union is null, regardless of which type it is. More... | |
| operator bool () const | |
| template<typename T > | |
| int | is () const |
| is<T>() return true if the Union currently holds the type matching T. More... | |
| template<typename T > | |
| T | get () const |
| get<T>() - Return the value of the specified pointer type. More... | |
| template<typename T > | |
| T | dyn_cast () const |
| dyn_cast<T>() - If the current value is of the specified pointer type, return it, otherwise return null. More... | |
| const PointerUnion3 & | operator= (std::nullptr_t) |
| Assignment from nullptr which just clears the union. More... | |
| const PointerUnion3 & | operator= (const PT1 &RHS) |
| Assignment operators - Allow assigning into this union from either pointer type, setting the discriminator to remember what it came from. More... | |
| const PointerUnion3 & | operator= (const PT2 &RHS) |
| const PointerUnion3 & | operator= (const PT3 &RHS) |
| void * | getOpaqueValue () const |
Static Public Member Functions | |
| static PointerUnion3 | getFromOpaqueValue (void *VP) |
PointerUnion3 - This is a pointer union of three pointer types.
See documentation for PointerUnion for usage.
Definition at line 230 of file PointerUnion.h.
| typedef PointerUnion<PT1, PT2> llvm::PointerUnion3< PT1, PT2, PT3 >::InnerUnion |
Definition at line 232 of file PointerUnion.h.
| typedef PointerUnion<InnerUnion, PT3> llvm::PointerUnion3< PT1, PT2, PT3 >::ValTy |
Definition at line 233 of file PointerUnion.h.
|
inline |
Definition at line 265 of file PointerUnion.h.
|
inline |
Definition at line 267 of file PointerUnion.h.
|
inline |
Definition at line 270 of file PointerUnion.h.
|
inline |
Definition at line 273 of file PointerUnion.h.
|
inline |
dyn_cast<T>() - If the current value is of the specified pointer type, return it, otherwise return null.
Definition at line 309 of file PointerUnion.h.
References T.
|
inline |
get<T>() - Return the value of the specified pointer type.
If the specified pointer type is incorrect, assert.
Definition at line 296 of file PointerUnion.h.
References llvm::MCID::Return, and T.
|
inlinestatic |
Definition at line 336 of file PointerUnion.h.
References llvm::PointerUnion< InnerUnion, PT3 >::getFromOpaqueValue().
Referenced by llvm::PointerLikeTypeTraits< PointerUnion3< PT1, PT2, PT3 > >::getFromVoidPointer().
|
inline |
Definition at line 335 of file PointerUnion.h.
References llvm::PointerUnion< PT1, PT2 >::getOpaqueValue().
Referenced by llvm::PointerLikeTypeTraits< PointerUnion3< PT1, PT2, PT3 > >::getAsVoidPointer().
|
inline |
is<T>() return true if the Union currently holds the type matching T.
Definition at line 284 of file PointerUnion.h.
References llvm::MCID::Return, and T.
|
inline |
isNull - Return true if the pointer held in the union is null, regardless of which type it is.
Definition at line 279 of file PointerUnion.h.
References llvm::PointerUnion< PT1, PT2 >::isNull().
Referenced by llvm::PointerUnion3< PT1, PT2, PT3 >::operator bool().
|
inlineexplicit |
Definition at line 280 of file PointerUnion.h.
References llvm::PointerUnion3< PT1, PT2, PT3 >::isNull().
|
inline |
Assignment from nullptr which just clears the union.
Definition at line 315 of file PointerUnion.h.
|
inline |
Assignment operators - Allow assigning into this union from either pointer type, setting the discriminator to remember what it came from.
Definition at line 322 of file PointerUnion.h.
|
inline |
Definition at line 326 of file PointerUnion.h.
|
inline |
Definition at line 330 of file PointerUnion.h.
1.8.6