(file) Return to ArrayInternal.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/ArrayInternal.h between version 1.1 and 1.2

version 1.1, 2002/08/21 22:45:50 version 1.2, 2002/09/13 21:40:42
Line 23 
Line 23 
 // //
 // Author: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) // Author: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
 // //
 // Modified By:  // Modified By: Carol Ann Krug Graves, Hewlett-Packard Company
   //                (carolann_graves@hp.com)
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 32 
Line 33 
  
 #include <Pegasus/Common/Config.h> #include <Pegasus/Common/Config.h>
 #include <Pegasus/Common/Array.h> #include <Pegasus/Common/Array.h>
   #include <Pegasus/Common/CIMName.h>
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
Line 90 
Line 92 
     }     }
 } }
  
   inline void BubbleSort(Array<CIMName>& x)
   {
       Uint32 n = x.size();
   
       if (n < 2)
           return;
   
       for (Uint32 i = 0; i < n - 1; i++)
       {
           for (Uint32 j = 0; j < n - 1; j++)
           {
               if (x[j].getString() > x[j+1].getString())
               {
                   CIMName t = x[j];
                   x[j] = x[j+1];
                   x[j+1] = t;
               }
           }
       }
   }
   
   inline void BubbleSort(Array<CIMNamespaceName>& x)
   {
       Uint32 n = x.size();
   
       if (n < 2)
           return;
   
       for (Uint32 i = 0; i < n - 1; i++)
       {
           for (Uint32 j = 0; j < n - 1; j++)
           {
               if (x[j].getString() > x[j+1].getString())
               {
                   CIMNamespaceName t = x[j];
                   x[j] = x[j+1];
                   x[j+1] = t;
               }
           }
       }
   }
   
 #if 0 #if 0
 // Determine need for these functions // Determine need for these functions
 template<class PEGASUS_ARRAY_T> template<class PEGASUS_ARRAY_T>


Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2