Lines Matching defs:impl

50   static bool Empty(Impl* impl) { return impl->empty(); }
51 static size_t Size(Impl* impl) { return impl->size(); }
53 static Iterator Begin(Impl* impl) { return impl->begin(); }
54 static Iterator End(Impl* impl) { return impl->end(); }
57 static PersistentContainerValue Set(Impl* impl, K key,
59 std::pair<Iterator, bool> res = impl->insert(std::make_pair(key, value));
67 static PersistentContainerValue Get(Impl* impl, K key) {
68 Iterator it = impl->find(key);
69 if (it == impl->end()) return kPersistentContainerNotFound;
72 static PersistentContainerValue Remove(Impl* impl, K key) {
73 Iterator it = impl->find(key);
74 if (it == impl->end()) return kPersistentContainerNotFound;
76 impl->erase(it);
223 typename Traits::Impl impl;
224 Traits::Swap(impl_, impl);
225 for (It i = Traits::Begin(&impl); i != Traits::End(&impl); ++i) {
298 typename Traits::Impl* impl() { return &impl_; }
406 Traits::Set(this->impl(), key, this->ClearAndLeak(persistent));
482 Traits::Set(this->impl(), key, this->ClearAndLeak(persistent));
550 static void Append(Impl* impl, PersistentContainerValue value) {
551 impl->push_back(value);
553 static bool IsEmpty(const Impl* impl) {
554 return impl->empty();
556 static size_t Size(const Impl* impl) {
557 return impl->size();
559 static PersistentContainerValue Get(const Impl* impl, size_t i) {
560 return (i < impl->size()) ? impl->at(i) : kPersistentContainerNotFound;
562 static void ReserveCapacity(Impl* impl, size_t capacity) {
563 impl->reserve(capacity);
565 static void Clear(Impl* impl) {
566 impl->clear();