LLVM API Documentation
#include <ImmutableSet.h>
Classes | |
| class | Factory |
| class | iterator |
Public Types | |
| typedef ValInfo::value_type | value_type |
| typedef ValInfo::value_type_ref | value_type_ref |
| typedef ImutAVLTree< ValInfo > | TreeTy |
Public Member Functions | |
| ImmutableSet (TreeTy *R) | |
| ImmutableSet (const ImmutableSet &X) | |
| ImmutableSet & | operator= (const ImmutableSet &X) |
| ~ImmutableSet () | |
| bool | contains (value_type_ref V) const |
| Returns true if the set contains the specified value. | |
| bool | operator== (const ImmutableSet &RHS) const |
| bool | operator!= (const ImmutableSet &RHS) const |
| TreeTy * | getRoot () |
| TreeTy * | getRootWithoutRetain () const |
| bool | isEmpty () const |
| isEmpty - Return true if the set contains no elements. | |
| bool | isSingleton () const |
| template<typename Callback > | |
| void | foreach (Callback &C) |
| template<typename Callback > | |
| void | foreach () |
| iterator | begin () const |
| iterator | end () const |
| unsigned | getHeight () const |
| void | Profile (FoldingSetNodeID &ID) const |
| void | validateTree () const |
Static Public Member Functions | |
| static void | Profile (FoldingSetNodeID &ID, const ImmutableSet &S) |
Friends | |
| class | Factory |
Definition at line 931 of file ImmutableSet.h.
| typedef ImutAVLTree<ValInfo> llvm::ImmutableSet< ValT, ValInfo >::TreeTy |
Definition at line 935 of file ImmutableSet.h.
| typedef ValInfo::value_type llvm::ImmutableSet< ValT, ValInfo >::value_type |
Definition at line 933 of file ImmutableSet.h.
| typedef ValInfo::value_type_ref llvm::ImmutableSet< ValT, ValInfo >::value_type_ref |
Definition at line 934 of file ImmutableSet.h.
| llvm::ImmutableSet< ValT, ValInfo >::ImmutableSet | ( | TreeTy * | R | ) | [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 945 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::retain().
Referenced by llvm::ImmutableSet< ValT, ValInfo >::Factory::add(), llvm::ImmutableSet< ValT, ValInfo >::Factory::getEmptySet(), and llvm::ImmutableSet< ValT, ValInfo >::Factory::remove().
| llvm::ImmutableSet< ValT, ValInfo >::ImmutableSet | ( | const ImmutableSet< ValT, ValInfo > & | X | ) | [inline] |
Definition at line 948 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::retain().
| llvm::ImmutableSet< ValT, ValInfo >::~ImmutableSet | ( | ) | [inline] |
Definition at line 959 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::release().
| iterator llvm::ImmutableSet< ValT, ValInfo >::begin | ( | ) | const [inline] |
Definition at line 1080 of file ImmutableSet.h.
| bool llvm::ImmutableSet< ValT, ValInfo >::contains | ( | value_type_ref | V | ) | const [inline] |
Returns true if the set contains the specified value.
Definition at line 1017 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::contains().
| iterator llvm::ImmutableSet< ValT, ValInfo >::end | ( | ) | const [inline] |
Definition at line 1081 of file ImmutableSet.h.
| void llvm::ImmutableSet< ValT, ValInfo >::foreach | ( | Callback & | C | ) | [inline] |
Definition at line 1046 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::foreach().
| void llvm::ImmutableSet< ValT, ValInfo >::foreach | ( | ) | [inline] |
Definition at line 1049 of file ImmutableSet.h.
References llvm::CallingConv::C, and llvm::ImutAVLTree< ImutInfo >::foreach().
| unsigned llvm::ImmutableSet< ValT, ValInfo >::getHeight | ( | ) | const [inline] |
Definition at line 1087 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::getHeight().
Referenced by llvm::ImmutableSet< ValT, ValInfo >::isSingleton().
| TreeTy* llvm::ImmutableSet< ValT, ValInfo >::getRoot | ( | ) | [inline] |
Definition at line 1029 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::retain().
| TreeTy* llvm::ImmutableSet< ValT, ValInfo >::getRootWithoutRetain | ( | ) | const [inline] |
Definition at line 1034 of file ImmutableSet.h.
| bool llvm::ImmutableSet< ValT, ValInfo >::isEmpty | ( | ) | const [inline] |
isEmpty - Return true if the set contains no elements.
Definition at line 1039 of file ImmutableSet.h.
| bool llvm::ImmutableSet< ValT, ValInfo >::isSingleton | ( | ) | const [inline] |
isSingleton - Return true if the set contains exactly one element. This method runs in constant time.
Definition at line 1043 of file ImmutableSet.h.
References llvm::ImmutableSet< ValT, ValInfo >::getHeight().
| bool llvm::ImmutableSet< ValT, ValInfo >::operator!= | ( | const ImmutableSet< ValT, ValInfo > & | RHS | ) | const [inline] |
Definition at line 1025 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::isNotEqual().
| ImmutableSet& llvm::ImmutableSet< ValT, ValInfo >::operator= | ( | const ImmutableSet< ValT, ValInfo > & | X | ) | [inline] |
Definition at line 951 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::release(), and llvm::ImutAVLTree< ImutInfo >::retain().
| bool llvm::ImmutableSet< ValT, ValInfo >::operator== | ( | const ImmutableSet< ValT, ValInfo > & | RHS | ) | const [inline] |
Definition at line 1021 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::isEqual().
| static void llvm::ImmutableSet< ValT, ValInfo >::Profile | ( | FoldingSetNodeID & | ID, |
| const ImmutableSet< ValT, ValInfo > & | S | ||
| ) | [inline, static] |
Definition at line 1089 of file ImmutableSet.h.
References llvm::FoldingSetNodeID::AddPointer().
Referenced by llvm::ImmutableSet< ValT, ValInfo >::Profile().
| void llvm::ImmutableSet< ValT, ValInfo >::Profile | ( | FoldingSetNodeID & | ID | ) | const [inline] |
Definition at line 1093 of file ImmutableSet.h.
References llvm::ImmutableSet< ValT, ValInfo >::Profile().
| void llvm::ImmutableSet< ValT, ValInfo >::validateTree | ( | ) | const [inline] |
Definition at line 1101 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::validateTree().
friend class Factory [friend] |
Definition at line 1014 of file ImmutableSet.h.