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

CollectQuidObjects.h

Go to the documentation of this file.
00001 #ifndef Impala_Core_Table_CollectQuidObjects_h
00002 #define Impala_Core_Table_CollectQuidObjects_h
00003 
00004 #include "Core/Table/TableTem.h"
00005 
00006 namespace Impala
00007 {
00008 namespace Core
00009 {
00010 namespace Table
00011 {
00012 
00017 template <class Table> 
00018 std::vector<int>
00019 CollectQuidObjects(Table* t)
00020 {
00021     std::vector<int> res;
00022     for (int i=0 ; i<t->Size() ; i++)
00023     {
00024         Quid q = t->Get1(i);
00025         int qObj = QuidObject(q);
00026         if (std::find(res.begin(), res.end(), qObj) == res.end())
00027             res.push_back(qObj);
00028     }
00029     return res;
00030 }
00031 
00032 
00033 } // namespace Table
00034 } // namespace Core
00035 } // namespace Impala
00036 
00037 #endif

Generated on Fri Mar 19 09:31:20 2010 for ImpalaSrc by  doxygen 1.5.1