print_to to ouput

This commit is contained in:
Dave Schuyler 2003-03-18 01:23:03 +00:00
parent de252b8793
commit d1f89fdc00
1 changed files with 26 additions and 26 deletions

View File

@ -12,35 +12,35 @@ using namespace std;
int _tmain(int argc, _TCHAR* argv[]) {
cout <<"UniqueIdAllocator Test"<<endl;
UniqueIdAllocator b=UniqueIdAllocator(2, 9);
b.print_to(cout, true);
b.allocate(); b.print_to(cout, true);
b.allocate(); b.print_to(cout, true);
b.allocate(); b.print_to(cout, true);
b.allocate(); b.print_to(cout, true);
b.allocate(); b.print_to(cout, true);
b.allocate(); b.print_to(cout, true);
b.free(2); b.print_to(cout, true);
b.free(3); b.print_to(cout, true);
b.free(4); b.print_to(cout, true);
b.free(5); b.print_to(cout, true);
b.allocate(); b.print_to(cout, true);
b.allocate(); b.print_to(cout, true);
b.allocate(); b.print_to(cout, true);
b.free(3); b.print_to(cout, true);
b.free(2); b.print_to(cout, true);
b.output(cout, true);
b.allocate(); b.output(cout, true);
b.allocate(); b.output(cout, true);
b.allocate(); b.output(cout, true);
b.allocate(); b.output(cout, true);
b.allocate(); b.output(cout, true);
b.allocate(); b.output(cout, true);
b.free(2); b.output(cout, true);
b.free(3); b.output(cout, true);
b.free(4); b.output(cout, true);
b.free(5); b.output(cout, true);
b.allocate(); b.output(cout, true);
b.allocate(); b.output(cout, true);
b.allocate(); b.output(cout, true);
b.free(3); b.output(cout, true);
b.free(2); b.output(cout, true);
b.allocate(); b.print_to(cout, true);
b.allocate(); b.print_to(cout, true);
b.allocate(); b.print_to(cout, true);
b.allocate(); b.print_to(cout, true);
b.allocate(); b.print_to(cout, true);
b.allocate(); b.print_to(cout, true);
b.allocate(); b.print_to(cout, true);
b.allocate(); b.output(cout, true);
b.allocate(); b.output(cout, true);
b.allocate(); b.output(cout, true);
b.allocate(); b.output(cout, true);
b.allocate(); b.output(cout, true);
b.allocate(); b.output(cout, true);
b.allocate(); b.output(cout, true);
b.free(4); b.print_to(cout, true);
b.free(3); b.print_to(cout, true);
b.free(4); b.output(cout, true);
b.free(3); b.output(cout, true);
b.allocate(); b.print_to(cout, true);
b.allocate(); b.output(cout, true);
return 0;
}