LLVM API Documentation
#include <StringMap.h>
Public Types | |
| typedef const char * | key_type |
| typedef ValueTy | mapped_type |
| typedef StringMapEntry< ValueTy > | value_type |
| typedef size_t | size_type |
| typedef StringMapConstIterator < ValueTy > | const_iterator |
| typedef StringMapIterator < ValueTy > | iterator |
Public Member Functions | |
| StringMap () | |
| StringMap (unsigned InitialSize) | |
| StringMap (const StringMap &RHS) | |
| void | operator= (const StringMap &RHS) |
| AllocatorTy & | getAllocator () |
| const AllocatorTy & | getAllocator () const |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| iterator | find (const StringRef &Key) |
| const_iterator | find (const StringRef &Key) const |
| ValueTy | lookup (const StringRef &Key) const |
| constructed value if no such entry exists. | |
| ValueTy & | operator[] (const StringRef &Key) |
| size_type | count (const StringRef &Key) const |
| bool | insert (MapEntryTy *KeyValue) |
| void | clear () |
| template<typename InitTy> | |
| StringMapEntry< ValueTy > & | GetOrCreateValue (const StringRef &Key, InitTy Val) |
| StringMapEntry< ValueTy > & | GetOrCreateValue (const StringRef &Key) |
| template<typename InitTy> | |
| StringMapEntry< ValueTy > & | GetOrCreateValue (const char *KeyStart, const char *KeyEnd, InitTy Val) |
| StringMapEntry< ValueTy > & | GetOrCreateValue (const char *KeyStart, const char *KeyEnd) |
| void | remove (MapEntryTy *KeyValue) |
| void | erase (iterator I) |
| bool | erase (const StringRef &Key) |
| ~StringMap () | |
Definition at line 242 of file StringMap.h.
| typedef const char* llvm::StringMap< ValueTy, AllocatorTy >::key_type |
Definition at line 264 of file StringMap.h.
| typedef ValueTy llvm::StringMap< ValueTy, AllocatorTy >::mapped_type |
Definition at line 265 of file StringMap.h.
| typedef StringMapEntry<ValueTy> llvm::StringMap< ValueTy, AllocatorTy >::value_type |
Definition at line 266 of file StringMap.h.
| typedef size_t llvm::StringMap< ValueTy, AllocatorTy >::size_type |
Definition at line 267 of file StringMap.h.
| typedef StringMapConstIterator<ValueTy> llvm::StringMap< ValueTy, AllocatorTy >::const_iterator |
Definition at line 269 of file StringMap.h.
| typedef StringMapIterator<ValueTy> llvm::StringMap< ValueTy, AllocatorTy >::iterator |
Definition at line 270 of file StringMap.h.
| llvm::StringMap< ValueTy, AllocatorTy >::StringMap | ( | ) | [inline] |
Definition at line 246 of file StringMap.h.
| llvm::StringMap< ValueTy, AllocatorTy >::StringMap | ( | unsigned | InitialSize | ) | [inline, explicit] |
Definition at line 247 of file StringMap.h.
| llvm::StringMap< ValueTy, AllocatorTy >::StringMap | ( | const StringMap< ValueTy, AllocatorTy > & | RHS | ) | [inline, explicit] |
Definition at line 249 of file StringMap.h.
| llvm::StringMap< ValueTy, AllocatorTy >::~StringMap | ( | ) | [inline] |
Definition at line 411 of file StringMap.h.
| void llvm::StringMap< ValueTy, AllocatorTy >::operator= | ( | const StringMap< ValueTy, AllocatorTy > & | RHS | ) | [inline] |
Definition at line 254 of file StringMap.h.
| AllocatorTy& llvm::StringMap< ValueTy, AllocatorTy >::getAllocator | ( | ) | [inline] |
Definition at line 261 of file StringMap.h.
| const AllocatorTy& llvm::StringMap< ValueTy, AllocatorTy >::getAllocator | ( | ) | const [inline] |
Definition at line 262 of file StringMap.h.
| iterator llvm::StringMap< ValueTy, AllocatorTy >::begin | ( | ) | [inline] |
Definition at line 272 of file StringMap.h.
Referenced by llvm::X86IntelAsmPrinter::doFinalization(), and llvm::X86ATTAsmPrinter::doFinalization().
| iterator llvm::StringMap< ValueTy, AllocatorTy >::end | ( | ) | [inline] |
Definition at line 275 of file StringMap.h.
Referenced by llvm::StringMap< llvm::StringPool::PooledString >::count(), llvm::X86IntelAsmPrinter::doFinalization(), llvm::X86ATTAsmPrinter::doFinalization(), llvm::StringMap< llvm::StringPool::PooledString >::erase(), llvm::StringMap< llvm::StringPool::PooledString >::find(), llvmc::CompilationGraph::getNode(), and llvm::StringMap< llvm::StringPool::PooledString >::lookup().
| const_iterator llvm::StringMap< ValueTy, AllocatorTy >::begin | ( | ) | const [inline] |
Definition at line 278 of file StringMap.h.
| const_iterator llvm::StringMap< ValueTy, AllocatorTy >::end | ( | ) | const [inline] |
Definition at line 281 of file StringMap.h.
| iterator llvm::StringMap< ValueTy, AllocatorTy >::find | ( | const StringRef & | Key | ) | [inline] |
| const_iterator llvm::StringMap< ValueTy, AllocatorTy >::find | ( | const StringRef & | Key | ) | const [inline] |
Definition at line 291 of file StringMap.h.
| ValueTy llvm::StringMap< ValueTy, AllocatorTy >::lookup | ( | const StringRef & | Key | ) | const [inline] |
constructed value if no such entry exists.
lookup - Return the entry for the specified key, or a default
Definition at line 299 of file StringMap.h.
Referenced by llvm::LibCallInfo::getFunctionInfo().
| ValueTy& llvm::StringMap< ValueTy, AllocatorTy >::operator[] | ( | const StringRef & | Key | ) | [inline] |
Definition at line 306 of file StringMap.h.
| size_type llvm::StringMap< ValueTy, AllocatorTy >::count | ( | const StringRef & | Key | ) | const [inline] |
| bool llvm::StringMap< ValueTy, AllocatorTy >::insert | ( | MapEntryTy * | KeyValue | ) | [inline] |
insert - Insert the specified key/value pair into the map. If the key already exists in the map, return false and ignore the request, otherwise insert it and return true.
Definition at line 317 of file StringMap.h.
| void llvm::StringMap< ValueTy, AllocatorTy >::clear | ( | ) | [inline] |
Definition at line 334 of file StringMap.h.
Referenced by llvm::StringMap< llvm::StringPool::PooledString >::operator=(), and llvm::StringMap< llvm::StringPool::PooledString >::~StringMap().
| StringMapEntry<ValueTy>& llvm::StringMap< ValueTy, AllocatorTy >::GetOrCreateValue | ( | const StringRef & | Key, | |
| InitTy | Val | |||
| ) | [inline] |
GetOrCreateValue - Look up the specified key in the table. If a value exists, return it. Otherwise, default construct a value, insert it, and return.
Definition at line 353 of file StringMap.h.
Referenced by llvm::StringMap< llvm::StringPool::PooledString >::GetOrCreateValue(), and llvm::StringMap< llvm::StringPool::PooledString >::operator[]().
| StringMapEntry<ValueTy>& llvm::StringMap< ValueTy, AllocatorTy >::GetOrCreateValue | ( | const StringRef & | Key | ) | [inline] |
Definition at line 376 of file StringMap.h.
| StringMapEntry<ValueTy>& llvm::StringMap< ValueTy, AllocatorTy >::GetOrCreateValue | ( | const char * | KeyStart, | |
| const char * | KeyEnd, | |||
| InitTy | Val | |||
| ) | [inline] |
Definition at line 381 of file StringMap.h.
| StringMapEntry<ValueTy>& llvm::StringMap< ValueTy, AllocatorTy >::GetOrCreateValue | ( | const char * | KeyStart, | |
| const char * | KeyEnd | |||
| ) | [inline] |
Definition at line 387 of file StringMap.h.
| void llvm::StringMap< ValueTy, AllocatorTy >::remove | ( | MapEntryTy * | KeyValue | ) | [inline] |
remove - Remove the specified key/value pair from the map, but do not erase it. This aborts if the key is not in the map.
Definition at line 394 of file StringMap.h.
| void llvm::StringMap< ValueTy, AllocatorTy >::erase | ( | iterator | I | ) | [inline] |
Definition at line 398 of file StringMap.h.
Referenced by llvm::StringMap< llvm::StringPool::PooledString >::erase().
| bool llvm::StringMap< ValueTy, AllocatorTy >::erase | ( | const StringRef & | Key | ) | [inline] |
Definition at line 404 of file StringMap.h.