Lines Matching refs:ClientDescriptor

109 class ClientDescriptor final {
111 ClientDescriptor(const KEY& key, const VALUE& value, int32_t cost,
114 ClientDescriptor(KEY&& key, VALUE&& value, int32_t cost, std::set<KEY>&& conflictingKeys,
117 ~ClientDescriptor();
161 friend bool operator < (const ClientDescriptor<K, V>& a, const ClientDescriptor<K, V>& b);
173 bool operator < (const ClientDescriptor<K, V>& a, const ClientDescriptor<K, V>& b) {
178 ClientDescriptor<KEY, VALUE>::ClientDescriptor(const KEY& key, const VALUE& value, int32_t cost, in ClientDescriptor() function
186 ClientDescriptor<KEY, VALUE>::ClientDescriptor(KEY&& key, VALUE&& value, int32_t cost, in ClientDescriptor() function
194 ClientDescriptor<KEY, VALUE>::~ClientDescriptor() {} in ~ClientDescriptor()
197 const KEY& ClientDescriptor<KEY, VALUE>::getKey() const { in getKey()
202 const VALUE& ClientDescriptor<KEY, VALUE>::getValue() const { in getValue()
207 int32_t ClientDescriptor<KEY, VALUE>::getCost() const { in getCost()
212 const ClientPriority& ClientDescriptor<KEY, VALUE>::getPriority() const { in getPriority()
217 int32_t ClientDescriptor<KEY, VALUE>::getOwnerId() const { in getOwnerId()
222 bool ClientDescriptor<KEY, VALUE>::isConflicting(const KEY& key) const { in isConflicting()
231 std::set<KEY> ClientDescriptor<KEY, VALUE>::getConflicting() const { in getConflicting()
236 void ClientDescriptor<KEY, VALUE>::setPriority(const ClientPriority& priority) { in setPriority()
254 void onClientAdded(const ClientDescriptor<KEY, VALUE>& descriptor);
255 void onClientRemoved(const ClientDescriptor<KEY, VALUE>& descriptor);
260 const ClientDescriptor<KEY, VALUE>& /*descriptor*/) {} in onClientAdded()
264 const ClientDescriptor<KEY, VALUE>& /*descriptor*/) {} in onClientRemoved()
301 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>> addAndEvict(
302 const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client);
318 std::shared_ptr<ClientDescriptor<KEY, VALUE>> remove(const KEY& key);
323 void remove(const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& value);
331 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>> wouldEvict(
332 const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client) const;
337 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>> getIncompatibleClients(
338 const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client) const;
343 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>> getAll() const;
360 std::shared_ptr<ClientDescriptor<KEY, VALUE>> get(const KEY& key) const;
369 status_t waitUntilRemoved(const std::shared_ptr<ClientDescriptor<KEY, VALUE>> client,
404 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>> wouldEvictLocked(
405 const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client,
414 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>> mClients;
429 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>>
431 const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client) const { in wouldEvict()
437 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>>
439 const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client) const { in getIncompatibleClients()
445 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>>
447 const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client, in wouldEvictLocked()
450 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>> evictList; in wouldEvictLocked()
552 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>>
554 const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client) { in addAndEvict()
570 [&iter] (std::shared_ptr<ClientDescriptor<KEY, VALUE>>& curClientPtr) { in addAndEvict()
587 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>>
626 std::shared_ptr<ClientDescriptor<KEY, VALUE>> ClientManager<KEY, VALUE, LISTENER>::get( in get()
632 return std::shared_ptr<ClientDescriptor<KEY, VALUE>>(nullptr); in get()
648 std::shared_ptr<ClientDescriptor<KEY, VALUE>> ClientManager<KEY, VALUE, LISTENER>::remove( in remove()
652 std::shared_ptr<ClientDescriptor<KEY, VALUE>> ret; in remove()
656 [this, &key, &ret] (std::shared_ptr<ClientDescriptor<KEY, VALUE>>& curClientPtr) { in remove()
671 const std::shared_ptr<ClientDescriptor<KEY, VALUE>> client, in waitUntilRemoved()
709 const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& value) { in remove()
713 [this, &value] (std::shared_ptr<ClientDescriptor<KEY, VALUE>>& curClientPtr) { in remove()