Definition at line 2117 of file RotorBrowser.h. References Impala::Core::Trec::Thread::BOOKMARK, Impala::Core::Trec::Thread::GetName(), Impala::Core::Trec::Thread::GetShotPosition(), Impala::Core::Trec::Thread::GetType(), Impala::Core::Trec::Thread::HISTORY, mTopN, Impala::Core::Trec::Thread::SHOTS, Impala::Core::Trec::Thread::TIME, and Impala::Core::Trec::Thread::VISUAL. Referenced by AddRelevantContexts(), and ManageRotorContexts(). 02118 { 02119 switch (t->GetType()) 02120 { 02121 case Thread::VISUAL: 02122 case Thread::BOOKMARK: 02123 case Thread::HISTORY: 02124 return 0; 02125 case Thread::TIME: 02126 return 1; 02127 case Thread::SHOTS: 02128 if (t->GetName() == "shots_initialquery") return 1; 02129 if (t->GetName() == "shots_supplement") return 0; 02130 if (t->GetName().find("vis_") != String::npos) 02131 { 02132 if (t->GetShotPosition(position) < mTopN && 02133 t->GetShotPosition(position) >= 0) 02134 return 2; 02135 return 0; 02136 } 02137 return 3; 02138 default: 02139 int pos = t->GetShotPosition(position); 02140 if (pos >=0 && pos < mTopN) 02141 return pos+4; 02142 // HARD CODED ERROR !!! WARNING!! 02143 if (pos > 0 && pos < 79484 && 02144 t->GetName().find("rank_thread_all") != String::npos) 02145 return 3; 02146 } 02147 return 0; 02148 }
Here is the call graph for this function:
|