// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _Storage_PArray_HeaderFile
#define _Storage_PArray_HeaderFile

#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>

#include <Standard_Integer.hxx>
#include <Standard_Address.hxx>
#include <Standard_Boolean.hxx>
#include <Handle_Standard_Persistent.hxx>
class Standard_RangeError;
class Standard_DimensionMismatch;
class Standard_OutOfRange;
class Standard_OutOfMemory;
class Standard_Persistent;



class Storage_PArray 
{
public:

  DEFINE_STANDARD_ALLOC

  
    Storage_PArray(const Standard_Integer Low, const Standard_Integer Up);
  
    Storage_PArray(const Handle(Standard_Persistent)& Item, const Standard_Integer Low, const Standard_Integer Up);
  
  Standard_EXPORT   void Init (const Handle(Standard_Persistent)& V) ;
  
      void Destroy() ;
~Storage_PArray()
{
  Destroy();
}
  
      Standard_Boolean IsAllocated()  const;
  
  Standard_EXPORT  const  Storage_PArray& Assign (const Storage_PArray& Other) ;
 const  Storage_PArray& operator = (const Storage_PArray& Other) 
{
  return Assign(Other);
}
  
      Standard_Integer Length()  const;
  
      Standard_Integer Lower()  const;
  
      Standard_Integer Upper()  const;
  
      void SetValue (const Standard_Integer Index, const Handle(Standard_Persistent)& Value) ;
  
     const  Handle(Standard_Persistent)& Value (const Standard_Integer Index)  const;
   const  Handle(Standard_Persistent)& operator () (const Standard_Integer Index)  const
{
  return Value(Index);
}
  
      Handle(Standard_Persistent)& ChangeValue (const Standard_Integer Index) ;
    Handle(Standard_Persistent)& operator () (const Standard_Integer Index) 
{
  return ChangeValue(Index);
}




protected:





private:

  
  Standard_EXPORT Storage_PArray(const Storage_PArray& AnArray);


  Standard_Integer myLowerBound;
  Standard_Integer myUpperBound;
  Standard_Address myStart;
  Standard_Boolean isAllocated;


};

#define Array1Item Handle(Standard_Persistent)
#define Array1Item_hxx <Standard_Persistent.hxx>
#define TCollection_Array1 Storage_PArray
#define TCollection_Array1_hxx <Storage_PArray.hxx>

#include <TCollection_Array1.lxx>

#undef Array1Item
#undef Array1Item_hxx
#undef TCollection_Array1
#undef TCollection_Array1_hxx




#endif // _Storage_PArray_HeaderFile
