LLVM API Documentation

llvm::ValueHandleBase Class Reference

#include <ValueHandle.h>

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

List of all members.

Public Member Functions

 ValueHandleBase (HandleBaseKind Kind)
 ValueHandleBase (HandleBaseKind Kind, Value *V)
 ValueHandleBase (HandleBaseKind Kind, const ValueHandleBase &RHS)
 ~ValueHandleBase ()
Value * operator= (Value *RHS)
Value * operator= (const ValueHandleBase &RHS)
Value * operator-> () const
Value & operator* () const

Protected Types

enum  HandleBaseKind { Assert, Weak, Callback }

Protected Member Functions

Value * getValPtr () const

Friends

class Value


Detailed Description

ValueHandleBase - This is the common base class of value handles. ValueHandle's are smart pointers to Value's that have special behavior when the value is deleted or ReplaceAllUsesWith'd. See the specific handles below for details.

Definition at line 40 of file ValueHandle.h.


Member Enumeration Documentation

HandleBaseKind - This indicates what sub class the handle actually is. This is to avoid having a vtable for the light-weight handle pointers. The fully general Callback version does have a vtable.

Enumerator:
Assert 
Weak 
Callback 

Definition at line 46 of file ValueHandle.h.


Constructor & Destructor Documentation

llvm::ValueHandleBase::ValueHandleBase ( HandleBaseKind  Kind  )  [inline, explicit]

Definition at line 57 of file ValueHandle.h.

llvm::ValueHandleBase::ValueHandleBase ( HandleBaseKind  Kind,
Value *  V 
) [inline]

Definition at line 59 of file ValueHandle.h.

llvm::ValueHandleBase::ValueHandleBase ( HandleBaseKind  Kind,
const ValueHandleBase &  RHS 
) [inline]

Definition at line 64 of file ValueHandle.h.

References getPrevPtr().

llvm::ValueHandleBase::~ValueHandleBase (  )  [inline]

Definition at line 69 of file ValueHandle.h.


Member Function Documentation

Value* llvm::ValueHandleBase::operator= ( Value *  RHS  )  [inline]

Definition at line 74 of file ValueHandle.h.

Referenced by llvm::CallbackVH::setValPtr().

Value* llvm::ValueHandleBase::operator= ( const ValueHandleBase &  RHS  )  [inline]

Definition at line 82 of file ValueHandle.h.

References getPrevPtr(), and VP.

Value* llvm::ValueHandleBase::operator-> (  )  const [inline]

Reimplemented in llvm::AssertingVH< ValueTy >.

Definition at line 90 of file ValueHandle.h.

References getValPtr().

Value& llvm::ValueHandleBase::operator* (  )  const [inline]

Reimplemented in llvm::AssertingVH< ValueTy >.

Definition at line 91 of file ValueHandle.h.

References getValPtr().

Value* llvm::ValueHandleBase::getValPtr (  )  const [inline, protected]


Friends And Related Function Documentation

friend class Value [friend]

Definition at line 41 of file ValueHandle.h.


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