Home | History | Annotate | Download | only in core

Lines Matching refs:rec

70     struct Rec {
73 Rec() {}
74 virtual ~Rec() {}
83 static const Key& GetKey(const Rec& rec) { return rec.getKey(); }
86 Rec* fNext;
87 Rec* fPrev;
99 typedef const Rec* ID;
103 * specified Key, and will pass in the corresponding Rec, along with a caller-specified
104 * context. The function can read the data in Rec, and copy whatever it likes into context
107 * The return value determines what the cache will do with the Rec. If the function returns
108 * true, then the Rec is considered "valid". If false is returned, the Rec will be considered
111 typedef bool (*FindVisitor)(const Rec&, void* context);
130 * true : Rec is valid
131 * false : Rec is "stale" -- the cache will purge it.
134 static void Add(Rec*);
192 * true : Rec is valid
193 * false : Rec is "stale" -- the cache will purge it.
196 void add(Rec*);
236 Rec* fHead;
237 Rec* fTail;
257 void moveToHead(Rec*);
258 void addToHead(Rec*);
259 void detach(Rec*);
260 void remove(Rec*);