math/PairInt.cpp

Go to the documentation of this file.
00001 //## begin module%38211427022C.cm preserve=no
00002 //        %X% %Q% %Z% %W%
00003 //## end module%38211427022C.cm
00004 
00005 //## begin module%38211427022C.cp preserve=no
00006 //## end module%38211427022C.cp
00007 
00008 //## Module: PairInt%38211427022C; Pseudo Package body
00009 //## Source file: E:\mpk\code\math\PairInt.cpp
00010 
00011 //## begin module%38211427022C.additionalIncludes preserve=no
00012 //## end module%38211427022C.additionalIncludes
00013 
00014 //## begin module%38211427022C.includes preserve=yes
00015 #include <assert.h>
00016 //## end module%38211427022C.includes
00017 
00018 // PairInt
00019 #include "PairInt.h"
00020 //## begin module%38211427022C.additionalDeclarations preserve=yes
00021 //## end module%38211427022C.additionalDeclarations
00022 
00023 
00024 // Class PairInt 
00025 
00026 PairInt::PairInt()
00027 {
00028         assert( false ) ;
00029 };
00030 
00031 PairInt::PairInt (const int first, const int second)
00032   //## begin PairInt::PairInt%941688704.hasinit preserve=no
00033   //## end PairInt::PairInt%941688704.hasinit
00034   //## begin PairInt::PairInt%941688704.initialization preserve=yes
00035   :
00036                 first( first),
00037                 second( second )
00038   //## end PairInt::PairInt%941688704.initialization
00039 {
00040   //## begin PairInt::PairInt%941688704.body preserve=yes
00041   //## end PairInt::PairInt%941688704.body
00042 }
00043 
00044 
00045 PairInt::~PairInt()
00046 {
00047   //## begin PairInt::~PairInt%.body preserve=yes
00048   //## end PairInt::~PairInt%.body
00049 }
00050 
00051 
00052 
00053 //## Other Operations (implementation)
00054 bool PairInt::operator < (const PairInt& right) const
00055 {
00056   //## begin PairInt::operator<%941688705.body preserve=yes
00057         if( first < right.first ) 
00058         {
00059                 return true ;
00060         }
00061         if( first > right.first )
00062         {
00063                 return false ;
00064         }
00065         if( second < right.second ) 
00066         {
00067                 return true ;
00068         }
00069         return false ;
00070   //## end PairInt::operator<%941688705.body
00071 }
00072 
00073 // Additional Declarations
00074   //## begin PairInt%38211427022C.declarations preserve=yes
00075   //## end PairInt%38211427022C.declarations
00076 
00077 //## begin module%38211427022C.epilog preserve=yes
00078 //## end module%38211427022C.epilog

Generated on Sat Apr 1 21:30:38 2006 for Motion Planning Kernel by  doxygen 1.4.6-NO