Home | History | Annotate | Download | only in bpf_dsl

Lines Matching defs:Cell

21 // have a "head" and a "tail" element. A cell's head element contains
23 // null) pointer to another cell.
32 // function, which will allocate a new cons cell. Notably, cons lists
58 class Cell;
62 // List represents a (possibly null) pointer to a cons cell.
64 using List = std::shared_ptr<const Cell<T>>;
69 return std::make_shared<Cell<T>>(head, std::move(tail));
72 // Cell represents an individual "cons cell" within a cons list.
74 class Cell {
76 Cell(const T& head, List<T> tail) : head_(head), tail_(std::move(tail)) {}
78 // Head returns this cell's head element.
81 // Tail returns this cell's tail element.
88 DISALLOW_COPY_AND_ASSIGN(Cell);