mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-01 20:24:28 +05:00
90 lines
2.5 KiB
C++
90 lines
2.5 KiB
C++
![]() |
// File generated by CPPExt (Transient)
|
||
|
//
|
||
|
// Copyright (C) 1991,1995 by
|
||
|
//
|
||
|
// MATRA DATAVISION, FRANCE
|
||
|
//
|
||
|
// This software is furnished in accordance with the terms and conditions
|
||
|
// of the contract and with the inclusion of the above copyright notice.
|
||
|
// This software or any other copy thereof may not be provided or otherwise
|
||
|
// be made available to any other person. No title to an ownership of the
|
||
|
// software is hereby transferred.
|
||
|
//
|
||
|
// At the termination of the contract, the software and all copies of this
|
||
|
// software must be deleted.
|
||
|
|
||
|
#ifndef _Handle_SMESHDS_Script_HeaderFile
|
||
|
#define _Handle_SMESHDS_Script_HeaderFile
|
||
|
|
||
|
#ifndef _Standard_Macro_HeaderFile
|
||
|
#include <Standard_Macro.hxx>
|
||
|
#endif
|
||
|
#ifndef _Standard_HeaderFile
|
||
|
#include <Standard.hxx>
|
||
|
#endif
|
||
|
|
||
|
#ifndef _Handle_MMgt_TShared_HeaderFile
|
||
|
#include <Handle_MMgt_TShared.hxx>
|
||
|
#endif
|
||
|
|
||
|
class Standard_Transient;
|
||
|
class Handle_Standard_Type;
|
||
|
class Handle(MMgt_TShared);
|
||
|
class SMESHDS_Script;
|
||
|
Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMESHDS_Script);
|
||
|
|
||
|
class Handle(SMESHDS_Script) : public Handle(MMgt_TShared) {
|
||
|
public:
|
||
|
inline void* operator new(size_t,void* anAddress)
|
||
|
{
|
||
|
return anAddress;
|
||
|
}
|
||
|
inline void* operator new(size_t size)
|
||
|
{
|
||
|
return Standard::Allocate(size);
|
||
|
}
|
||
|
inline void operator delete(void *anAddress)
|
||
|
{
|
||
|
if (anAddress) Standard::Free((Standard_Address&)anAddress);
|
||
|
}
|
||
|
// inline void operator delete(void *anAddress, size_t size)
|
||
|
// {
|
||
|
// if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
|
||
|
// }
|
||
|
Handle(SMESHDS_Script)():Handle(MMgt_TShared)() {}
|
||
|
Handle(SMESHDS_Script)(const Handle(SMESHDS_Script)& aHandle) : Handle(MMgt_TShared)(aHandle)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
Handle(SMESHDS_Script)(const SMESHDS_Script* anItem) : Handle(MMgt_TShared)((MMgt_TShared *)anItem)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
Handle(SMESHDS_Script)& operator=(const Handle(SMESHDS_Script)& aHandle)
|
||
|
{
|
||
|
Assign(aHandle.Access());
|
||
|
return *this;
|
||
|
}
|
||
|
|
||
|
Handle(SMESHDS_Script)& operator=(const SMESHDS_Script* anItem)
|
||
|
{
|
||
|
Assign((Standard_Transient *)anItem);
|
||
|
return *this;
|
||
|
}
|
||
|
|
||
|
SMESHDS_Script* operator->()
|
||
|
{
|
||
|
return (SMESHDS_Script *)ControlAccess();
|
||
|
}
|
||
|
|
||
|
SMESHDS_Script* operator->() const
|
||
|
{
|
||
|
return (SMESHDS_Script *)ControlAccess();
|
||
|
}
|
||
|
|
||
|
Standard_EXPORT ~Handle(SMESHDS_Script)();
|
||
|
|
||
|
Standard_EXPORT static const Handle(SMESHDS_Script) DownCast(const Handle(Standard_Transient)& AnObject);
|
||
|
};
|
||
|
#endif
|