|
| SymbolLookupSet ()=default |
|
| SymbolLookupSet (SymbolStringPtr Name, SymbolLookupFlags Flags=SymbolLookupFlags::RequiredSymbol) |
|
| SymbolLookupSet (std::initializer_list< SymbolStringPtr > Names, SymbolLookupFlags Flags=SymbolLookupFlags::RequiredSymbol) |
| Construct a SymbolLookupSet from an initializer list of SymbolStringPtrs.
|
|
| SymbolLookupSet (const SymbolNameSet &Names, SymbolLookupFlags Flags=SymbolLookupFlags::RequiredSymbol) |
| Construct a SymbolLookupSet from a SymbolNameSet with the given Flags used for each value.
|
|
| SymbolLookupSet (ArrayRef< SymbolStringPtr > Names, SymbolLookupFlags Flags=SymbolLookupFlags::RequiredSymbol) |
| Construct a SymbolLookupSet from a vector of symbols with the given Flags used for each value.
|
|
SymbolLookupSet & | add (SymbolStringPtr Name, SymbolLookupFlags Flags=SymbolLookupFlags::RequiredSymbol) |
| Add an element to the set.
|
|
SymbolLookupSet & | append (SymbolLookupSet Other) |
| Quickly append one lookup set to another.
|
|
bool | empty () const |
|
UnderlyingVector::size_type | size () const |
|
iterator | begin () |
|
iterator | end () |
|
const_iterator | begin () const |
|
const_iterator | end () const |
|
void | remove (UnderlyingVector::size_type I) |
| Removes the Ith element of the vector, replacing it with the last element.
|
|
void | remove (iterator I) |
| Removes the element pointed to by the given iterator.
|
|
template<typename PredFn > |
void | remove_if (PredFn &&Pred) |
| Removes all elements matching the given predicate, which must be callable as bool(const SymbolStringPtr &, SymbolLookupFlags Flags).
|
|
template<typename BodyFn > |
auto | forEachWithRemoval (BodyFn &&Body) -> std::enable_if_t< std::is_same< decltype(Body(std::declval< const SymbolStringPtr & >(), std::declval< SymbolLookupFlags >())), bool >::value > |
| Loop over the elements of this SymbolLookupSet, applying the Body function to each one.
|
|
template<typename BodyFn > |
auto | forEachWithRemoval (BodyFn &&Body) -> std::enable_if_t< std::is_same< decltype(Body(std::declval< const SymbolStringPtr & >(), std::declval< SymbolLookupFlags >())), Expected< bool > >::value, Error > |
| Loop over the elements of this SymbolLookupSet, applying the Body function to each one.
|
|
SymbolNameVector | getSymbolNames () const |
| Construct a SymbolNameVector from this instance by dropping the Flags values.
|
|
void | sortByAddress () |
| Sort the lookup set by pointer value.
|
|
void | sortByName () |
| Sort the lookup set lexicographically.
|
|
void | removeDuplicates () |
| Remove any duplicate elements.
|
|
bool | containsDuplicates () |
| Returns true if this set contains any duplicates.
|
|
A set of symbols to look up, each associated with a SymbolLookupFlags value.
This class is backed by a vector and optimized for fast insertion, deletion and iteration. It does not guarantee a stable order between operations, and will not automatically detect duplicate elements (they can be manually checked by calling the validate method).
Definition at line 182 of file Core.h.
template<typename BodyFn >
Loop over the elements of this SymbolLookupSet, applying the Body function to each one.
Body must be callable as bool(const SymbolStringPtr &, SymbolLookupFlags). If Body returns true then the element just passed in is removed from the set. If Body returns false then the element is retained.
Definition at line 294 of file Core.h.
References Flags, I, Name, and remove().
template<typename BodyFn >
Loop over the elements of this SymbolLookupSet, applying the Body function to each one.
Body must be callable as Expected<bool>(const SymbolStringPtr &, SymbolLookupFlags). If Body returns a failure value, the loop exits immediately. If Body returns true then the element just passed in is removed from the set. If Body returns false then the element is retained.
Definition at line 316 of file Core.h.
References Flags, I, Name, remove(), and llvm::Error::success().
template<typename PredFn >
void llvm::orc::SymbolLookupSet::remove_if |
( |
PredFn && |
Pred | ) |
|
|
inline |
Removes all elements matching the given predicate, which must be callable as bool(const SymbolStringPtr &, SymbolLookupFlags Flags).
Definition at line 276 of file Core.h.
References Flags, I, Name, and remove().