Lines Matching refs:Factory
99 class Factory {
100 typename TreeTy::Factory F;
104 Factory(bool canonicalize = true) : Canonicalize(canonicalize) {} in Canonicalize()
106 Factory(BumpPtrAllocator &Alloc, bool canonicalize = true)
121 typename TreeTy::Factory *getTreeFactory() const { in getTreeFactory()
122 return const_cast<typename TreeTy::Factory *>(&F); in getTreeFactory()
126 Factory(const Factory& RHS) = delete;
127 void operator=(const Factory& RHS) = delete;
261 typedef typename TreeTy::Factory FactoryTy;
265 FactoryTy *Factory; variable
273 : Root(const_cast<TreeTy *>(R)), Factory(F) { in ImmutableMapRef()
280 typename ImmutableMap<KeyT, ValT>::Factory &F) in ImmutableMapRef()
282 Factory(F.getTreeFactory()) { in ImmutableMapRef()
286 ImmutableMapRef(const ImmutableMapRef &X) : Root(X.Root), Factory(X.Factory) { in ImmutableMapRef()
301 Factory = X.Factory;
324 TreeTy *NewT = Factory->add(Root, std::pair<key_type, data_type>(K, D)); in add()
325 return ImmutableMapRef(NewT, Factory); in add()
329 TreeTy *NewT = Factory->remove(Root, K); in remove()
330 return ImmutableMapRef(NewT, Factory); in remove()
338 return ImmutableMap<KeyT, ValT>(Factory->getCanonicalTree(Root)); in asImmutableMap()