亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? indextest.c

?? TV-tree的c實現源碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
         }       cout << "\n";       cout << "Search file name " << tp.sfilename << "\n";       cout << "Number of elements searched : " << tp.numsearch << "\n";       cout << "Skip between element : " << tp.searchskip << "\n";       cout << "Skip from head of file : " << tp.searchskiphead << "\n";     }  else     cout << "No insertion performed\n";  cout << endl << endl;  if (tp.saveindex)     cout << "Index saved at file " << tp.svfilename << "\n";  else     cout << "Index not saved\n";  cout << endl;}main(int argc, char *argv[]){  TestPara tp;  TVTree *ind1;  eletested = 0;  // Change options  ChangeOptions(argc, argv, tp);  // Print options selected  PrintOptions(tp);  // Creat Storage  globstorage = new Storage(tp.ip.page_size, tp.buffersize);  // Create index  if (tp.loadindex)     ind1 = new TVTree(tp.lifilename, ReadData, GetFeature);  else     ind1 = new TVTree(tp.ip, PHASES);    #ifdef DEBUG  cout << "\nEnd of create index\n";#endif// cout << "Count : " << ind1->Count() << endl;  if (tp.performinsert)     {        ifstream ifile(tp.ifilename, ios::in);        // inserting data        for (int icount = 0 ; icount < tp.numinput; icount++)          {/*	     DataPoints dp;	     ifile >> dp;	     size = dp.Size();	     char *newdata = dp();	     Leaf_Element e(newdata, size);*/	     DataPoints *dp = new DataPoints;	     ifile >> *dp;	     int size = dp->Size();/*if (icount == 3542) cout << icount << "  Hello\n";*/// cout << "icount : " << icount << "  Count : " << ind1->Count() << endl;	     Leaf_Element e((char *)dp, size);                         ind1->InsertElement(e, GetFeature);	     DataPoints dump;             for (int skipcount = 0; skipcount < tp.inskip; skipcount++)	        ifile >> dump;//	     delete [] newdata;          }        ifile.close();     }#ifdef DEBUG   cout << "end of insert\n";#endif   cout << "Build buffer result : " << *globstorage <<  "   Time for read,write : " << (globstorage->diskfetchcount + globstorage->pagewritecount) * tp.disktime / 1000.0 << " seconds"<< endl;   if (tp.printindex)       ind1->TVTreePrint(cout, PrintData, tp.onedataperline);   globstorage->emptybuffer();   globstorage->initstats();   if (tp.checkvalid)      {	cout << "Checking validity : ";        if (ind1->ValidityCheck())	   cout << "good";        else	   cout << "ERROR!!!";	cout << "   Count : " << ind1->Count() << endl;      }   // Search   if (tp.performsearch)      {	ind1->IncrementPhase(); // new phase for gathering search stats	int size;        ifstream sfile(tp.sfilename, ios::in);        int hitcount = 0;        globstorage->emptybuffer();        globstorage->initstats();        ostream *search_print_out;        ofstream search_print_out_file;        // Set output for search results        if (tp.searchprint)           {             if (tp.searchprintfile)                {                   search_print_out_file.open(tp.searchprintfile, ios::out);                   search_print_out = &search_print_out_file;                }             else                search_print_out = &cout;           }        else          search_print_out = NULL;        int i;        // Skip the top of the file        for (i = 0; i < tp.searchskiphead; i++)	   {	   DataPoints dp1;	   sfile >> dp1;	   }	for (int scount = 0; scount < tp.numsearch; scount++)            {	        DataPoints dp;                sfile >> dp;		int curhitcount;		// Searching		switch (tp.searchoption) {		  case searchexact : {		                        if (tp.searchprint)			                           (*search_print_out) << "\n -- " << dp << " : ";							  char **res;	                                int size = dp.Size();					curhitcount = ind1->Search((char *)&dp, size, res, GetKey, GetFeature, Equal, tp.searchcode);					hitcount += curhitcount;				        if (tp.searchprint)						   {						for (int spp = 0; spp < curhitcount;)						  {						  	(*search_print_out) << res[spp++] << " / ";							if (!(spp % 10))						           (*search_print_out) << endl;						  }						(*search_print_out) << endl;					   }				     }				     break;		   case searchappdia : {					  TVector v = GetTVector(dp, 3);					  float lower[3], upper[3];					  for (int j = 0; j < 3; j++)						   {						lower[j] = v[j] - tp.searchdist;						upper[j] = v[j] + tp.searchdist;					   }								                          if (tp.searchprint)						     {		                              (*search_print_out) << "\n -- " << dp  << " {(" << lower[0];							      int pv;					      for (pv = 1; pv < 3; pv++)						 (*search_print_out) << ", " << lower[pv];		                              (*search_print_out) << "), (" << upper[0];							      for (pv = 1; pv < 3; pv++)						 (*search_print_out) << ", " << upper[pv];		                              (*search_print_out) << ")} : ";							     }					  char **res;	                                  int size = dp.Size();					  curhitcount = ind1->Search((char *)&dp, size, 3, lower, upper,  res, GetKey, GetFeature, tp.searchcode);					  hitcount += curhitcount;		                          (*search_print_out) << " Count : " << curhitcount << " ";				          if (tp.searchprint)						     {						for (int spp = 0; spp < curhitcount;)						  {						  	(*search_print_out) << res[spp++] << " / ";							if (!(spp % 10))						           (*search_print_out) << endl;						  }						(*search_print_out) << endl;					     }					}				      break;		   case searcheditdist : {		                        if (tp.searchprint)			                           (*search_print_out) << "\n -- " << dp << " : ";							char **res;	                                int size = dp.Size();					curhitcount = ind1->Search(tp.searchdist, (char *)&dp, size,  res, GetKey, GetFeature, Distance, tp.searchcode);					hitcount += curhitcount;				        if (tp.searchprint)						   {						for (int spp = 0; spp < curhitcount;)						  {						  	(*search_print_out) << res[spp++] << " / ";							if (!(spp % 10))						           (*search_print_out) << endl;						  }						(*search_print_out) << endl;					   }				       }		   case searchappdis : {		                        if (tp.searchprint)			                           (*search_print_out) << "\n -- " << dp << " : ";							char **res;	                                int size = dp.Size();					curhitcount = ind1->Search(tp.searchdist, (char *)&dp, size,  res, GetKey, GetFeature, tp.searchcode);					hitcount += curhitcount;				        if (tp.searchprint)						   {						for (int spp = 0; spp < curhitcount;)						  {						  	(*search_print_out) << res[spp++] << " / ";							if (!(spp % 10))						           (*search_print_out) << endl;						  }						(*search_print_out) << endl;					   }				       }		   default : 			     break;		  }            	       // skipping elements               for (i = 0; i < tp.searchskip; i++)                sfile >> dp;// cout << scount << " " << *globstorage << endl;            }	sfile.close();        cout << endl << "Total hits : " << hitcount << endl;        cout << "Search result : " << *globstorage <<  "   Time for read,write : " << (globstorage->diskfetchcount + globstorage-> pagewritecount) * tp.disktime / 1000.0 << " seconds"<< endl;        cout << "Element tested : " << eletested << endl;      }#ifdef DEBUG   cout << "end of search\n";#endif   // Print stats  ind1->GatherTreeStats();  ind1->PrintStats(cout);  if (tp.saveindex)    ind1->SaveTVTree(tp.svfilename, WriteData);    ind1->FreeTree();  delete ind1;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
93久久精品日日躁夜夜躁欧美| 洋洋av久久久久久久一区| 在线影院国内精品| 成年人国产精品| 国产精品白丝jk白祙喷水网站| 看片网站欧美日韩| 久久精品久久综合| 亚洲大片一区二区三区| 亚洲国产成人av好男人在线观看| 亚洲视频资源在线| 一区二区三区中文字幕电影| 一区二区三区色| 亚洲一区二区三区在线| 日韩中文欧美在线| 麻豆精品在线看| 一本色道久久综合精品竹菊| 色综合亚洲欧洲| 欧美日韩情趣电影| 日韩精品在线一区二区| 久久久www成人免费毛片麻豆| 久久精品人人做人人综合| 欧美国产成人精品| 亚洲香蕉伊在人在线观| 另类欧美日韩国产在线| 国产成人精品免费| 欧美中文字幕一二三区视频| 日韩视频在线一区二区| 欧美激情一区三区| 亚洲一级二级三级| 国产精品一二二区| 91国产视频在线观看| 日韩亚洲欧美高清| 国产精品美女视频| 五月激情综合网| 成人av在线网| 91精品国产91久久久久久一区二区 | 91精品国产一区二区三区香蕉| 日韩亚洲电影在线| 亚洲欧洲三级电影| 奇米精品一区二区三区在线观看一| 国产在线视视频有精品| 91浏览器入口在线观看| 精品国产一区二区三区四区四| 18成人在线观看| 老汉av免费一区二区三区| aaa亚洲精品| 2019国产精品| 午夜不卡av免费| 成人精品鲁一区一区二区| 欧美精选午夜久久久乱码6080| 欧美国产欧美综合| 美女精品自拍一二三四| 在线观看亚洲专区| 中文成人av在线| 不卡视频在线观看| 亚洲精品在线观| 视频一区中文字幕| 日本高清成人免费播放| 欧美极品少妇xxxxⅹ高跟鞋| 青青草原综合久久大伊人精品| 色呦呦一区二区三区| 日本一区二区三区四区| 美女在线观看视频一区二区| 欧美四级电影在线观看| 亚洲视频小说图片| 成a人片国产精品| 欧美经典三级视频一区二区三区| 美女视频黄 久久| 7777精品伊人久久久大香线蕉完整版 | 色婷婷综合久久久久中文 | 欧美军同video69gay| 亚洲综合在线免费观看| 一本色道久久综合精品竹菊| 中文字幕中文字幕一区二区 | 免费精品视频在线| 日韩一级片网站| 另类调教123区| 精品99999| 国产传媒一区在线| 久久综合网色—综合色88| 精品在线观看视频| 久久久久久久久久久久电影| 国产一区二区按摩在线观看| 久久色视频免费观看| 国产成人免费视频一区| 亚洲国产高清在线观看视频| 波多野结衣在线一区| 亚洲美女在线国产| 欧美视频精品在线| 日本女人一区二区三区| 精品对白一区国产伦| 成人免费毛片app| 一区二区三区精品在线观看| 欧美伊人久久久久久久久影院 | 无吗不卡中文字幕| 精品日本一线二线三线不卡| 国产麻豆精品95视频| 国产精品久久久久久久浪潮网站| 欧美色爱综合网| 天堂久久一区二区三区| 日韩视频免费观看高清在线视频| 国产综合久久久久久鬼色| 中文字幕日本乱码精品影院| 在线观看成人免费视频| 裸体在线国模精品偷拍| 国产精品久久久久影院| 欧美日韩五月天| 国产麻豆91精品| 亚洲制服丝袜在线| 国产网站一区二区| 欧美天天综合网| 国产传媒欧美日韩成人| 亚洲久草在线视频| 精品嫩草影院久久| 欧美性淫爽ww久久久久无| 精品一区二区三区免费毛片爱| 国产精品毛片无遮挡高清| 7777精品久久久大香线蕉| 岛国精品一区二区| 日本大胆欧美人术艺术动态| 自拍偷在线精品自拍偷无码专区 | 色呦呦网站一区| 国产伦精品一区二区三区免费迷| 亚洲综合一二区| 欧美国产禁国产网站cc| 精品少妇一区二区三区免费观看| 在线日韩一区二区| 粉嫩高潮美女一区二区三区 | 色哟哟日韩精品| 国产一区欧美日韩| 日本在线不卡一区| 亚洲激情图片小说视频| 国产偷国产偷亚洲高清人白洁| 911国产精品| 在线免费视频一区二区| 成人免费毛片a| 国产精品一二三区| 久久99久久99小草精品免视看| 亚洲精品成a人| 国产精品亲子伦对白| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 丰满少妇在线播放bd日韩电影| 日韩福利视频网| 一个色综合av| 亚洲视频在线观看三级| 一色桃子久久精品亚洲| 久久精品亚洲精品国产欧美 | 亚洲小说欧美激情另类| 亚洲精品一二三| 中文字幕一区二区三中文字幕 | 色综合天天综合网国产成人综合天| 激情五月播播久久久精品| 久久不见久久见中文字幕免费| 六月丁香综合在线视频| 91福利精品第一导航| 色婷婷综合久久久中文字幕| 在线视频一区二区三区| 在线亚洲精品福利网址导航| 91福利小视频| 欧美久久久一区| 日韩一级高清毛片| 精品国产a毛片| 亚洲国产成人自拍| 亚洲欧美偷拍三级| 亚洲二区视频在线| 日本中文在线一区| 国产一区二区三区观看| 国产精品综合网| 成人精品免费视频| 日本道免费精品一区二区三区| 欧洲av在线精品| 日韩欧美在线观看一区二区三区| 欧美成人aa大片| 国产精品午夜电影| 一区二区三区日韩在线观看| 亚洲bt欧美bt精品| 九九视频精品免费| 9人人澡人人爽人人精品| 在线观看亚洲一区| 精品1区2区在线观看| 国产精品色一区二区三区| 亚洲福利一二三区| 韩国av一区二区三区| av中文一区二区三区| 欧美日韩一区二区在线观看| 欧美成va人片在线观看| 成人免费在线观看入口| 日本不卡视频一二三区| jlzzjlzz国产精品久久| 91麻豆精品91久久久久同性| 2019国产精品| 亚洲国产aⅴ成人精品无吗| 久久精品国产免费看久久精品| 99视频一区二区三区| 欧美一区二区三区电影| 亚洲久本草在线中文字幕| 国产一区在线观看视频| 欧美日韩精品福利| 亚洲欧美一区二区三区久本道91| 久久爱另类一区二区小说|