MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / push

Method push

src/backend/common/FFTPlanCache.hpp:59–63  ·  view source on GitHub ↗

pushes plan to the front of cache(queue)

Source from the content-addressed store, hash-verified

57
58 // pushes plan to the front of cache(queue)
59 void push(const std::string key, plan_t plan) {
60 if (mCache.size() >= mMaxCacheSize) mCache.pop_back();
61
62 mCache.push_front(plan_pair_t(key, plan));
63 }
64
65 protected:
66 FFTPlanCache(FFTPlanCache const&);

Callers 3

findPlanFunction · 0.80
findPlanFunction · 0.80
initMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected