LLVM API Documentation

llvm::PointerUnion4< PT1, PT2, PT3, PT4 > Class Template Reference

#include <PointerUnion.h>

Collaboration diagram for llvm::PointerUnion4< PT1, PT2, PT3, PT4 >:
[legend]

List of all members.

Public Types

typedef PointerUnion< PT1, PT2 > InnerUnion1
typedef PointerUnion< PT3, PT4 > InnerUnion2
typedef PointerUnion
< InnerUnion1, InnerUnion2 > 
ValTy

Public Member Functions

 PointerUnion4 ()
 PointerUnion4 (PT1 V)
 PointerUnion4 (PT2 V)
 PointerUnion4 (PT3 V)
 PointerUnion4 (PT4 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 PointerUnion4 & operator= (const PT1 &RHS)
const PointerUnion4 & operator= (const PT2 &RHS)
const PointerUnion4 & operator= (const PT3 &RHS)
const PointerUnion4 & operator= (const PT4 &RHS)
void * getOpaqueValue () const

Static Public Member Functions

static PointerUnion4 getFromOpaqueValue (void *VP)


Detailed Description

template<typename PT1, typename PT2, typename PT3, typename PT4>
class llvm::PointerUnion4< PT1, PT2, PT3, PT4 >

PointerUnion4 - This is a pointer union of four pointer types. See documentation for PointerUnion for usage.

Definition at line 261 of file PointerUnion.h.


Member Typedef Documentation

template<typename PT1, typename PT2, typename PT3, typename PT4>
typedef PointerUnion<PT1, PT2> llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::InnerUnion1

Definition at line 263 of file PointerUnion.h.

template<typename PT1, typename PT2, typename PT3, typename PT4>
typedef PointerUnion<PT3, PT4> llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::InnerUnion2

Definition at line 264 of file PointerUnion.h.

template<typename PT1, typename PT2, typename PT3, typename PT4>
typedef PointerUnion<InnerUnion1, InnerUnion2> llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::ValTy

Definition at line 265 of file PointerUnion.h.


Constructor & Destructor Documentation

template<typename PT1, typename PT2, typename PT3, typename PT4>
llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::PointerUnion4 (  )  [inline]

Definition at line 269 of file PointerUnion.h.

template<typename PT1, typename PT2, typename PT3, typename PT4>
llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::PointerUnion4 ( PT1  V  )  [inline]

Definition at line 271 of file PointerUnion.h.

template<typename PT1, typename PT2, typename PT3, typename PT4>
llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::PointerUnion4 ( PT2  V  )  [inline]

Definition at line 274 of file PointerUnion.h.

template<typename PT1, typename PT2, typename PT3, typename PT4>
llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::PointerUnion4 ( PT3  V  )  [inline]

Definition at line 277 of file PointerUnion.h.

template<typename PT1, typename PT2, typename PT3, typename PT4>
llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::PointerUnion4 ( PT4  V  )  [inline]

Definition at line 280 of file PointerUnion.h.


Member Function Documentation

template<typename PT1, typename PT2, typename PT3, typename PT4>
bool llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::isNull (  )  const [inline]

isNull - Return true if the pointer held in the union is null, regardless of which type it is.

Definition at line 286 of file PointerUnion.h.

Referenced by llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::operator bool().

template<typename PT1, typename PT2, typename PT3, typename PT4>
llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::operator bool (  )  const [inline]

template<typename PT1, typename PT2, typename PT3, typename PT4>
template<typename T>
int llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::is (  )  const [inline]

is<T>() return true if the Union currently holds the type matching T.

Definition at line 291 of file PointerUnion.h.

References T.

template<typename PT1, typename PT2, typename PT3, typename PT4>
template<typename T>
T llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::get (  )  const [inline]

get<T>() - Return the value of the specified pointer type. If the specified pointer type is incorrect, assert.

Definition at line 301 of file PointerUnion.h.

References T.

template<typename PT1, typename PT2, typename PT3, typename PT4>
template<typename T>
T llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::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 313 of file PointerUnion.h.

References T.

template<typename PT1, typename PT2, typename PT3, typename PT4>
const PointerUnion4& llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::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 320 of file PointerUnion.h.

template<typename PT1, typename PT2, typename PT3, typename PT4>
const PointerUnion4& llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::operator= ( const PT2 &  RHS  )  [inline]

Definition at line 324 of file PointerUnion.h.

template<typename PT1, typename PT2, typename PT3, typename PT4>
const PointerUnion4& llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::operator= ( const PT3 &  RHS  )  [inline]

Definition at line 328 of file PointerUnion.h.

template<typename PT1, typename PT2, typename PT3, typename PT4>
const PointerUnion4& llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::operator= ( const PT4 &  RHS  )  [inline]

Definition at line 332 of file PointerUnion.h.

template<typename PT1, typename PT2, typename PT3, typename PT4>
void* llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::getOpaqueValue (  )  const [inline]

template<typename PT1, typename PT2, typename PT3, typename PT4>
static PointerUnion4 llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::getFromOpaqueValue ( void *  VP  )  [inline, static]

Definition at line 338 of file PointerUnion.h.

References V, and llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::Val.


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