Lines Matching refs:Node
25 struct Node { struct
26 Node() {} in Node() argument
27 explicit Node(const uint64_t key, const std::string& val = std::string()) in Node() argument
35 bool operator()(const Node& lhs, const Node& rhs) { in operator ()()
41 uint64_t operator()(const Node& node) { in operator ()()
46 static void ClearNode(Node /*node*/) {} in ClearNode()
48 HashTable<Node, Hash, Equal> map_;
56 struct Node : LRUElement<Node> { struct
57 Node() {} in Node() argument
58 explicit Node(const uint64_t key, const std::string& val = std::string()) in Node() argument
67 bool operator()(const Node* lhs, const Node* rhs) { in operator ()()
73 uint64_t operator()(const Node* node) { in operator ()()
78 static void ClearNode(Node* /*node*/) {} in ClearNode()
80 EvictableHashTable<Node, Hash, Equal> map_;
88 map_.Insert(Node(k, std::string(1000, k % 255))); in TEST_F()
93 Node val; in TEST_F()
95 assert(map_.Find(Node(k), &val, &rlock)); in TEST_F()
105 map_.Insert(Node(k, std::string(1000, k % 255))); in TEST_F()
116 assert(map_.Erase(Node(k), /*ret=*/nullptr)); in TEST_F()
122 Node val; in TEST_F()
124 bool status = map_.Find(Node(k), &val, &rlock); in TEST_F()
140 map_.Insert(new Node(k, std::string(1000, k % 255))); in TEST_F()
145 Node* val = map_.Evict(); in TEST_F()