0023284: Using 'memcpy' on class that contains a virtual method
[occt.git] / samples / qt / Graphic3dDemo / inc / Handle_Sphere_BasicShape.hxx
CommitLineData
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_Sphere_BasicShape_HeaderFile
17#define _Handle_Sphere_BasicShape_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_AIS_Shape_HeaderFile
27#include <Handle_AIS_Shape.hxx>
28#endif
29
30class Standard_Transient;
31class Handle_Standard_Type;
32class Handle(AIS_Shape);
33class Sphere_BasicShape;
34Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(Sphere_BasicShape);
35
36class Handle(Sphere_BasicShape) : public Handle(AIS_Shape) {
37 public:
38 void* operator new(size_t,void* anAddress)
39 {
40 return anAddress;
41 }
42 void* operator new(size_t size)
43 {
44 return Standard::Allocate(size);
45 }
46 void operator delete(void *anAddress)
47 {
48 if (anAddress) Standard::Free((Standard_Address&)anAddress);
49 }
50 Handle(Sphere_BasicShape)():Handle(AIS_Shape)() {}
51 Handle(Sphere_BasicShape)(const Handle(Sphere_BasicShape)& aHandle) : Handle(AIS_Shape)(aHandle)
52 {
53 }
54
55 Handle(Sphere_BasicShape)(const Sphere_BasicShape* anItem) : Handle(AIS_Shape)((AIS_Shape *)anItem)
56 {
57 }
58
59 Handle(Sphere_BasicShape)& operator=(const Handle(Sphere_BasicShape)& aHandle)
60 {
61 Assign(aHandle.Access());
62 return *this;
63 }
64
65 Handle(Sphere_BasicShape)& operator=(const Sphere_BasicShape* anItem)
66 {
67 Assign((Standard_Transient *)anItem);
68 return *this;
69 }
70
71 Sphere_BasicShape* operator->()
72 {
73 return (Sphere_BasicShape *)ControlAccess();
74 }
75
76 Sphere_BasicShape* operator->() const
77 {
78 return (Sphere_BasicShape *)ControlAccess();
79 }
80
81 Standard_EXPORT ~Handle(Sphere_BasicShape)();
82
83 Standard_EXPORT static const Handle(Sphere_BasicShape) DownCast(const Handle(Standard_Transient)& AnObject);
84};
85#endif