Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef _Handle_SALOME_AISShape_HeaderFile
00028 #define _Handle_SALOME_AISShape_HeaderFile
00029
00030 #ifndef _Standard_Macro_HeaderFile
00031 #include <Standard_Macro.hxx>
00032 #endif
00033 #ifndef _Standard_HeaderFile
00034 #include <Standard.hxx>
00035 #endif
00036
00037 #ifndef _Handle_AIS_Shape_HeaderFile
00038 #include <Handle_AIS_Shape.hxx>
00039 #endif
00040
00041 class Standard_Transient;
00042 class Handle_Standard_Type;
00047 class Handle(AIS_Shape);
00048 class SALOME_AISShape;
00049 Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SALOME_AISShape);
00050
00055 class Handle(SALOME_AISShape) : public Handle(AIS_Shape) {
00056 public:
00057 inline void* operator new(size_t,void* anAddress)
00058 {
00059 return anAddress;
00060 }
00061 inline void* operator new(size_t size)
00062 {
00063 return Standard::Allocate(size);
00064 }
00065 inline void operator delete(void *anAddress)
00066 {
00067 if (anAddress) Standard::Free((Standard_Address&)anAddress);
00068 }
00069
00070
00071
00072
00073 Handle(SALOME_AISShape)():Handle(AIS_Shape)() {}
00074 Handle(SALOME_AISShape)(const Handle(SALOME_AISShape)& aHandle) : Handle(AIS_Shape)(aHandle)
00075 {
00076 }
00077
00078 Handle(SALOME_AISShape)(const SALOME_AISShape* anItem) : Handle(AIS_Shape)((AIS_Shape *)anItem)
00079 {
00080 }
00081
00082 Handle(SALOME_AISShape)& operator=(const Handle(SALOME_AISShape)& aHandle)
00083 {
00084 Assign(aHandle.Access());
00085 return *this;
00086 }
00087
00088 Handle(SALOME_AISShape)& operator=(const SALOME_AISShape* anItem)
00089 {
00090 Assign((Standard_Transient *)anItem);
00091 return *this;
00092 }
00093
00094 SALOME_AISShape* operator->()
00095 {
00096 return (SALOME_AISShape *)ControlAccess();
00097 }
00098
00099 SALOME_AISShape* operator->() const
00100 {
00101 return (SALOME_AISShape *)ControlAccess();
00102 }
00103
00104 Standard_EXPORT ~Handle(SALOME_AISShape)();
00105
00106 Standard_EXPORT static const Handle(SALOME_AISShape) DownCast(const Handle(Standard_Transient)& AnObject);
00107 };
00108 #endif