LLVM  4.0.0
Public Member Functions | List of all members
llvm::WeakVH Class Reference

Value handle that is nullable, but tries to track the Value. More...

#include <ValueHandle.h>

Inheritance diagram for llvm::WeakVH:
[legend]
Collaboration diagram for llvm::WeakVH:
[legend]

Public Member Functions

 WeakVH ()
 
 WeakVH (Value *P)
 
 WeakVH (const WeakVH &RHS)
 
WeakVHoperator= (const WeakVH &RHS)=default
 
Valueoperator= (Value *RHS)
 
Valueoperator= (const ValueHandleBase &RHS)
 
 operator Value * () const
 
- Public Member Functions inherited from llvm::ValueHandleBase
 ValueHandleBase (HandleBaseKind Kind)
 
 ValueHandleBase (HandleBaseKind Kind, Value *V)
 
 ~ValueHandleBase ()
 
Valueoperator= (Value *RHS)
 
Valueoperator= (const ValueHandleBase &RHS)
 
Valueoperator-> () const
 
Valueoperator* () const
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::ValueHandleBase
static void ValueIsDeleted (Value *V)
 
static void ValueIsRAUWd (Value *Old, Value *New)
 
- Protected Types inherited from llvm::ValueHandleBase
enum  HandleBaseKind { Assert, Callback, Tracking, Weak }
 This indicates what sub class the handle actually is. More...
 
- Protected Member Functions inherited from llvm::ValueHandleBase
 ValueHandleBase (const ValueHandleBase &RHS)
 
 ValueHandleBase (HandleBaseKind Kind, const ValueHandleBase &RHS)
 
ValuegetValPtr () const
 
- Static Protected Member Functions inherited from llvm::ValueHandleBase
static bool isValid (Value *V)
 

Detailed Description

Value handle that is nullable, but tries to track the Value.

This is a value handle that tries hard to point to a Value, even across RAUW operations, but will null itself out if the value is destroyed. this is useful for advisory sorts of information, but should not be used as the key of a map (since the map would have to rearrange itself when the pointer changes).

Definition at line 134 of file ValueHandle.h.

Constructor & Destructor Documentation

llvm::WeakVH::WeakVH ( )
inline

Definition at line 136 of file ValueHandle.h.

llvm::WeakVH::WeakVH ( Value P)
inline

Definition at line 137 of file ValueHandle.h.

llvm::WeakVH::WeakVH ( const WeakVH RHS)
inline

Definition at line 138 of file ValueHandle.h.

Member Function Documentation

llvm::WeakVH::operator Value * ( ) const
inline

Definition at line 150 of file ValueHandle.h.

References llvm::ValueHandleBase::getValPtr().

WeakVH& llvm::WeakVH::operator= ( const WeakVH RHS)
default
Value* llvm::WeakVH::operator= ( Value RHS)
inline

Definition at line 143 of file ValueHandle.h.

References llvm::ValueHandleBase::operator=().

Value* llvm::WeakVH::operator= ( const ValueHandleBase RHS)
inline

Definition at line 146 of file ValueHandle.h.

References llvm::ValueHandleBase::operator=().


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