Check if frame is already contained in cache
| 146 | |
| 147 | // Check if frame is already contained in cache |
| 148 | bool CacheDisk::Contains(int64_t frame_number) { |
| 149 | if (frames.count(frame_number) > 0) { |
| 150 | return true; |
| 151 | } else { |
| 152 | return false; |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | // Get a frame from the cache (or NULL shared_ptr if no frame is found) |
| 157 | std::shared_ptr<Frame> CacheDisk::GetFrame(int64_t frame_number) |
nothing calls this directly
no outgoing calls
no test coverage detected