Lines Matching refs:Cache
98 class Codec2Client::Cache {
109 // Called by s() exactly once to initialize the cache. The index must be a
111 // init(index) will associate the cache to the service with name
118 Cache() = default;
164 static std::vector<Cache>& List() {
165 static std::vector<Cache> sCaches{[]() {
167 std::vector<Cache> caches(numServices);
339 // TODO: Cache and query properly!
643 return Cache::List()[mServiceIndex].getTraits();
839 // Cache the mapping key -> index of Codec2Client in Cache::List().
847 for (size_t index = Cache::List().size(); index > 0; ) {
862 Cache& cache = Cache::List()[index];
863 std::shared_ptr<Codec2Client> client{cache.getClient()};
876 cache.invalidate();
951 for (Cache& cache : Cache::List()) {
952 std::vector<C2Component::Traits> const& traits = cache.getTraits();
978 std::shared_ptr<Codec2Client> client = Cache::List()[index].getClient();
985 for (Cache& cache : Cache::List()) {
986 std::shared_ptr<Codec2Client> client = cache.getClient();