1 // File generated by CPPExt (Transient)
3 // Copyright (C) 1991 - 2000 by
4 // Matra Datavision SA. All rights reserved.
6 // Copyright (C) 2001 - 2004 by
7 // Open CASCADE SA. All rights reserved.
9 // This file is part of the Open CASCADE Technology software.
11 // This software may be distributed and/or modified under the terms and
12 // conditions of the Open CASCADE Public License as defined by Open CASCADE SA
13 // and appearing in the file LICENSE included in the packaging of this file.
15 // This software is distributed on an "AS IS" basis, without warranty of any
16 // kind, and Open CASCADE SA hereby disclaims all such warranties,
17 // including without limitation, any warranties of merchantability, fitness
18 // for a particular purpose or non-infringement. Please see the License for
19 // the specific terms and conditions governing rights and limitations under the
22 #ifndef _Handle_BlockFix_BlockFixAPI_HeaderFile
23 #define _Handle_BlockFix_BlockFixAPI_HeaderFile
25 #ifndef _Standard_Macro_HeaderFile
26 #include <Standard_Macro.hxx>
28 #ifndef _Standard_HeaderFile
29 #include <Standard.hxx>
32 #ifndef _Handle_MMgt_TShared_HeaderFile
33 #include <Handle_MMgt_TShared.hxx>
36 class Standard_Transient;
37 class Handle_Standard_Type;
38 class Handle(MMgt_TShared);
39 class BlockFix_BlockFixAPI;
40 Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(BlockFix_BlockFixAPI);
42 class Handle(BlockFix_BlockFixAPI) : public Handle(MMgt_TShared) {
44 void* operator new(size_t,void* anAddress)
48 void* operator new(size_t size)
50 return Standard::Allocate(size);
52 void operator delete(void *anAddress)
54 if (anAddress) Standard::Free((Standard_Address&)anAddress);
56 Handle(BlockFix_BlockFixAPI)():Handle(MMgt_TShared)() {}
57 Handle(BlockFix_BlockFixAPI)(const Handle(BlockFix_BlockFixAPI)& aHandle) : Handle(MMgt_TShared)(aHandle)
61 Handle(BlockFix_BlockFixAPI)(const BlockFix_BlockFixAPI* anItem) : Handle(MMgt_TShared)((MMgt_TShared *)anItem)
65 Handle(BlockFix_BlockFixAPI)& operator=(const Handle(BlockFix_BlockFixAPI)& aHandle)
67 Assign(aHandle.Access());
71 Handle(BlockFix_BlockFixAPI)& operator=(const BlockFix_BlockFixAPI* anItem)
73 Assign((Standard_Transient *)anItem);
77 BlockFix_BlockFixAPI* operator->()
79 return (BlockFix_BlockFixAPI *)ControlAccess();
82 BlockFix_BlockFixAPI* operator->() const
84 return (BlockFix_BlockFixAPI *)ControlAccess();
87 Standard_EXPORT ~Handle(BlockFix_BlockFixAPI)();
89 Standard_EXPORT static const Handle(BlockFix_BlockFixAPI) DownCast(const Handle(Standard_Transient)& AnObject);