1/* 2 * Copyright (c) 2012-2014,2017 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 290 unchanged lines hidden (view full) --- 299 * function) that takes a cache block reference as its parameter 300 * and returns a bool. A visitor can request the traversal to be 301 * stopped by returning false, returning true causes it to be 302 * called for the next block in the tag store. 303 * 304 * \param visitor Visitor to call on each block. 305 */ 306 void forEachBlk(CacheBlkVisitor &visitor) override { |
307 for (CacheBlk& blk : blks) { 308 if (!visitor(blk)) |
309 return; 310 } 311 } 312}; 313 314#endif //__MEM_CACHE_TAGS_BASE_SET_ASSOC_HH__ |