Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

C:/temp/src/j2k/Test/Queue_Test.cpp

Go to the documentation of this file.
00001 #ifndef __J2K__Test__Queue_Test_CPP__
00002 #define __J2K__Test__Queue_Test_CPP__
00003 
00004 #include <j2k\DataType\Queue\AQueue.hpp>
00005 #include <j2k\DataType\Queue\LQueue.hpp>
00006 
00007 typedef LQueue  Queue;
00008 
00009 int main()
00010 {
00011   Queue L1;
00012   Queue L2(15);
00013 
00014   L2.enqueue(10);
00015   L2.enqueue(20);
00016   L2.enqueue(15);
00017 
00018   while( !L2.isEmpty() ) 
00019   {
00020     cout << L2.firstValue() << " ";
00021     L1.enqueue( L2.dequeue() );
00022   }
00023 
00024   cout << "\n";
00025   cout << "New top: " << L1.firstValue() << "\n";
00026 
00027   L1.clear();
00028 
00029   return 0;
00030 }
00031 
00032 #endif

Generated on Sun Oct 14 18:46:44 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001