LLVM
8.0.1
|
A base class for iterator classes ("handles") that wish to poll for iterator invalidating modifications in the underlying data structure. More...
#include "llvm/ADT/EpochTracker.h"
Public Member Functions | |
HandleBase () | |
HandleBase (const DebugEpochBase *Parent) | |
bool | isHandleInSync () const |
Returns true if the DebugEpochBase this Handle is linked to has not called incrementEpoch on itself since the creation of this HandleBase instance. More... | |
const void * | getEpochAddress () const |
Returns a pointer to the epoch word stored in the data structure this handle points into. More... | |
A base class for iterator classes ("handles") that wish to poll for iterator invalidating modifications in the underlying data structure.
When LLVM is built without asserts, this class is empty and does nothing.
HandleBase does not track the parent data structure by itself. It expects the routines modifying the data structure to call incrementEpoch when they make an iterator-invalidating modification.
Definition at line 58 of file EpochTracker.h.
|
inline |
Definition at line 63 of file EpochTracker.h.
Referenced by getEpochAddress().
|
inlineexplicit |
Definition at line 65 of file EpochTracker.h.
|
inline |
Returns a pointer to the epoch word stored in the data structure this handle points into.
Can be used to check if two iterators point into the same data structure.
Definition at line 76 of file EpochTracker.h.
References HandleBase(), llvm::DebugEpochBase::incrementEpoch(), and isHandleInSync().
Referenced by llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::operator!=(), and llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::operator==().
|
inline |
Returns true if the DebugEpochBase this Handle is linked to has not called incrementEpoch on itself since the creation of this HandleBase instance.
Definition at line 71 of file EpochTracker.h.
Referenced by getEpochAddress(), llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::operator!=(), and llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::operator==().