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

Diff for /pegasus/src/Pegasus/Common/ArrayImpl.h between version 1.15 and 1.16

version 1.15, 2002/06/13 21:32:03 version 1.16, 2002/07/17 18:52:23
Line 38 
Line 38 
  
 #include <Pegasus/Common/Memory.h> #include <Pegasus/Common/Memory.h>
 #include <Pegasus/Common/ArrayRep.h> #include <Pegasus/Common/ArrayRep.h>
   #include <Pegasus/Common/Exception.h>
  
 #ifdef PEGASUS_HAS_EBCDIC #ifdef PEGASUS_HAS_EBCDIC
 #include <unistd.h> #include <unistd.h>
Line 197 
Line 198 
 PEGASUS_ARRAY_T& Array<PEGASUS_ARRAY_T>::operator[](Uint32 pos) PEGASUS_ARRAY_T& Array<PEGASUS_ARRAY_T>::operator[](Uint32 pos)
 { {
     if (pos >= size())     if (pos >= size())
         ThrowOutOfBounds();          throw OutOfBounds();
  
     return static_cast<ArrayRep<PEGASUS_ARRAY_T>*>(_rep)->data()[pos];     return static_cast<ArrayRep<PEGASUS_ARRAY_T>*>(_rep)->data()[pos];
 } }
Line 208 
Line 209 
 const PEGASUS_ARRAY_T& Array<PEGASUS_ARRAY_T>::operator[](Uint32 pos) const const PEGASUS_ARRAY_T& Array<PEGASUS_ARRAY_T>::operator[](Uint32 pos) const
 { {
     if (pos >= size())     if (pos >= size())
         ThrowOutOfBounds();          throw OutOfBounds();
  
     return static_cast<ArrayRep<PEGASUS_ARRAY_T>*>(_rep)->data()[pos];     return static_cast<ArrayRep<PEGASUS_ARRAY_T>*>(_rep)->data()[pos];
 } }
Line 274 
Line 275 
 void Array<PEGASUS_ARRAY_T>::insert(Uint32 pos, const PEGASUS_ARRAY_T* x, Uint32 size) void Array<PEGASUS_ARRAY_T>::insert(Uint32 pos, const PEGASUS_ARRAY_T* x, Uint32 size)
 { {
     if (pos > this->size())     if (pos > this->size())
         ThrowOutOfBounds();          throw OutOfBounds();
  
     reserve(this->size() + size);     reserve(this->size() + size);
  
Line 302 
Line 303 
 void Array<PEGASUS_ARRAY_T>::remove(Uint32 pos, Uint32 size) void Array<PEGASUS_ARRAY_T>::remove(Uint32 pos, Uint32 size)
 { {
     if (pos + size - 1 > this->size())     if (pos + size - 1 > this->size())
         ThrowOutOfBounds();          throw OutOfBounds();
  
     Destroy(_data() + pos, size);     Destroy(_data() + pos, size);
  


Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2