LLVM API Documentation
#include <ImmutableMap.h>
Definition at line 272 of file ImmutableMap.h.
typedef ValInfo::data_type llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::data_type |
Definition at line 278 of file ImmutableMap.h.
typedef ValInfo::data_type_ref llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::data_type_ref |
Definition at line 279 of file ImmutableMap.h.
typedef TreeTy::Factory llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::FactoryTy |
Definition at line 281 of file ImmutableMap.h.
typedef ValInfo::key_type llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::key_type |
Definition at line 276 of file ImmutableMap.h.
typedef ValInfo::key_type_ref llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::key_type_ref |
Definition at line 277 of file ImmutableMap.h.
typedef ImutAVLTree<ValInfo> llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::TreeTy |
Definition at line 280 of file ImmutableMap.h.
typedef ValInfo::value_type llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::value_type |
Definition at line 274 of file ImmutableMap.h.
typedef ValInfo::value_type_ref llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::value_type_ref |
Definition at line 275 of file ImmutableMap.h.
llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::ImmutableMapRef | ( | const TreeTy * | R, |
FactoryTy * | F | ||
) | [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 292 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::retain(), and llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Root.
Referenced by llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::add(), llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::getEmptyMap(), and llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::remove().
llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::ImmutableMapRef | ( | const ImmutableMap< KeyT, ValT > & | X, |
typename ImmutableMap< KeyT, ValT >::Factory & | F | ||
) | [inline, explicit] |
Definition at line 298 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::retain(), and llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Root.
llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::ImmutableMapRef | ( | const ImmutableMapRef< KeyT, ValT, ValInfo > & | X | ) | [inline] |
Definition at line 305 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::retain(), and llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Root.
llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::~ImmutableMapRef | ( | ) | [inline] |
Definition at line 325 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::release(), and llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Root.
ImmutableMapRef llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::add | ( | key_type_ref | K, |
data_type_ref | D | ||
) | const [inline] |
ImmutableMap<KeyT, ValT> llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::asImmutableMap | ( | ) | const [inline] |
Definition at line 356 of file ImmutableMap.h.
References llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Factory, llvm::ImutAVLFactory< ImutInfo >::getCanonicalTree(), and llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Root.
iterator llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::begin | ( | ) | const [inline] |
Definition at line 403 of file ImmutableMap.h.
References llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Root.
bool llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::contains | ( | key_type_ref | K | ) | const [inline] |
Definition at line 352 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::contains(), and llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Root.
iterator llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::end | ( | ) | const [inline] |
Definition at line 404 of file ImmutableMap.h.
static ImmutableMapRef llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::getEmptyMap | ( | FactoryTy * | F | ) | [inline, static] |
Definition at line 330 of file ImmutableMap.h.
References llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::ImmutableMapRef().
unsigned llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::getHeight | ( | ) | const [inline] |
Definition at line 426 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::getHeight(), and llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Root.
value_type* llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::getMaxElement | ( | ) | const [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 418 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::getMaxElement(), llvm::ImutAVLTree< ImutInfo >::getValue(), and llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Root.
bool llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::isEmpty | ( | ) | const [inline] |
Definition at line 368 of file ImmutableMap.h.
References llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Root.
data_type* llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::lookup | ( | key_type_ref | K | ) | const [inline] |
Definition at line 406 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::find(), llvm::ImutAVLTree< ImutInfo >::getValue(), and llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Root.
void llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::manualRelease | ( | ) | [inline] |
Definition at line 338 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::release(), and llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Root.
void llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::manualRetain | ( | ) | [inline] |
Definition at line 334 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::retain(), and llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Root.
bool llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::operator!= | ( | const ImmutableMapRef< KeyT, ValT, ValInfo > & | RHS | ) | const [inline] |
Definition at line 364 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::isNotEqual(), and llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Root.
ImmutableMapRef& llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::operator= | ( | const ImmutableMapRef< KeyT, ValT, ValInfo > & | X | ) | [inline] |
Definition at line 311 of file ImmutableMap.h.
References llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Factory, llvm::ImutAVLTree< ImutInfo >::release(), llvm::ImutAVLTree< ImutInfo >::retain(), and llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Root.
bool llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::operator== | ( | const ImmutableMapRef< KeyT, ValT, ValInfo > & | RHS | ) | const [inline] |
Definition at line 360 of file ImmutableMap.h.
References llvm::ImutAVLTree< ImutInfo >::isEqual(), and llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Root.
static void llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Profile | ( | FoldingSetNodeID & | ID, |
const ImmutableMapRef< KeyT, ValT, ValInfo > & | M | ||
) | [inline, static] |
Definition at line 428 of file ImmutableMap.h.
References llvm::FoldingSetNodeID::AddPointer(), and llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Root.
Referenced by llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Profile().
void llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Profile | ( | FoldingSetNodeID & | ID | ) | const [inline] |
Definition at line 432 of file ImmutableMap.h.
References llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Profile().
ImmutableMapRef llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::remove | ( | key_type_ref | K | ) | const [inline] |
void llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::verify | ( | ) | const [inline] |
Definition at line 374 of file ImmutableMap.h.
References llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Root.
FactoryTy* llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Factory [protected] |
TreeTy* llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Root [protected] |
Definition at line 284 of file ImmutableMap.h.
Referenced by llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::add(), llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::asImmutableMap(), llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::begin(), llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::contains(), llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::getHeight(), llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::getMaxElement(), llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::ImmutableMapRef(), llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::isEmpty(), llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::lookup(), llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::manualRelease(), llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::manualRetain(), llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::operator!=(), llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::operator=(), llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::operator==(), llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::Profile(), llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::remove(), llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::verify(), and llvm::ImmutableMapRef< KeyT, ValT, ValInfo >::~ImmutableMapRef().