LLVM
8.0.1
|
#include "llvm/ADT/ImmutableMap.h"
Classes | |
class | Factory |
class | iterator |
Public Types | |
using | value_type = typename ValInfo::value_type |
using | value_type_ref = typename ValInfo::value_type_ref |
using | key_type = typename ValInfo::key_type |
using | key_type_ref = typename ValInfo::key_type_ref |
using | data_type = typename ValInfo::data_type |
using | data_type_ref = typename ValInfo::data_type_ref |
using | TreeTy = ImutAVLTree< ValInfo > |
Public Member Functions | |
ImmutableMap (const TreeTy *R) | |
Constructs a map from a pointer to a tree root. More... | |
ImmutableMap (const ImmutableMap &X) | |
~ImmutableMap () | |
ImmutableMap & | operator= (const ImmutableMap &X) |
bool | contains (key_type_ref K) const |
bool | operator== (const ImmutableMap &RHS) const |
bool | operator!= (const ImmutableMap &RHS) const |
TreeTy * | getRoot () const |
TreeTy * | getRootWithoutRetain () const |
void | manualRetain () |
void | manualRelease () |
bool | isEmpty () const |
template<typename Callback > | |
void | foreach (Callback &C) |
template<typename Callback > | |
void | foreach () |
void | verify () const |
iterator | begin () const |
iterator | end () const |
data_type * | lookup (key_type_ref K) const |
value_type * | getMaxElement () const |
getMaxElement - Returns the <key,value> pair in the ImmutableMap for which key is the highest in the ordering of keys in the map. More... | |
unsigned | getHeight () const |
void | Profile (FoldingSetNodeID &ID) const |
Static Public Member Functions | |
static void | Profile (FoldingSetNodeID &ID, const ImmutableMap &M) |
Protected Attributes | |
TreeTy * | Root |
Definition at line 63 of file ImmutableMap.h.
using llvm::ImmutableMap< KeyT, ValT, ValInfo >::data_type = typename ValInfo::data_type |
Definition at line 69 of file ImmutableMap.h.
using llvm::ImmutableMap< KeyT, ValT, ValInfo >::data_type_ref = typename ValInfo::data_type_ref |
Definition at line 70 of file ImmutableMap.h.
using llvm::ImmutableMap< KeyT, ValT, ValInfo >::key_type = typename ValInfo::key_type |
Definition at line 67 of file ImmutableMap.h.
using llvm::ImmutableMap< KeyT, ValT, ValInfo >::key_type_ref = typename ValInfo::key_type_ref |
Definition at line 68 of file ImmutableMap.h.
using llvm::ImmutableMap< KeyT, ValT, ValInfo >::TreeTy = ImutAVLTree<ValInfo> |
Definition at line 71 of file ImmutableMap.h.
using llvm::ImmutableMap< KeyT, ValT, ValInfo >::value_type = typename ValInfo::value_type |
Definition at line 65 of file ImmutableMap.h.
using llvm::ImmutableMap< KeyT, ValT, ValInfo >::value_type_ref = typename ValInfo::value_type_ref |
Definition at line 66 of file ImmutableMap.h.
|
inlineexplicit |
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.
Definition at line 81 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::retain().
|
inline |
Definition at line 85 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::retain().
|
inline |
Definition at line 89 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::release().
|
inline |
Definition at line 221 of file ImmutableMap.h.
|
inline |
Definition at line 133 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::contains().
|
inline |
Definition at line 222 of file ImmutableMap.h.
|
inline |
Definition at line 185 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::foreach().
|
inline |
Definition at line 193 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::foreach().
|
inline |
Definition at line 244 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::getHeight().
|
inline |
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.
Definition at line 236 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::getMaxElement(), and llvm::ImutAVLTree< ImutInfo >::getValue().
|
inline |
Definition at line 145 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::retain().
|
inline |
Definition at line 150 of file ImmutableMap.h.
|
inline |
Definition at line 160 of file ImmutableMap.h.
References C.
|
inline |
Definition at line 224 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::find(), and llvm::ImutAVLTree< ImutInfo >::getValue().
|
inline |
Definition at line 156 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::release().
|
inline |
Definition at line 152 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::retain().
|
inline |
Definition at line 141 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::isNotEqual(), and llvm::ImmutableMap< KeyT, ValT, ValInfo >::Root.
|
inline |
Definition at line 93 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::release(), llvm::ImutAVLTree< ImutInfo >::retain(), and llvm::ImmutableMap< KeyT, ValT, ValInfo >::Root.
|
inline |
Definition at line 137 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::isEqual(), and llvm::ImmutableMap< KeyT, ValT, ValInfo >::Root.
|
inlinestatic |
Definition at line 246 of file ImmutableMap.h.
References llvm::FoldingSetNodeID::AddPointer(), and llvm::ImmutableMap< KeyT, ValT, ValInfo >::Root.
|
inline |
Definition at line 250 of file ImmutableMap.h.
References llvm::ImutKeyValueInfo< T, S >::Profile().
|
inline |
Definition at line 204 of file ImmutableMap.h.
|
protected |
Definition at line 74 of file ImmutableMap.h.
Referenced by llvm::ImmutableMap< KeyT, ValT, ValInfo >::Factory::add(), llvm::ImmutableMap< KeyT, ValT, ValInfo >::operator!=(), llvm::ImmutableMap< KeyT, ValT, ValInfo >::operator=(), llvm::ImmutableMap< KeyT, ValT, ValInfo >::operator==(), and llvm::ImmutableMap< KeyT, ValT, ValInfo >::Profile().