// 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 _Standard_HeaderFile #define _Standard_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Standard_Address_HeaderFile #include #endif #ifndef _Standard_Size_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif class Standard_ErrorHandlerCallback; class Standard_ErrorHandler; class Standard_AncestorIterator; class Standard_Storable; class Standard_Persistent; class Standard_GUID; class Standard_Transient; class Standard_Type; class Standard_Failure; class Standard { public: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Free((Standard_Address&)anAddress); } //! Allocates memory blocks
//! aSize - bytes to allocate
Standard_EXPORT static Standard_Address Allocate(const Standard_Size aSize) ; //! Deallocates memory blocks
//! aStorage - previously allocated memory block to be freed
Standard_EXPORT static void Free(Standard_Address& aStorage) ; //! Reallocates memory blocks
//! aStorage - previously allocated memory block
//! aNewSize - new size in bytes
Standard_EXPORT static Standard_Address Reallocate(Standard_Address& aStorage,const Standard_Size aNewSize) ; //! Deallocates the storage retained on the free list
//! and clears the list.
//! Returns non-zero if some memory has been actually freed.
Standard_EXPORT static Standard_Integer Purge() ; //! Returns boolean flag indicating whether OCCT is
//! operating in reentrant mode. This flag affects OCCT
//! memory manager, exception and signal handling,
//! operations with handles etc., making them thread-safe.
Standard_EXPORT static Standard_Boolean IsReentrant() ; //! Sets boolean flag indicating whether OCCT is
//! operating in reentrant mode.
//! See method IsReentrant() for more information.
//! Note: This method may be called only when no any other
//! thread using OCCT exists
Standard_EXPORT static void SetReentrant(const Standard_Boolean isReentrant) ; protected: private: friend class Standard_ErrorHandlerCallback; friend class Standard_ErrorHandler; friend class Standard_AncestorIterator; friend class Standard_Storable; friend class Standard_Persistent; friend class Standard_GUID; friend class Standard_Transient; friend class Standard_Type; friend class Standard_Failure; }; // other Inline functions and methods (like "C++: function call" methods) #endif