LLVM API Documentation
#include <ImmutableSet.h>
Definition at line 1114 of file ImmutableSet.h.
typedef TreeTy::Factory llvm::ImmutableSetRef< ValT, ValInfo >::FactoryTy |
Definition at line 1119 of file ImmutableSet.h.
typedef ImutAVLTree<ValInfo> llvm::ImmutableSetRef< ValT, ValInfo >::TreeTy |
Definition at line 1118 of file ImmutableSet.h.
typedef ValInfo::value_type llvm::ImmutableSetRef< ValT, ValInfo >::value_type |
Definition at line 1116 of file ImmutableSet.h.
typedef ValInfo::value_type_ref llvm::ImmutableSetRef< ValT, ValInfo >::value_type_ref |
Definition at line 1117 of file ImmutableSet.h.
llvm::ImmutableSetRef< ValT, ValInfo >::ImmutableSetRef | ( | TreeTy * | R, |
FactoryTy * | F | ||
) | [inline, explicit] |
Constructs a set from a pointer to a tree root. In general one should use a Factory object to create sets instead of directly invoking the constructor, but there are cases where make this constructor public is useful.
Definition at line 1130 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::retain().
Referenced by llvm::ImmutableSetRef< ValT, ValInfo >::add(), llvm::ImmutableSetRef< ValT, ValInfo >::getEmptySet(), and llvm::ImmutableSetRef< ValT, ValInfo >::remove().
llvm::ImmutableSetRef< ValT, ValInfo >::ImmutableSetRef | ( | const ImmutableSetRef< ValT, ValInfo > & | X | ) | [inline] |
Definition at line 1135 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::retain().
llvm::ImmutableSetRef< ValT, ValInfo >::~ImmutableSetRef | ( | ) | [inline] |
Definition at line 1149 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::release().
ImmutableSetRef llvm::ImmutableSetRef< ValT, ValInfo >::add | ( | value_type_ref | V | ) | [inline] |
Definition at line 1157 of file ImmutableSet.h.
References llvm::ImutAVLFactory< ImutInfo >::add(), and llvm::ImmutableSetRef< ValT, ValInfo >::ImmutableSetRef().
ImmutableSet<ValT> llvm::ImmutableSetRef< ValT, ValInfo >::asImmutableSet | ( | bool | canonicalize = true | ) | const [inline] |
Definition at line 1170 of file ImmutableSet.h.
References llvm::ImutAVLFactory< ImutInfo >::getCanonicalTree().
iterator llvm::ImmutableSetRef< ValT, ValInfo >::begin | ( | ) | const [inline] |
Definition at line 1214 of file ImmutableSet.h.
bool llvm::ImmutableSetRef< ValT, ValInfo >::contains | ( | value_type_ref | V | ) | const [inline] |
Returns true if the set contains the specified value.
Definition at line 1166 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::contains().
iterator llvm::ImmutableSetRef< ValT, ValInfo >::end | ( | ) | const [inline] |
Definition at line 1215 of file ImmutableSet.h.
static ImmutableSetRef llvm::ImmutableSetRef< ValT, ValInfo >::getEmptySet | ( | FactoryTy * | F | ) | [inline, static] |
Definition at line 1153 of file ImmutableSet.h.
References llvm::ImmutableSetRef< ValT, ValInfo >::ImmutableSetRef().
unsigned llvm::ImmutableSetRef< ValT, ValInfo >::getHeight | ( | ) | const [inline] |
Definition at line 1221 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::getHeight().
Referenced by llvm::ImmutableSetRef< ValT, ValInfo >::isSingleton().
TreeTy* llvm::ImmutableSetRef< ValT, ValInfo >::getRootWithoutRetain | ( | ) | const [inline] |
Definition at line 1175 of file ImmutableSet.h.
bool llvm::ImmutableSetRef< ValT, ValInfo >::isEmpty | ( | ) | const [inline] |
isEmpty - Return true if the set contains no elements.
Definition at line 1188 of file ImmutableSet.h.
bool llvm::ImmutableSetRef< ValT, ValInfo >::isSingleton | ( | ) | const [inline] |
isSingleton - Return true if the set contains exactly one element. This method runs in constant time.
Definition at line 1192 of file ImmutableSet.h.
References llvm::ImmutableSetRef< ValT, ValInfo >::getHeight().
bool llvm::ImmutableSetRef< ValT, ValInfo >::operator!= | ( | const ImmutableSetRef< ValT, ValInfo > & | RHS | ) | const [inline] |
Definition at line 1183 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::isNotEqual().
ImmutableSetRef& llvm::ImmutableSetRef< ValT, ValInfo >::operator= | ( | const ImmutableSetRef< ValT, ValInfo > & | X | ) | [inline] |
Definition at line 1140 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::release(), and llvm::ImutAVLTree< ImutInfo >::retain().
bool llvm::ImmutableSetRef< ValT, ValInfo >::operator== | ( | const ImmutableSetRef< ValT, ValInfo > & | RHS | ) | const [inline] |
Definition at line 1179 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::isEqual().
static void llvm::ImmutableSetRef< ValT, ValInfo >::Profile | ( | FoldingSetNodeID & | ID, |
const ImmutableSetRef< ValT, ValInfo > & | S | ||
) | [inline, static] |
Definition at line 1223 of file ImmutableSet.h.
References llvm::FoldingSetNodeID::AddPointer().
Referenced by llvm::ImmutableSetRef< ValT, ValInfo >::Profile().
void llvm::ImmutableSetRef< ValT, ValInfo >::Profile | ( | FoldingSetNodeID & | ID | ) | const [inline] |
Definition at line 1227 of file ImmutableSet.h.
References llvm::ImmutableSetRef< ValT, ValInfo >::Profile().
ImmutableSetRef llvm::ImmutableSetRef< ValT, ValInfo >::remove | ( | value_type_ref | V | ) | [inline] |
Definition at line 1161 of file ImmutableSet.h.
References llvm::ImmutableSetRef< ValT, ValInfo >::ImmutableSetRef(), and llvm::ImutAVLFactory< ImutInfo >::remove().
void llvm::ImmutableSetRef< ValT, ValInfo >::validateTree | ( | ) | const [inline] |
Definition at line 1235 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::validateTree().