Predator
[unstable] git snapshot
|
#include <symheap.hh>
Public Member Functions | |
PtrHandle (SymHeapCore &sh, const TObjId obj, const TOffset off=0) | |
SymHeapCore * | sh () const |
return the SymHeapCore instance associated with this handle | |
TFldId | fieldId () const |
return raw field ID inside this handle (used mainly internally) | |
bool | isValidHandle () const |
true if the given handle is valid (does not imply field validity) | |
TObjId | obj () const |
return the object that the field is part of | |
TOffset | offset () const |
return the offset at which the field is placed within the object | |
TValId | value () const |
return the value inside the field (may trigger its initialization) | |
TValId | placedAt () const |
return the address of the field (may trigger address instantiation) | |
TObjType | type () const |
static type-info of the given object (return 0 if not available) | |
void | setValue (const TValId val, TValSet *killedPtrs=0) const |
assign the given value, caller is responsible for garbage collecting |
Protected Attributes | |
SymHeapCore * | sh_ |
TFldId | id_ |
Definition at line 739 of file symheap.hh.
|
inline |
Definition at line 741 of file symheap.hh.
References SymHeapCore::fldEnter(), FldHandle::id_, and FldHandle::sh_.
|
inlineinherited |
return raw field ID inside this handle (used mainly internally)
Definition at line 667 of file symheap.hh.
References FldHandle::id_.
Referenced by operator<(), and operator==().
|
inlineinherited |
true if the given handle is valid (does not imply field validity)
Definition at line 670 of file symheap.hh.
References FldHandle::id_.
Referenced by buildIgnoreList(), and FldHandle::type().
|
inlineinherited |
return the object that the field is part of
Definition at line 673 of file symheap.hh.
References FldHandle::id_, SymHeapCore::objByField(), and FldHandle::sh_.
|
inlineinherited |
return the offset at which the field is placed within the object
Definition at line 676 of file symheap.hh.
References SymHeapCore::fieldOffset(), FldHandle::id_, and FldHandle::sh_.
Referenced by translateFldHandle(), and traverseLiveFieldsGeneric().
|
inlineinherited |
return the address of the field (may trigger address instantiation)
Definition at line 682 of file symheap.hh.
References FldHandle::id_, SymHeapCore::placedAt(), and FldHandle::sh_.
assign the given value, caller is responsible for garbage collecting
Definition at line 692 of file symheap.hh.
References FldHandle::id_, SymHeapCore::setValOfField(), and FldHandle::sh_.
|
inlineinherited |
return the SymHeapCore instance associated with this handle
Definition at line 664 of file symheap.hh.
References FldHandle::sh_.
Referenced by operator==().
|
inlineinherited |
static type-info of the given object (return 0 if not available)
Definition at line 685 of file symheap.hh.
References SymHeapCore::fieldType(), FldHandle::id_, FldHandle::isValidHandle(), and FldHandle::sh_.
Referenced by translateFldHandle(), and traverseLiveFieldsGeneric().
|
inlineinherited |
return the value inside the field (may trigger its initialization)
Definition at line 679 of file symheap.hh.
References FldHandle::id_, FldHandle::sh_, and SymHeapCore::valueOf().
Referenced by nextValFromSeg(), and valOfPtr().
|
protectedinherited |
Definition at line 715 of file symheap.hh.
Referenced by FldHandle::fieldId(), FldHandle::FldHandle(), FldHandle::isValidHandle(), FldHandle::obj(), FldHandle::offset(), FldHandle::operator=(), FldHandle::placedAt(), PtrHandle(), FldHandle::setValue(), FldHandle::type(), FldHandle::value(), and FldHandle::~FldHandle().
|
protectedinherited |
Definition at line 714 of file symheap.hh.
Referenced by FldHandle::FldHandle(), FldHandle::obj(), FldHandle::offset(), FldHandle::operator=(), FldHandle::placedAt(), PtrHandle(), FldHandle::setValue(), FldHandle::sh(), FldHandle::type(), FldHandle::value(), and FldHandle::~FldHandle().