Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

virtual int Impala::Core::Trec::ThreadVirtual::GetShot ( int  position  )  [inline, virtual]

Implements Impala::Core::Trec::Thread.

Definition at line 34 of file ThreadVirtual.h.

References GetLength(), and mThreads.

Referenced by GetShotAt().

00035     {
00036         if ((position < 0) || (position >= GetLength()))
00037             return -1;
00038 
00039         for (int i=0; i<mThreads.size();i++)
00040         {
00041             if (position < mThreads[i]->GetLength())
00042                 return mThreads[i]->GetShot(position);
00043             else
00044                 position -= mThreads[i]->GetLength();
00045         }
00046         return -1;
00047     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:26:29 2010 for ImpalaSrc by  doxygen 1.5.1