クラス Onikiri::PHT

#include <PHT.h>

Onikiri::PHTに対する継承グラフ

Inheritance graph
[凡例]
Onikiri::PHTのコラボレーション図

Collaboration graph
[凡例]
すべてのメンバ一覧

Public メソッド

 BEGIN_PARAM_MAP (GetParamPath()) PHT()
int GetIndexBitSize ()
void Initialize (InitPhase phase)
bool Predict (int index)
void Update (int index, bool taken)
 ~PHT ()

説明

PHT.h43 行で定義されています。


コンストラクタとデストラクタ

PHT::~PHT (  ) 

PHT.cpp46 行で定義されています。

参照先 Onikiri::PhysicalResourceNode::ReleaseParam().

00047 {
00048     ReleaseParam();
00049 }

関数の呼び出しグラフ:


関数

Onikiri::PHT::BEGIN_PARAM_MAP ( GetParamPath()   ) 

int Onikiri::PHT::GetIndexBitSize (  )  [inline]

PHT.h70 行で定義されています。

参照元 Onikiri::GShare::Initialize().

00071         {
00072             return m_entryBits;
00073         }

Here is the caller graph for this function:

void PHT::Initialize ( InitPhase  phase  ) 

PHT.cpp51 行で定義されています。

参照先 Onikiri::PhysicalResourceNode::INIT_PRE_CONNECTIONOnikiri::ParamExchange::LoadParam().

00052 {
00053     if(phase == INIT_PRE_CONNECTION){
00054         LoadParam();
00055         u8 max = (1 << m_counterBits) - 1;
00056         m_table.construct(
00057             1 << m_entryBits,   // size
00058             (max + 1) / 2,      // init
00059             0,                  // min
00060             max,                // max
00061             1,                  // add
00062             1,                  // sub
00063             (max + 1) / 2       // threshold
00064         );
00065     }
00066 }

関数の呼び出しグラフ:

bool PHT::Predict ( int  index  ) 

PHT.cpp76 行で定義されています。

参照元 Onikiri::GShare::Predict().

00077 {
00078     return m_table[index].above_threshold();
00079 }

Here is the caller graph for this function:

void PHT::Update ( int  index,
bool  taken 
)

PHT.cpp68 行で定義されています。

参照元 Onikiri::GShare::Finished().

00069 {
00070     if(taken)
00071         m_table[index].inc();
00072     else
00073         m_table[index].dec();
00074 }

Here is the caller graph for this function:


このクラスの説明は次のファイルから生成されました:
Onikiri2に対してTue Jun 18 15:12:54 2013に生成されました。  doxygen 1.4.7