LLVM API Documentation
#include <ImmutableMap.h>
Public Types | |
| typedef ValInfo::value_type | value_type |
| typedef ValInfo::value_type_ref | value_type_ref |
| typedef ValInfo::key_type | key_type |
| typedef ValInfo::key_type_ref | key_type_ref |
| typedef ValInfo::data_type | data_type |
| typedef ValInfo::data_type_ref | data_type_ref |
| typedef ImutAVLTree< ValInfo > | TreeTy |
Public Member Functions | |
| ImmutableMap (const TreeTy *R) | |
| bool | contains (key_type_ref K) const |
| bool | operator== (ImmutableMap RHS) const |
| bool | operator!= (ImmutableMap RHS) const |
| TreeTy * | getRoot () const |
| 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 |
| unsigned | getHeight () const |
| void | Profile (FoldingSetNodeID &ID) const |
Static Public Member Functions | |
| static void | Profile (FoldingSetNodeID &ID, const ImmutableMap &M) |
Friends | |
| class | Factory |
Classes | |
| struct | CBWrapper |
| struct | CBWrapperRef |
| class | Factory |
| class | iterator |
Definition at line 61 of file ImmutableMap.h.
| typedef ValInfo::value_type llvm::ImmutableMap< KeyT, ValT, ValInfo >::value_type |
Definition at line 63 of file ImmutableMap.h.
| typedef ValInfo::value_type_ref llvm::ImmutableMap< KeyT, ValT, ValInfo >::value_type_ref |
Definition at line 64 of file ImmutableMap.h.
| typedef ValInfo::key_type llvm::ImmutableMap< KeyT, ValT, ValInfo >::key_type |
Definition at line 65 of file ImmutableMap.h.
| typedef ValInfo::key_type_ref llvm::ImmutableMap< KeyT, ValT, ValInfo >::key_type_ref |
Definition at line 66 of file ImmutableMap.h.
| typedef ValInfo::data_type llvm::ImmutableMap< KeyT, ValT, ValInfo >::data_type |
Definition at line 67 of file ImmutableMap.h.
| typedef ValInfo::data_type_ref llvm::ImmutableMap< KeyT, ValT, ValInfo >::data_type_ref |
Definition at line 68 of file ImmutableMap.h.
| typedef ImutAVLTree<ValInfo> llvm::ImmutableMap< KeyT, ValT, ValInfo >::TreeTy |
Definition at line 69 of file ImmutableMap.h.
| llvm::ImmutableMap< KeyT, ValT, ValInfo >::ImmutableMap | ( | const TreeTy * | R | ) | [inline, explicit] |
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 79 of file ImmutableMap.h.
Referenced by llvm::ImmutableMap< KeyT, ValT, ValInfo >::Factory::Add(), llvm::ImmutableMap< KeyT, ValT, ValInfo >::Factory::GetEmptyMap(), and llvm::ImmutableMap< KeyT, ValT, ValInfo >::Factory::Remove().
| bool llvm::ImmutableMap< KeyT, ValT, ValInfo >::contains | ( | key_type_ref | K | ) | const [inline] |
| bool llvm::ImmutableMap< KeyT, ValT, ValInfo >::operator== | ( | ImmutableMap< KeyT, ValT, ValInfo > | RHS | ) | const [inline] |
Definition at line 113 of file ImmutableMap.h.
References llvm::ImmutableMap< KeyT, ValT, ValInfo >::Root, and Root.
| bool llvm::ImmutableMap< KeyT, ValT, ValInfo >::operator!= | ( | ImmutableMap< KeyT, ValT, ValInfo > | RHS | ) | const [inline] |
Definition at line 117 of file ImmutableMap.h.
References llvm::ImmutableMap< KeyT, ValT, ValInfo >::Root, and Root.
| TreeTy* llvm::ImmutableMap< KeyT, ValT, ValInfo >::getRoot | ( | ) | const [inline] |
| bool llvm::ImmutableMap< KeyT, ValT, ValInfo >::isEmpty | ( | ) | const [inline] |
| void llvm::ImmutableMap< KeyT, ValT, ValInfo >::foreach | ( | Callback & | C | ) | [inline] |
| void llvm::ImmutableMap< KeyT, ValT, ValInfo >::foreach | ( | ) | [inline] |
| void llvm::ImmutableMap< KeyT, ValT, ValInfo >::verify | ( | ) | const [inline] |
| iterator llvm::ImmutableMap< KeyT, ValT, ValInfo >::begin | ( | ) | const [inline] |
| iterator llvm::ImmutableMap< KeyT, ValT, ValInfo >::end | ( | ) | const [inline] |
Definition at line 195 of file ImmutableMap.h.
| data_type* llvm::ImmutableMap< KeyT, ValT, ValInfo >::lookup | ( | key_type_ref | K | ) | const [inline] |
Definition at line 197 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::getValue(), Root, and T.
| unsigned llvm::ImmutableMap< KeyT, ValT, ValInfo >::getHeight | ( | ) | const [inline] |
| static void llvm::ImmutableMap< KeyT, ValT, ValInfo >::Profile | ( | FoldingSetNodeID & | ID, | |
| const ImmutableMap< KeyT, ValT, ValInfo > & | M | |||
| ) | [inline, static] |
Definition at line 212 of file ImmutableMap.h.
References llvm::FoldingSetNodeID::AddPointer(), and llvm::ImmutableMap< KeyT, ValT, ValInfo >::Root.
Referenced by llvm::ImmutableMap< KeyT, ValT, ValInfo >::Profile().
| void llvm::ImmutableMap< KeyT, ValT, ValInfo >::Profile | ( | FoldingSetNodeID & | ID | ) | const [inline] |
Definition at line 216 of file ImmutableMap.h.
References llvm::ImmutableMap< KeyT, ValT, ValInfo >::Profile().
friend class Factory [friend] |
Definition at line 106 of file ImmutableMap.h.