Initial
This commit is contained in:
21
mdiwin/CACHE.TPP
Normal file
21
mdiwin/CACHE.TPP
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef _CACHE_HPP_
|
||||
#error CACHE.HPP must precede CACHE.TPP
|
||||
#endif
|
||||
|
||||
#ifdef _EXPAND_CACHE_TEMPLATES_
|
||||
#pragma option -Jgd
|
||||
#endif
|
||||
|
||||
template <class K,class T,size_t N>
|
||||
WORD Cache<K,T,N>::locateItem(const K &someKeyItem,T &someDataItem)
|
||||
{
|
||||
for(LONG index=0;index<mEntries;index++)
|
||||
{
|
||||
if(mKeyItem[index]==someKeyItem)
|
||||
{
|
||||
someDataItem=mDataItem[index];
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
Reference in New Issue
Block a user