Lines Matching refs:ClientDescriptor

45 class ClientDescriptor final {
47 ClientDescriptor(const KEY& key, const VALUE& value, int32_t cost,
49 ClientDescriptor(KEY&& key, VALUE&& value, int32_t cost, std::set<KEY>&& conflictingKeys,
52 ~ClientDescriptor();
96 friend bool operator < (const ClientDescriptor<K, V>& a, const ClientDescriptor<K, V>& b);
108 bool operator < (const ClientDescriptor<K, V>& a, const ClientDescriptor<K, V>& b) {
113 ClientDescriptor<KEY, VALUE>::ClientDescriptor(const KEY& key, const VALUE& value, int32_t cost, in ClientDescriptor() function
119 ClientDescriptor<KEY, VALUE>::ClientDescriptor(KEY&& key, VALUE&& value, int32_t cost, in ClientDescriptor() function
126 ClientDescriptor<KEY, VALUE>::~ClientDescriptor() {} in ~ClientDescriptor()
129 const KEY& ClientDescriptor<KEY, VALUE>::getKey() const { in getKey()
134 const VALUE& ClientDescriptor<KEY, VALUE>::getValue() const { in getValue()
139 int32_t ClientDescriptor<KEY, VALUE>::getCost() const { in getCost()
144 int32_t ClientDescriptor<KEY, VALUE>::getPriority() const { in getPriority()
149 int32_t ClientDescriptor<KEY, VALUE>::getOwnerId() const { in getOwnerId()
154 bool ClientDescriptor<KEY, VALUE>::isConflicting(const KEY& key) const { in isConflicting()
163 std::set<KEY> ClientDescriptor<KEY, VALUE>::getConflicting() const { in getConflicting()
168 void ClientDescriptor<KEY, VALUE>::setPriority(int32_t priority) { in setPriority()
180 void onClientAdded(const ClientDescriptor<KEY, VALUE>& descriptor);
181 void onClientRemoved(const ClientDescriptor<KEY, VALUE>& descriptor);
186 const ClientDescriptor<KEY, VALUE>& /*descriptor*/) {} in onClientAdded()
190 const ClientDescriptor<KEY, VALUE>& /*descriptor*/) {} in onClientRemoved()
227 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>> addAndEvict(
228 const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client);
244 std::shared_ptr<ClientDescriptor<KEY, VALUE>> remove(const KEY& key);
249 void remove(const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& value);
257 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>> wouldEvict(
258 const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client) const;
263 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>> getIncompatibleClients(
264 const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client) const;
269 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>> getAll() const;
286 std::shared_ptr<ClientDescriptor<KEY, VALUE>> get(const KEY& key) const;
295 status_t waitUntilRemoved(const std::shared_ptr<ClientDescriptor<KEY, VALUE>> client,
330 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>> wouldEvictLocked(
331 const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client,
340 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>> mClients;
355 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>>
357 const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client) const { in wouldEvict()
363 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>>
365 const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client) const { in getIncompatibleClients()
371 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>>
373 const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client, in wouldEvictLocked()
376 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>> evictList; in wouldEvictLocked()
464 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>>
466 const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client) { in addAndEvict()
482 [&iter] (std::shared_ptr<ClientDescriptor<KEY, VALUE>>& curClientPtr) { in addAndEvict()
499 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>>
538 std::shared_ptr<ClientDescriptor<KEY, VALUE>> ClientManager<KEY, VALUE, LISTENER>::get( in get()
544 return std::shared_ptr<ClientDescriptor<KEY, VALUE>>(nullptr); in get()
560 std::shared_ptr<ClientDescriptor<KEY, VALUE>> ClientManager<KEY, VALUE, LISTENER>::remove( in remove()
564 std::shared_ptr<ClientDescriptor<KEY, VALUE>> ret; in remove()
568 [this, &key, &ret] (std::shared_ptr<ClientDescriptor<KEY, VALUE>>& curClientPtr) { in remove()
583 const std::shared_ptr<ClientDescriptor<KEY, VALUE>> client, in waitUntilRemoved()
621 const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& value) { in remove()
625 [this, &value] (std::shared_ptr<ClientDescriptor<KEY, VALUE>>& curClientPtr) { in remove()