template<class IdxT, class ElemT>
Definition at line 67 of file Cache.h. Referenced by Impala::Util::ChannelPool::Remove(). 00068 { 00069 for (CacheIterator i=mQueue.begin() ; i!=mQueue.end() ; ++i) 00070 { 00071 if ((*i).mIdx == idx) 00072 { 00073 ElemT elem = (*i).mElem; 00074 if (mElemIsPointer && elem) 00075 delete elem; 00076 mQueue.erase(i); 00077 return; 00078 } 00079 } 00080 ILOG_INFO("remove: elem @ " << idx << " not found"); 00081 }
|