Example #1
0
 void internalflush()
 {
     if ( pc != pa )
     {
         COS.write(
             reinterpret_cast<char const *>(pa),
             (pc-pa)*sizeof(GraphEdge)
         );
         pc = pa;
     }
 }
Example #2
0
			void internalflush()
			{
				if ( pc != pa )
				{
					std::sort(pa,pc);
					COS.write(
						reinterpret_cast<char const *>(pa),
						(pc-pa)*sizeof(GraphEdge)
					);
					blocksizes.push_back(pc-pa);
					pc = pa;
				}
			}