Home | History | Annotate | Download | only in common

Lines Matching defs:cell

144     const Cell *old_cell = FindCell(key);
149 Cell *new_cell = new Cell(key, value, head_);
157 const Cell *cell = FindCell(key);
158 if (cell == nullptr) {
161 return (cell == nullptr) ? nullptr : cell->value();
170 // Cell for the singly-linked list underlying this ComponentRegistry. Each
171 // cell contains a key, the value for that key, as well as a pointer to the
172 // next Cell from the list.
173 class Cell {
175 // Constructs a new Cell.
176 Cell(const char *key, T *value, Cell *next)
181 Cell *next() const { return next_; }
186 Cell *const next_;
189 // Finds Cell for indicated key in the singly-linked list pointed to by head_.
190 // Returns pointer to that first Cell with that key, or nullptr if no such
191 // Cell (i.e., unknown key).
194 const Cell *FindCell(const char *key) const {
195 Cell *c = head_;
205 // Pointer to the first Cell from the underlying list of (key, value) pairs.
206 Cell *head_;