class ImmutableMap
Declaration
template <typename KeyT,
typename ValT,
typename ValInfo = ImutKeyValueInfo<KeyT, ValT>>
class ImmutableMap { /* full declaration omitted */ };
Declared at: llvm/include/llvm/ADT/ImmutableMap.h:63
Templates
- KeyT
- ValT
- ValInfo = ImutKeyValueInfo<KeyT, ValT>
Member Variables
- protected IntrusiveRefCntPtr<llvm::ImmutableMap::TreeTy> Root
Method Overview
- public ImmutableMap<KeyT, ValT, ValInfo>(const llvm::ImmutableMap::TreeTy * R)
- public static inline void Profile(llvm::FoldingSetNodeID & ID, const ImmutableMap<KeyT, ValT, ValInfo> & M)
- public inline void Profile(llvm::FoldingSetNodeID & ID) const
- public llvm::ImmutableMap::iterator begin() const
- public bool contains(llvm::ImmutableMap::key_type_ref K) const
- public llvm::ImmutableMap::iterator end() const
- public unsigned int getHeight() const
- public llvm::ImmutableMap::value_type * getMaxElement() const
- public llvm::ImmutableMap::TreeTy * getRoot() const
- public llvm::ImmutableMap::TreeTy * getRootWithoutRetain() const
- public bool isEmpty() const
- public llvm::ImmutableMap::data_type * lookup(llvm::ImmutableMap::key_type_ref K) const
- public void manualRelease()
- public void manualRetain()
- public void verify() const
Methods
¶ImmutableMap<KeyT, ValT, ValInfo>(
const llvm::ImmutableMap::TreeTy* R)
ImmutableMap<KeyT, ValT, ValInfo>(
const llvm::ImmutableMap::TreeTy* R)
Description
Constructs a map from a pointer to a tree root. In general one should use a Factory object to create maps instead of directly invoking the constructor, but there are cases where make this constructor public is useful.
Declared at: llvm/include/llvm/ADT/ImmutableMap.h:81
Parameters
- const llvm::ImmutableMap::TreeTy* R
¶static inline void Profile(
llvm::FoldingSetNodeID& ID,
const ImmutableMap<KeyT, ValT, ValInfo>& M)
static inline void Profile(
llvm::FoldingSetNodeID& ID,
const ImmutableMap<KeyT, ValT, ValInfo>& M)
Declared at: llvm/include/llvm/ADT/ImmutableMap.h:191
Parameters
- llvm::FoldingSetNodeID& ID
- const ImmutableMap<KeyT, ValT, ValInfo>& M
¶inline void Profile(
llvm::FoldingSetNodeID& ID) const
inline void Profile(
llvm::FoldingSetNodeID& ID) const
Declared at: llvm/include/llvm/ADT/ImmutableMap.h:195
Parameters
¶llvm::ImmutableMap::iterator begin() const
llvm::ImmutableMap::iterator begin() const
Declared at: llvm/include/llvm/ADT/ImmutableMap.h:166
¶bool contains(
llvm::ImmutableMap::key_type_ref K) const
bool contains(
llvm::ImmutableMap::key_type_ref K) const
Declared at: llvm/include/llvm/ADT/ImmutableMap.h:114
Parameters
- llvm::ImmutableMap::key_type_ref K
¶llvm::ImmutableMap::iterator end() const
llvm::ImmutableMap::iterator end() const
Declared at: llvm/include/llvm/ADT/ImmutableMap.h:167
¶unsigned int getHeight() const
unsigned int getHeight() const
Declared at: llvm/include/llvm/ADT/ImmutableMap.h:189
¶llvm::ImmutableMap::value_type* getMaxElement()
const
llvm::ImmutableMap::value_type* getMaxElement()
const
Description
getMaxElement - Returns the <key ,value> pair in the ImmutableMap for which key is the highest in the ordering of keys in the map. This method returns NULL if the map is empty.
Declared at: llvm/include/llvm/ADT/ImmutableMap.h:181
¶llvm::ImmutableMap::TreeTy* getRoot() const
llvm::ImmutableMap::TreeTy* getRoot() const
Declared at: llvm/include/llvm/ADT/ImmutableMap.h:127
¶llvm::ImmutableMap::TreeTy* getRootWithoutRetain()
const
llvm::ImmutableMap::TreeTy* getRootWithoutRetain()
const
Declared at: llvm/include/llvm/ADT/ImmutableMap.h:132
¶bool isEmpty() const
bool isEmpty() const
Declared at: llvm/include/llvm/ADT/ImmutableMap.h:142
¶llvm::ImmutableMap::data_type* lookup(
llvm::ImmutableMap::key_type_ref K) const
llvm::ImmutableMap::data_type* lookup(
llvm::ImmutableMap::key_type_ref K) const
Declared at: llvm/include/llvm/ADT/ImmutableMap.h:169
Parameters
- llvm::ImmutableMap::key_type_ref K
¶void manualRelease()
void manualRelease()
Declared at: llvm/include/llvm/ADT/ImmutableMap.h:138
¶void manualRetain()
void manualRetain()
Declared at: llvm/include/llvm/ADT/ImmutableMap.h:134
¶void verify() const
void verify() const
Declared at: llvm/include/llvm/ADT/ImmutableMap.h:149