template<class IdxT, class ElemT>
Definition at line 49 of file Cache.h. Referenced by Impala::Util::ChannelPool::Get(). 00050 { 00051 for (CacheIterator i=mQueue.begin() ; i!=mQueue.end() ; ++i) 00052 { 00053 if ((*i).mIdx == idx) 00054 { 00055 elem = (*i).mElem; 00056 mQueue.erase(i); 00057 AddElement(idx, elem); 00058 ILOG_DEBUG("get: found elem @ " << idx); 00059 return true; 00060 } 00061 } 00062 ILOG_DEBUG("get: elem @ " << idx << " not found"); 00063 return false; 00064 }
|