#include <lru.h>
shttl::lru_time< key_type >に対する継承グラフ
Public 型 | |
typedef replacer< key_type >::size_type | size_type |
Public メソッド | |
void | construct (const size_type set_num, const size_type way_num) |
size_type | size () |
size_type | target (const size_type index) |
void | touch (const size_type index, const size_type way, const key_type key) |
Protected 型 | |
typedef std::vector< set > | lru_array |
typedef lru_array::reference | reference |
Protected 変数 | |
lru_array | m_lru |
構成 | |
class | set |
typedef std::vector<set> shttl::lru_time< key_type >::lru_array [protected] |
typedef lru_array::reference shttl::lru_time< key_type >::reference [protected] |
void shttl::lru_time< key_type >::construct | ( | const size_type | set_num, | |
const size_type | way_num | |||
) | [inline, virtual] |
shttl::replacer< key_type >を実装しています。
参照先 shttl::lru_time< key_type >::m_lru.
00059 { 00060 m_lru.resize( set_num ); 00061 for( size_t i = 0; i < m_lru.size(); i++ ){ 00062 m_lru[i].construct( way_num ); 00063 } 00064 }
size_type shttl::lru_time< key_type >::size | ( | ) | [inline] |
size_type shttl::lru_time< key_type >::target | ( | const size_type | index | ) | [inline, virtual] |
shttl::replacer< key_type >を実装しています。
参照先 shttl::lru_time< key_type >::m_lru.
00081 { 00082 return m_lru[ index ].target(); 00083 }
void shttl::lru_time< key_type >::touch | ( | const size_type | index, | |
const size_type | way, | |||
const key_type | key | |||
) | [inline, virtual] |
shttl::replacer< key_type >を実装しています。
参照先 shttl::lru_time< key_type >::m_lru.
00075 { 00076 m_lru[ index ].touch( way ); 00077 }
lru_array shttl::lru_time< key_type >::m_lru [protected] |