mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-25 20:14:26 +00:00
Add constructors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95212 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
beb42691b1
commit
1c8bd7dc0a
@ -92,6 +92,9 @@ class ImutIntervalAVLFactory : public ImutAVLFactory<ImutInfo> {
|
|||||||
typedef typename ImutInfo::data_type_ref data_type_ref;
|
typedef typename ImutInfo::data_type_ref data_type_ref;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
ImutIntervalAVLFactory(BumpPtrAllocator &Alloc)
|
||||||
|
: ImutAVLFactory<ImutInfo>(Alloc) {}
|
||||||
|
|
||||||
TreeTy *Add(TreeTy *T, value_type_ref V) {
|
TreeTy *Add(TreeTy *T, value_type_ref V) {
|
||||||
T = Add_internal(V,T);
|
T = Add_internal(V,T);
|
||||||
MarkImmutable(T);
|
MarkImmutable(T);
|
||||||
@ -202,6 +205,8 @@ public:
|
|||||||
ImutIntervalAVLFactory<ImutIntervalInfo<ValT> > F;
|
ImutIntervalAVLFactory<ImutIntervalInfo<ValT> > F;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Factory(BumpPtrAllocator& Alloc) : F(Alloc) {}
|
||||||
|
|
||||||
ImmutableIntervalMap GetEmptyMap() {
|
ImmutableIntervalMap GetEmptyMap() {
|
||||||
return ImmutableIntervalMap(F.GetEmptyTree());
|
return ImmutableIntervalMap(F.GetEmptyTree());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user