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);
219 typename Traits::Impl impl;
220 Traits::Swap(impl_, impl);
221 for (It i = Traits::Begin(&impl); i != Traits::End(&impl); ++i) {
293 typename Traits::Impl* impl() { return &impl_; }
400 Traits::Set(this->impl(), key, this->ClearAndLeak(persistent));
476 Traits::Set(this->impl(), key, this->ClearAndLeak(persistent));
545 static void Append(Impl* impl, PersistentContainerValue value) {
546 impl->push_back(value);
548 static bool IsEmpty(const Impl* impl) {
549 return impl->empty();
551 static size_t Size(const Impl* impl) {
552 return impl->size();
554 static PersistentContainerValue Get(const Impl* impl, size_t i) {
555 return (i < impl->size()) ? impl->at(i) : kPersistentContainerNotFound;
557 static void ReserveCapacity(Impl* impl, size_t capacity) {
558 impl->reserve(capacity);
560 static void Clear(Impl* impl) {
561 impl->clear();