Lines Matching refs:impl
42 static bool Empty(Impl* impl) { return impl->empty(); } in Empty() argument
43 static size_t Size(Impl* impl) { return impl->size(); } in Size() argument
45 static Iterator Begin(Impl* impl) { return impl->begin(); } in Begin() argument
46 static Iterator End(Impl* impl) { return impl->end(); } in End() argument
49 static PersistentContainerValue Set(Impl* impl, K key, in Set() argument
51 std::pair<Iterator, bool> res = impl->insert(std::make_pair(key, value)); in Set()
59 static PersistentContainerValue Get(Impl* impl, K key) { in Get() argument
60 Iterator it = impl->find(key); in Get()
61 if (it == impl->end()) return kPersistentContainerNotFound; in Get()
64 static PersistentContainerValue Remove(Impl* impl, K key) { in Remove() argument
65 Iterator it = impl->find(key); in Remove()
66 if (it == impl->end()) return kPersistentContainerNotFound; in Remove()
68 impl->erase(it); in Remove()
203 typename Traits::Impl impl; in Clear() local
204 Traits::Swap(impl_, impl); in Clear()
205 for (It i = Traits::Begin(&impl); i != Traits::End(&impl); ++i) { in Clear()
373 static void Append(Impl* impl, PersistentContainerValue value) { in Append() argument
374 impl->push_back(value); in Append()
376 static bool IsEmpty(const Impl* impl) { in IsEmpty() argument
377 return impl->empty(); in IsEmpty()
379 static size_t Size(const Impl* impl) { in Size() argument
380 return impl->size(); in Size()
382 static PersistentContainerValue Get(const Impl* impl, size_t i) { in Get() argument
383 return (i < impl->size()) ? impl->at(i) : kPersistentContainerNotFound; in Get()
385 static void ReserveCapacity(Impl* impl, size_t capacity) { in ReserveCapacity() argument
386 impl->reserve(capacity); in ReserveCapacity()
388 static void Clear(Impl* impl) { in Clear() argument
389 impl->clear(); in Clear()