7fd59977 |
1 | // File generated by CPPExt (Transient) |
2 | // |
3 | // Copyright (C) 1991,1995 by |
4 | // |
5 | // MATRA DATAVISION, FRANCE |
6 | // |
7 | // This software is furnished in accordance with the terms and conditions |
8 | // of the contract and with the inclusion of the above copyright notice. |
9 | // This software or any other copy thereof may not be provided or otherwise |
10 | // be made available to any other person. No title to an ownership of the |
11 | // software is hereby transferred. |
12 | // |
13 | // At the termination of the contract, the software and all copies of this |
14 | // software must be deleted. |
15 | |
16 | #ifndef _Handle_TOcafFunction_BoxDriver_HeaderFile |
17 | #define _Handle_TOcafFunction_BoxDriver_HeaderFile |
18 | |
19 | #ifndef _Standard_Macro_HeaderFile |
20 | #include <Standard_Macro.hxx> |
21 | #endif |
22 | #ifndef _Standard_HeaderFile |
23 | #include <Standard.hxx> |
24 | #endif |
25 | |
26 | #ifndef _Handle_TFunction_Driver_HeaderFile |
27 | #include <Handle_TFunction_Driver.hxx> |
28 | #endif |
29 | |
30 | class Standard_Transient; |
31 | class Handle_Standard_Type; |
32 | class Handle(TFunction_Driver); |
33 | class TOcafFunction_BoxDriver; |
34 | Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(TOcafFunction_BoxDriver); |
35 | |
36 | class Handle(TOcafFunction_BoxDriver) : public Handle(TFunction_Driver) { |
37 | public: |
38 | inline void* operator new(size_t,void* anAddress) |
39 | { |
40 | return anAddress; |
41 | } |
42 | inline void* operator new(size_t size) |
43 | { |
44 | return Standard::Allocate(size); |
45 | } |
46 | inline void operator delete(void *anAddress) |
47 | { |
48 | if (anAddress) Standard::Free((Standard_Address&)anAddress); |
49 | } |
50 | // inline void operator delete(void *anAddress, size_t size) |
51 | // { |
52 | // if (anAddress) Standard::Free((Standard_Address&)anAddress,size); |
53 | // } |
54 | Handle(TOcafFunction_BoxDriver)():Handle(TFunction_Driver)() {} |
55 | Handle(TOcafFunction_BoxDriver)(const Handle(TOcafFunction_BoxDriver)& aHandle) : Handle(TFunction_Driver)(aHandle) |
56 | { |
57 | } |
58 | |
59 | Handle(TOcafFunction_BoxDriver)(const TOcafFunction_BoxDriver* anItem) : Handle(TFunction_Driver)((TFunction_Driver *)anItem) |
60 | { |
61 | } |
62 | |
63 | Handle(TOcafFunction_BoxDriver)& operator=(const Handle(TOcafFunction_BoxDriver)& aHandle) |
64 | { |
65 | Assign(aHandle.Access()); |
66 | return *this; |
67 | } |
68 | |
69 | Handle(TOcafFunction_BoxDriver)& operator=(const TOcafFunction_BoxDriver* anItem) |
70 | { |
71 | Assign((Standard_Transient *)anItem); |
72 | return *this; |
73 | } |
74 | |
75 | TOcafFunction_BoxDriver* operator->() |
76 | { |
77 | return (TOcafFunction_BoxDriver *)ControlAccess(); |
78 | } |
79 | |
80 | TOcafFunction_BoxDriver* operator->() const |
81 | { |
82 | return (TOcafFunction_BoxDriver *)ControlAccess(); |
83 | } |
84 | |
85 | Standard_EXPORT ~Handle(TOcafFunction_BoxDriver)(); |
86 | |
87 | Standard_EXPORT static const Handle(TOcafFunction_BoxDriver) DownCast(const Handle(Standard_Transient)& AnObject); |
88 | }; |
89 | #endif |