Lines Matching defs:list
11 #include <list>
99 List list; // Which entry was returned to the user.
113 void Insert(CacheRankingsBlock* node, bool modified, List list);
115 // Removes a given entry from the LRU list. If |strict| is true, this method
118 // to be removed from the list (basically without control of the code that is
120 void Remove(CacheRankingsBlock* node, List list, bool strict);
123 void UpdateRank(CacheRankingsBlock* node, bool modified, List list);
125 // Iterates through the list.
126 CacheRankingsBlock* GetNext(CacheRankingsBlock* node, List list);
127 CacheRankingsBlock* GetPrev(CacheRankingsBlock* node, List list);
138 // node comes from the LRU list.
147 typedef std::list<IteratorPair> IteratorList;
151 void WriteHead(List list);
152 void WriteTail(List list);
162 // Finishes a list modification after a crash.
172 // provided |list| to reflect the list where this node is actually stored.
174 CacheRankingsBlock* next, List* list);
179 // Peforms a simple check of the list, and returns the number of items or an
181 int CheckList(List list);
183 // Returns true if addr is the head or tail of any list. When there is a
184 // match |list| will contain the list number for |addr|.
185 bool IsHead(CacheAddr addr, List* list) const;
186 bool IsTail(CacheAddr addr, List* list) const;
194 // Keeps track of the number of entries on a list.
195 void IncrementCounter(List list);
196 void DecrementCounter(List list);