Reimplemented from Impala::Application::MediaTable::TableDataSource. Definition at line 24 of file WritableTableDataSource.h. References mDoubleMap, mImageMap, mIntMap, mTextMap, and mTotalRows. 00024 { 00025 if (mTotalRows >= 0) return mTotalRows; 00026 std::map<std::string, std::vector<int> >::iterator mIntMapIterator; 00027 std::map<std::string, std::vector<double> >::iterator mDoubleMapIterator; 00028 std::map<std::string, std::vector<std::string> >::iterator mTextMapIterator; 00029 std::map<std::string, std::vector<Array2dVec3UInt8*> >::iterator mImageMapIterator; 00030 00031 uint maxRows = 0; 00032 for(mIntMapIterator = mIntMap.begin(); mIntMapIterator != mIntMap.end(); ++mIntMapIterator ) 00033 if(mIntMapIterator->second.size() > maxRows) 00034 maxRows = mIntMapIterator->second.size(); 00035 for(mDoubleMapIterator = mDoubleMap.begin(); mDoubleMapIterator != mDoubleMap.end(); ++mDoubleMapIterator ) 00036 if(mDoubleMapIterator->second.size() > maxRows) 00037 maxRows = mDoubleMapIterator->second.size(); 00038 for(mTextMapIterator = mTextMap.begin(); mTextMapIterator != mTextMap.end(); ++mTextMapIterator ) 00039 if(mTextMapIterator->second.size() > maxRows) 00040 maxRows = mTextMapIterator->second.size(); 00041 for(mImageMapIterator = mImageMap.begin(); mImageMapIterator != mImageMap.end(); ++mImageMapIterator ) 00042 if(mImageMapIterator->second.size() > maxRows) 00043 maxRows = mImageMapIterator->second.size(); 00044 00045 return mTotalRows = maxRows; 00046 }
|