pushes plan to the front of cache(queue)
| 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&); |