Move entire contents of an external eviction order containing entries whose size is part of this Evictor to the front of its eviction order.
| 1879 | // Move entire contents of an external eviction order containing entries whose size is part of |
| 1880 | // this Evictor to the front of its eviction order. |
| 1881 | void moveIn(EvictionOrderT& otherOrder) { |
| 1882 | for (auto& e : otherOrder) { |
| 1883 | ASSERT(!e.ownedByEvictor); |
| 1884 | e.ownedByEvictor = true; |
| 1885 | --movedOutCount; |
| 1886 | } |
| 1887 | evictionOrder.splice(evictionOrder.begin(), otherOrder); |
| 1888 | } |
| 1889 | |
| 1890 | // Add a new item to the back of the eviction order |
| 1891 | void addNew(Entry& e) { |
no test coverage detected