LLVM: llvm::StringSet< AllocatorTy > Class Template Reference (original) (raw)
Public Member Functions
StringSet ()=default
StringSet (std::initializer_list< StringRef > initializer)
template
StringSet (AllocatorTy a)
std::pair< typename Base::iterator, bool >
template
void
insert (InputIt begin, InputIt end)
template
std::pair< typename Base::iterator, bool >
insert (const StringMapEntry< ValueTy > &mapEntry)
contains (StringRef key) const
Check if the set contains the given key
.
Public Member Functions inherited from llvm::StringMap< ValueTy, AllocatorTy >
StringMap ()
StringMap (unsigned InitialSize)
StringMap (unsigned InitialSize, AllocatorTy A)
StringMap (std::initializer_list< std::pair< StringRef, ValueTy > > List)
StringMap (const StringMap &RHS)
~StringMap ()
begin ()
end ()
iterator_range< StringMapKeyIterator< ValueTy > >
find (StringRef Key, uint32_t FullHashValue)
find (StringRef Key, uint32_t FullHashValue) const
ValueTy
lookup - Return the entry for the specified key, or a default constructed value if no such entry exists.
const ValueTy &
at - Return the entry for the specified key, or abort if no such entry exists.
ValueTy &
operator[] (StringRef Key)
Lookup the ValueTy for the Key
, or create a default constructed value if the key is not in the map.
contains (StringRef Key) const
contains - Return true if the element is in the map, false otherwise.
count - Return 1 if the element is in the map, 0 otherwise.
template
count (const StringMapEntry< InputTy > &MapEntry) const
operator== (const StringMap &RHS) const
equal - check whether both of the containers are equal.
operator!= (const StringMap &RHS) const
insert (MapEntryTy *KeyValue)
insert - Insert the specified key/value pair into the map.
insert (std::pair< StringRef, ValueTy > KV)
insert - Inserts the specified key/value pair into the map if the key isn't already in the map.
insert (std::pair< StringRef, ValueTy > KV, uint32_t FullHashValue)
template
void
insert (InputIt First, InputIt Last)
Inserts elements from range [first, last).
void
insert (std::initializer_list< std::pair< StringRef, ValueTy > > List)
Inserts elements from initializer list ilist.
template
insert_or_assign (StringRef Key, V &&Val)
Inserts an element or assigns to the current element if the key already exists.
template<typename... ArgsTy>
try_emplace (StringRef Key, ArgsTy &&...Args)
Emplace a new element for the specified key into the map if the key isn't already in the map.
template<typename... ArgsTy>
try_emplace_with_hash (StringRef Key, uint32_t FullHashValue, ArgsTy &&...Args)
void
clear ()
void
remove (MapEntryTy *KeyValue)
remove - Remove the specified key/value pair from the map, but do not erase it.
void
Public Member Functions inherited from llvm::StringMapImpl
getNumItems () const
void
template
class llvm::StringSet< AllocatorTy >
StringSet - A wrapper for [StringMap](classllvm%5F1%5F1StringMap.html "StringMap - This is an unconventional map that is specialized for handling keys that are "strings",...") that provides set-like functionality.
Definition at line 23 of file StringSet.h.