Lines Matching refs:Rec
60 struct Rec {
63 Rec() {}
64 virtual ~Rec() {}
73 static const Key& GetKey(const Rec& rec) { return rec.getKey(); }
76 Rec* fNext;
77 Rec* fPrev;
82 typedef const Rec* ID;
86 * specified Key, and will pass in the corresponding Rec, along with a caller-specified
87 * context. The function can read the data in Rec, and copy whatever it likes into context
90 * The return value determines what the cache will do with the Rec. If the function returns
91 * true, then the Rec is considered "valid". If false is returned, the Rec will be considered
94 typedef bool (*VisitorProc)(const Rec&, void* context);
113 * true : Rec is valid
114 * false : Rec is "stale" -- the cache will purge it.
117 static void Add(Rec*);
170 * true : Rec is valid
171 * false : Rec is "stale" -- the cache will purge it.
174 void add(Rec*);
206 Rec* fHead;
207 Rec* fTail;
224 void moveToHead(Rec*);
225 void addToHead(Rec*);
226 void detach(Rec*);
227 void remove(Rec*);