]> OCCT Git - occt-copy.git/commitdiff
0025622: CAST analysis: Avoid invocation of virtual Methods of the declared Class...
authorazn <azn@opencascade.com>
Thu, 18 Dec 2014 07:27:01 +0000 (10:27 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 29 Jan 2015 10:43:36 +0000 (13:43 +0300)
The Delete() methods have been deleted from the following classes:
- Adaptor2d_Curve2d
- Adaptor3d_Curve
- Adaptor3d_Surface
- AppBlend_Approx
- AppCont_Function
- AppParCurves_MultiCurve
- AppParCurves_MultiPoint
- ApproxInt_SvSurfaces
- BRepPrim_OneAxis
- BRepSweep_NumLinearRegularSweep
- BRepSweep_Translation
- BRepSweep_Trsf
- DBC_BaseArray
- GeomFill_Profiler
- HatchGen_PointOnHatching
- math_BFGS
- math_FunctionSet
- math_FunctionSetRoot
- math_FunctionWithDerivative
- math_MultipleVarFunction
- math_MultipleVarFunctionWithHessian
- math_MultipleVarFunctionWithGradient
- math_Powell
- math_NewtonMinimum
- math_NewtonFunctionSetRoot
- math_BissecNewton (just add virtual destructor)
- math_FRPR
- math_BrentMinimum (just add virtual destructor)
- OSD_Chronometer
- ProjLib_Projector

Virtual methods Delete() or Destroy() of the transient inheritors is not changed (-> separate issue).
Classes Graphic3d_DataStructureManager and PrsMgr_Presentation without changes.

63 files changed:
src/Adaptor2d/Adaptor2d_Curve2d.cdl
src/Adaptor2d/Adaptor2d_Curve2d.cxx
src/Adaptor3d/Adaptor3d_Curve.cdl
src/Adaptor3d/Adaptor3d_Curve.cxx
src/Adaptor3d/Adaptor3d_Surface.cdl
src/Adaptor3d/Adaptor3d_Surface.cxx
src/AppBlend/AppBlend_Approx.cdl
src/AppBlend/AppBlend_Approx.cxx
src/AppCont/AppCont_Function.hxx
src/AppParCurves/AppParCurves_MultiCurve.cdl
src/AppParCurves/AppParCurves_MultiCurve.cxx
src/AppParCurves/AppParCurves_MultiPoint.cdl
src/AppParCurves/AppParCurves_MultiPoint.cxx
src/ApproxInt/ApproxInt_SvSurfaces.cdl
src/ApproxInt/ApproxInt_SvSurfaces.cxx
src/BRepPrim/BRepPrim_OneAxis.cdl
src/BRepPrim/BRepPrim_OneAxis.cxx
src/BRepSweep/BRepSweep_NumLinearRegularSweep.cdl
src/BRepSweep/BRepSweep_NumLinearRegularSweep.cxx
src/BRepSweep/BRepSweep_Translation.cdl
src/BRepSweep/BRepSweep_Translation.cxx
src/BRepSweep/BRepSweep_Trsf.cdl
src/BRepSweep/BRepSweep_Trsf.cxx
src/DBC/DBC_BaseArray.cdl
src/DBC/DBC_BaseArray.cxx
src/GeomFill/GeomFill_Profiler.cdl
src/GeomFill/GeomFill_Profiler.cxx
src/HatchGen/HatchGen_IntersectionPoint.cdl
src/HatchGen/HatchGen_IntersectionPoint.cxx
src/HatchGen/HatchGen_PointOnHatching.cdl
src/HatchGen/HatchGen_PointOnHatching.cxx
src/Interface/Interface_CopyTool.cdl
src/Interface/Interface_CopyTool.cxx
src/OSD/OSD_Chronometer.cdl
src/OSD/OSD_Chronometer.cxx
src/ProjLib/ProjLib_Projector.cdl
src/ProjLib/ProjLib_Projector.cxx
src/math/math_BFGS.cdl
src/math/math_BFGS.cxx
src/math/math_BissecNewton.cdl
src/math/math_BissecNewton.cxx
src/math/math_BrentMinimum.cdl
src/math/math_BrentMinimum.cxx
src/math/math_FRPR.cdl
src/math/math_FRPR.cxx
src/math/math_FunctionSet.cdl
src/math/math_FunctionSet.cxx
src/math/math_FunctionSetRoot.cdl
src/math/math_FunctionSetRoot.cxx
src/math/math_FunctionWithDerivative.cdl
src/math/math_FunctionWithDerivative.cxx
src/math/math_MultipleVarFunction.cdl
src/math/math_MultipleVarFunction.cxx
src/math/math_MultipleVarFunctionWithGradient.cdl
src/math/math_MultipleVarFunctionWithGradient.cxx [deleted file]
src/math/math_MultipleVarFunctionWithHessian.cdl
src/math/math_MultipleVarFunctionWithHessian.cxx [deleted file]
src/math/math_NewtonFunctionSetRoot.cdl
src/math/math_NewtonFunctionSetRoot.cxx
src/math/math_NewtonMinimum.cdl
src/math/math_NewtonMinimum.cxx
src/math/math_Powell.cdl
src/math/math_Powell.cxx

index ec83a3870d0606c43feb915beef358c368cd1278..70ccdaa66e4d3abf6f65bce0193bdeba0eb64966 100644 (file)
@@ -52,9 +52,6 @@ is
     --     Global methods - Apply to the whole curve.
     --     
     
-    Delete(me:out) is virtual;
-    ---C++: alias "Standard_EXPORT virtual ~Adaptor2d_Curve2d(){Delete();}"
-    
     FirstParameter(me) returns Real
     is virtual;
 
@@ -229,6 +226,8 @@ is
      raises 
        NoSuchObject from Standard
      is virtual;
+
+     ---C++: alias "  Standard_EXPORT virtual ~Adaptor2d_Curve2d();"
      
 end Curve2d;
 
index 7a0a83e0146b608792a8113590070a46e1a84f04..f029cdaba6ce98e0d9af5e0e4f3b0a1473025288 100644 (file)
 #include <Adaptor2d_Curve2d.ixx>
 #include <Standard_NotImplemented.hxx>
 
-void Adaptor2d_Curve2d::Delete()
-{}
+
+//=======================================================================
+//function : ~Adaptor2d_Curve2d
+//purpose  : Destructor
+//=======================================================================
+
+Adaptor2d_Curve2d::~Adaptor2d_Curve2d()
+{
+}
 
 //=======================================================================
 //function : FirstParameter
index be3eaca68f367a7a8f88f567624509bae9b6104c..a204786f4a6a1b3ac1726fa3ab6cf84181c5dd4b 100644 (file)
@@ -54,9 +54,6 @@ is
     --     Global methods - Apply to the whole curve.
     --     
     
-    Delete(me:out) is virtual;
-    ---C++: alias "Standard_EXPORT virtual ~Adaptor3d_Curve(){Delete();}"
-    
     FirstParameter(me) returns Real
     is virtual;
 
@@ -245,6 +242,8 @@ is
      raises 
        NoSuchObject from Standard
      is virtual;
+
+     ---C++: alias "  Standard_EXPORT virtual ~Adaptor3d_Curve();"
     
 end Curve;
 
index 3798d759961a592edb9353469e561a6b24b88236..376c02f91f966b114036ee2d55b950152c867f5a 100644 (file)
 #include <Adaptor3d_Curve.ixx>
 #include <Standard_NotImplemented.hxx>
 
-void Adaptor3d_Curve::Delete()
-{}
+//=======================================================================
+//function : ~Adaptor3d_Curve
+//purpose  : Destructor
+//=======================================================================
+
+Adaptor3d_Curve::~Adaptor3d_Curve()
+{
+}
 
 //=======================================================================
 //function : FirstParameter
index bf2c6caea01570929907af442529a6e777694230..1ddeb8ad412552356d56a128915f51a2dd770b4d 100644 (file)
@@ -62,9 +62,6 @@ is
     --     Global methods - Apply to the whole surface.
     --     
     
-    Delete(me:out) is virtual;
-    ---C++: alias "Standard_EXPORT virtual ~Adaptor3d_Surface(){Delete();}"
-    
     FirstUParameter(me) returns Real
     is virtual;
 
@@ -315,6 +312,8 @@ is
     raises 
        NoSuchObject from Standard -- only for Offset Surface
     is virtual;
+
+    ---C++: alias "  Standard_EXPORT virtual ~Adaptor3d_Surface();"
        
 end Surface;
 
index 79b84db1822c9f4a557998c0e05bcf5776f58b63..7596ad6b3fca61f131a4bf86870514f99f8dc309 100644 (file)
 #include <Adaptor3d_Surface.ixx>
 #include <Standard_NotImplemented.hxx>
 
-void Adaptor3d_Surface::Delete()
-{}
+//=======================================================================
+//function : ~Adaptor3d_Surface
+//purpose  : Destructor
+//=======================================================================
+
+Adaptor3d_Surface::~Adaptor3d_Surface()
+{
+}
 
 //=======================================================================
 //function : FirstUParameter
index 65da8ebf9d152729d414f094ee023c619e859fc7..7a0e0eb73305bef13e9994289e06064af508b737 100644 (file)
@@ -35,13 +35,6 @@ raises NotDone     from StdFail,
 
 is
 
-
-
-    Delete(me:out) is virtual;
-    ---C++: alias "Standard_EXPORT virtual ~AppBlend_Approx(){Delete() ; }"
-    
-
-
     IsDone(me)
         returns Boolean from Standard  
        is deferred;
@@ -204,5 +197,6 @@ is
        raises NotDone from StdFail
         is deferred;    
                     
+    ---C++: alias "  Standard_EXPORT virtual ~AppBlend_Approx();"
 
 end Approx;
index 7f74e9809d944d362b5df1eafb199e2a19651d83..71871392c7ab148ae50ae8b936291129b7eb011e 100644 (file)
 
 #include <AppBlend_Approx.ixx>
 
-void AppBlend_Approx::Delete()
-{}
+//=======================================================================
+//function : AppBlend_Approx
+//purpose  : Destructor
+//=======================================================================
+AppBlend_Approx::~AppBlend_Approx()
+{
+}
index f82dd242533727857be444c3108fc49b5f0734e3..7fec8b81bfa7dd8e16493164f6ce2d7998f23a52 100644 (file)
@@ -54,6 +54,7 @@ public:
     return myNbPnt2d;
   }
 
+  //! Destructor
   Standard_EXPORT virtual ~AppCont_Function() {}
 
   //! Returns the first parameter of the function.
index 5a8a72edf6baf205fd999641d995291e738b6c9d..56f554f1cc0992ee6ea873784581c762419cef97 100644 (file)
@@ -80,11 +80,9 @@ is
 
     returns MultiCurve from AppParCurves
     raises ConstructionError from Standard;
-    
-    
-    Delete(me:out) is virtual;
-    ---C++: alias "Standard_EXPORT virtual ~AppParCurves_MultiCurve(){Delete();}"
-    
+
+    ---C++: alias "  Standard_EXPORT virtual ~AppParCurves_MultiCurve();"
+
     SetNbPoles(me: in out; nbPoles: Integer)
        ---Purpose: The number of poles of the MultiCurve 
        --          will be set to <nbPoles>.
index 15f44812b894a0204eb5be4d63118ac1accf2197..a40d02669aca8f1b1ee4a08de43a76135839ae4e 100644 (file)
@@ -40,8 +40,9 @@ AppParCurves_MultiCurve::AppParCurves_MultiCurve (const AppParCurves_Array1OfMul
 
 }
 
-void AppParCurves_MultiCurve::Delete()
-{}
+AppParCurves_MultiCurve::~AppParCurves_MultiCurve()
+{
+}
 
 Standard_Integer AppParCurves_MultiCurve::Dimension (const Standard_Integer Index) const {
   Standard_Integer Lo = tabPoint->Lower();
index f03305e3e9bfadabc75273884ae65ee9fec425d1..2687844e808bfdb2edaf358930d9ea2725fdd298 100644 (file)
@@ -74,10 +74,8 @@ is
        --          NbPoints is the total number of Points.
    
     returns MultiPoint from AppParCurves;   
-   
-       
-    Delete(me:out) is virtual;
-    ---C++: alias "Standard_EXPORT virtual ~AppParCurves_MultiPoint(){Delete();}"
+
+    ---C++: alias "  Standard_EXPORT virtual ~AppParCurves_MultiPoint();"
     
     SetPoint(me: in out; Index: Integer; Point: Pnt)
        ---Purpose: the 3d Point of range Index of this MultiPoint is 
index c5f6e02ef1e62fdaa9c302844d4994a81c7b34c3..96964b6679c63cf5e37f0d90cf7e1f7cea8d7580 100644 (file)
@@ -99,8 +99,9 @@ AppParCurves_MultiPoint::AppParCurves_MultiPoint(const TColgp_Array1OfPnt&   tab
   }
 }
 
-void AppParCurves_MultiPoint::Delete()
-{}
+AppParCurves_MultiPoint::~AppParCurves_MultiPoint()
+{
+}
 
 void AppParCurves_MultiPoint::Transform(const Standard_Integer CuIndex,
                                        const Standard_Real    x,
index be385ba59a06e4c89a877ca05b3d6eda055a29a6..00433dd45a5321325d2cd392a3a84c6d1a0ad93f 100644 (file)
@@ -24,9 +24,6 @@ uses
 
 is 
 
-    Delete(me:out) is virtual;
-    ---C++: alias "Standard_EXPORT virtual ~ApproxInt_SvSurfaces(){Delete() ; }"
-    
     Compute(me: in out; 
             u1,v1,u2,v2: in out Real from Standard;
            Pt: out Pnt from gp;
@@ -52,7 +49,9 @@ is
     TangencyOnSurf2(me: in out;
                    u1,v1,u2,v2: in Real from Standard;
                    Tg: out Vec2d from gp)
-       returns Boolean from Standard is deferred;   
+       returns Boolean from Standard is deferred;
+
+    ---C++: alias "  Standard_EXPORT virtual ~ApproxInt_SvSurfaces();"
     
 end SvSurfaces;
 
index 6629cc2887418fd12cf11bb8dadfca3c08db511d..f73cd5051802c6b179db289f77e8e33312fd7031 100644 (file)
 
 #include <ApproxInt_SvSurfaces.ixx>
 
-void ApproxInt_SvSurfaces::Delete()
-{}
+//=======================================================================
+//function : ~ApproxInt_SvSurfaces
+//purpose  : Destructor
+//=======================================================================
+ApproxInt_SvSurfaces::~ApproxInt_SvSurfaces()
+{
+}
index a4d1782763824fd7909055aef810394dff1cde6b..5c74fe7b8fc6adc58dfadb0ea2cb09f3ca024236 100644 (file)
@@ -67,9 +67,6 @@ raises
     OutOfRange
 
 is
-    Delete(me:out) is virtual ;
-    ---C++: alias ~
-    
     Initialize(B : Builder from BRepPrim; 
               A : Ax2 from gp; 
               VMin, VMax : Real from  Standard);
@@ -433,6 +430,8 @@ is
     raises DomainError -- if VMinInfinite()
     is static;
 
+    ---C++ : alias "  Standard_EXPORT virtual ~BRepPrim_OneAxis();"
+
 fields
     myBuilder  : Builder from BRepPrim   is protected;  
     myAxes     : Ax2 from gp;
index 596dc949dec23ebde6b0eb64cc7b643bc9e7f568..abaa8bb773f667be566639f05d1f50d09ef85571 100644 (file)
@@ -129,8 +129,14 @@ BRepPrim_OneAxis::BRepPrim_OneAxis(const BRepPrim_Builder& B,
 
 }
 
-void BRepPrim_OneAxis::Delete()
-{}
+//=======================================================================
+//function : ~BRepPrim_OneAxis
+//purpose  : Destructor
+//=======================================================================
+
+BRepPrim_OneAxis::~BRepPrim_OneAxis()
+{
+}
 
 //=======================================================================
 //function : SetMeridianOffset
index 82688becc35374eba9cf06e8aff4cc1f5c29a984..a795532bdb78443a0ff0bfa01f38bc43f62e13a8 100644 (file)
@@ -81,15 +81,11 @@ is
 
     -- """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 
-    Delete(me:out) is virtual ;
-    ---C++: alias ~
-    
     Initialize(aBuilder  : Builder from BRepSweep;
               aGenShape : Shape from TopoDS;
               aDirWire  : NumShape from Sweep);
        ---Purpose: Creates a NumLinearRegularSweep.    <aBuilder>  gives
        --          basic topological services.
-    
 
     -- """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
     --  Deferred Methods supporting the creation of the geometric part.
@@ -97,10 +93,10 @@ is
     -- """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
     
     MakeEmptyVertex(me : in out; aGenV: Shape from TopoDS; aDirV: NumShape from Sweep)
-    returns Shape from TopoDS 
+    returns Shape from TopoDS is deferred;
        ---Purpose: Builds the vertex addressed by [aGenV,aDirV], with its
        --          geometric part, but without subcomponents.
-    is deferred;
+    ---C++ : alias "  Standard_EXPORT virtual ~BRepSweep_NumLinearRegularSweep();"
     
     MakeEmptyDirectingEdge(me: in out; aGenV: Shape from TopoDS; aDirE: NumShape from Sweep)
     returns Shape from TopoDS
@@ -326,8 +322,7 @@ is
     
     
     Closed(me) returns Boolean from Standard is static;
-    
-    
+
 fields
 
     -- Topology builder.
index 7a9d71a1a909e33a697503c096960fb79d275b5f..757a9e7f7b1fab3b5a7b6564500afd5c4f854a5f 100644 (file)
@@ -62,8 +62,14 @@ BRepSweep_NumLinearRegularSweep::BRepSweep_NumLinearRegularSweep
   myBuiltShapes.Init(Standard_False); 
 }
 
-void BRepSweep_NumLinearRegularSweep::Delete()
-{}
+//=======================================================================
+//function : ~BRepSweep_NumLinearRegularSweep
+//purpose  : Destructor
+//=======================================================================
+
+BRepSweep_NumLinearRegularSweep::~BRepSweep_NumLinearRegularSweep()
+{
+}
 
 //=======================================================================
 //function : Shape
index 1968023f589d5c1dae5f5c8ddf503c9ef4ab5d18..14d8a4a5dbbac93541428c72ca0193e422c160d9 100644 (file)
@@ -45,9 +45,6 @@ is
     raises
        ConstructionError from Standard; -- if <V> is null
 
-    Delete(me:out) is redefined;
-    ---C++: alias "Standard_EXPORT virtual ~BRepSweep_Translation(){Delete() ; }"
-    
     -- """"""""""""""""""""""""""""""""""""""""""""""""""""""
     -- Methods supporting the creation of the geometric part.
     -- """"""""""""""""""""""""""""""""""""""""""""""""""""""
index 64035738e76fd1a9e99f622cbbe6fade3e78fe15..95eaee2b3d7d44c37c711f8fcdca82a06adaeecf 100644 (file)
@@ -94,10 +94,6 @@ BRepSweep_Translation::BRepSweep_Translation(const TopoDS_Shape& S,
   Init();
 }
 
-void BRepSweep_Translation::Delete()
-{}
-
-
 //=======================================================================
 //function : MakeEmptyVertex
 //purpose  : 
index 2f24b321e3761b46f3cd1fe18eb480718d2b4746..55caa03de28d6c3be303e6eb82871c9b4267b466 100644 (file)
@@ -42,10 +42,6 @@ uses
     Orientation from TopAbs
     
 is
-
-    Delete(me:out) is redefined;
-    ---C++: alias "Standard_EXPORT virtual ~BRepSweep_Trsf(){Delete() ; }"
-    
     Initialize(aBuilder  : Builder from BRep;
                aGenShape : Shape from TopoDS;
               aDirWire  : NumShape from Sweep;
index e24f0b460d3e42485607f15c34252161c4a25b0c..b42f6f2ae23adcf63af966712e62ceeb6b238d8d 100644 (file)
@@ -40,10 +40,6 @@ BRepSweep_Trsf::BRepSweep_Trsf(const BRep_Builder& aBuilder,
 {
 }
 
-void BRepSweep_Trsf::Delete()
-{}
-
-
 void BRepSweep_Trsf::Init()
 {
   if(!myCopy){
index 49e17114d525bb13b101cf78b4ae5f6544e01dff..548d9f4eaf1e54ded0d1b56663547a10140645ad 100644 (file)
@@ -35,8 +35,7 @@ is
     ---Purpose: Creates an array which  is the copy of the given
     --          argument.
 
-    Delete ( me : out ) is redefined;
-    ---C++: alias "Standard_EXPORT virtual ~DBC_BaseArray(){Delete();}"
+    ---C++: alias "  Standard_EXPORT virtual ~DBC_BaseArray();"
 
     Length (me) returns Integer is static ;
     ---C++: inline
index d7372449bb5d0ad3744b98326e9fa4407350bb1e..11362bb700861d0ee5b07b1898eef6cb7d17c68f 100644 (file)
@@ -163,8 +163,9 @@ DBC_BaseArray::DBC_BaseArray (const DBC_BaseArray& Other)
 
 }
 
-void DBC_BaseArray::Delete()
-{}
+DBC_BaseArray::~DBC_BaseArray()
+{
+}
 
 
 // --------------------------------------------------------------------
index 4e998ee33ceb601fdaa0083a387e685f983e16cb..6db39353e49ac3af216edc22a4f62c458b6b4c47 100644 (file)
@@ -37,8 +37,7 @@ raises
 is
     Create returns Profiler from GeomFill;
     
-    Delete(me:out) is virtual;
-    ---C++: alias "Standard_EXPORT virtual ~GeomFill_Profiler(){Delete() ; }"
+    ---C++: alias "  Standard_EXPORT virtual ~GeomFill_Profiler();"
     
     AddCurve( me    : in out;
               Curve : in Curve from Geom)
index 38c36ef3c8e2c14fbe7ac0440c750e7a1241f4ef..8b8e703cdb433166d71937a4fe87334c5551abea 100644 (file)
@@ -125,8 +125,9 @@ GeomFill_Profiler::GeomFill_Profiler()
 
 //=======================================================================
 
-void GeomFill_Profiler::Delete()
-{}
+GeomFill_Profiler::~GeomFill_Profiler()
+{
+}
 
 
 //=======================================================================
index da809f55c3c51a5370fcd29d553bea3b9dfb49e8..3741d479ce80878ff24093d71351131aaa61bae5 100644 (file)
@@ -170,7 +170,9 @@ is
     
        ---Purpose: Dump of the point on element.
 
-       is deferred ;
+       is deferred;
+
+    ---C++: alias "  Standard_EXPORT virtual ~HatchGen_IntersectionPoint();"
        
 
 fields
index a2ab0960308c0d638af4242eaa9ed6008c462562..60449c4925777667f32557b53b26fd6b1eccb5e2 100644 (file)
@@ -32,6 +32,16 @@ HatchGen_IntersectionPoint::HatchGen_IntersectionPoint () :
 {
 }
 
+//=======================================================================
+// Function : ~HatchGen_IntersectionPoint
+// Purpose  : Destructor
+//=======================================================================
+
+HatchGen_IntersectionPoint::~HatchGen_IntersectionPoint()
+{
+}
+
+
 //=======================================================================
 // Function : SetIndex
 // Purpose  : Sets the index of the supporting curve.
index e398cc6b9bdb3032bc4876a79f0860f2b24da1d3..28166a4de40ee9e306b3ca7080fb4916e7e68ff7 100644 (file)
@@ -58,11 +58,6 @@ is
        ---Category: PointOnHatching
 
        returns PointOnHatching from HatchGen ;
-
-
-    Delete (me : out) is virtual;
-    ---C++: alias "Standard_EXPORT virtual ~HatchGen_PointOnHatching(){Delete();}"
-    ---Purpose: linux porting      
    
     AddPoint (me : in out ; Point     : PointOnElement from HatchGen ;
                            Confusion : Real           from Standard)
index e87a9823543f2d75af35695869850467dba7aa91..e3795ee0e04e964585715adb5276df7e9176ac9d 100644 (file)
@@ -68,9 +68,6 @@ HatchGen_PointOnHatching::HatchGen_PointOnHatching (const IntRes2d_IntersectionP
   myPoints.Clear() ;
 }
 
-void HatchGen_PointOnHatching::Delete()
-{}
-
 //=======================================================================
 // Function : AddPoint
 // Purpose  : Adds a point on element to the point.
@@ -88,7 +85,6 @@ void HatchGen_PointOnHatching::AddPoint (const HatchGen_PointOnElement& Point,
   if (IPnt > NbPnt) myPoints.Append (Point) ;
 }
 
-
 //=======================================================================
 // Function : NbPoints
 // Purpose  : Returns the number of elements intersecting the hatching at
index b04fddf4ae2810f951f7a4143aae17d10a7aef18..46e066b9887cf7bf6e5e189b95f2e4f414dd2330 100644 (file)
@@ -192,8 +192,7 @@ is
     --           asked for copy by the user of CopyTool, not by copying
     --           another Entity)
 
-    Destroy (me: in out) is virtual;
-    ---C++: alias "Standard_EXPORT virtual ~Interface_CopyTool() { Destroy(); }"
+    ---C++: alias "  Standard_EXPORT virtual ~Interface_CopyTool();"
 
     fields
 
index bad635d636ac14112c05704b6b061dfbe7663e96..f1e891f9ed4a03841726ee263b1567d02805cdce 100644 (file)
@@ -325,4 +325,11 @@ Interface_CopyTool::Interface_CopyTool
   return iter;
 }
 
-void Interface_CopyTool::Destroy(){}
+//=======================================================================
+//function : ~Interface_CopyTool
+//purpose  : Destructor
+//=======================================================================
+
+Interface_CopyTool::~Interface_CopyTool()
+{
+}
index dc18480d700f08277ecb4260408a4abe41e5749f..2cbcd4db10d47b0146d3635420b17cc3f8590837 100644 (file)
@@ -42,8 +42,7 @@ is
   --
   ---Level: Public
 
-  Destroy ( me : out ) is virtual;
-  ---C++: alias ~
+  ---C++ : alias "  Standard_EXPORT virtual ~OSD_Chronometer();"
 
   Reset (me : in out) is virtual;
   ---Purpose: Stops and Reinitializes the Chronometer.
index 6d95272d16dfc3995f177ff7478e3b3613a9a5ed..eaf34b4818ecc9c6f05cc50620ea29227fa525b9 100644 (file)
@@ -171,10 +171,10 @@ OSD_Chronometer::OSD_Chronometer(const Standard_Boolean ThisThreadOnly)
 }
 
 //=======================================================================
-//function :  Destroy
-//purpose  :
+//function : ~OSD_Chronometer
+//purpose  : Destructor
 //=======================================================================
-void OSD_Chronometer::Destroy ()
+OSD_Chronometer::~OSD_Chronometer()
 {
 }
 
index 31a08580bf629ef50447ea34c88420c69e6a98c6..b38fb5ea0d14c4d4032d1e2c77af62b2e5eff92f 100644 (file)
@@ -42,8 +42,7 @@ is
      Create ;
        ---Purpose: Sets the type to OtherCurve
        
-     Delete(me:out) is virtual;
-     ---C++: alias "Standard_EXPORT virtual ~ProjLib_Projector(){Delete() ; }"
+     ---C++: alias "  Standard_EXPORT virtual ~ProjLib_Projector();"
     
      IsDone(me) returns Boolean from Standard
      is static;
index 5c1660b1b43aee4aa65c30c9f3596c521c9f32a6..11c1a68fa78014114ceccfd401a636ad595695dc 100644 (file)
 //=======================================================================
 
 ProjLib_Projector::ProjLib_Projector()
-{}
+{
+}
 
 
 //=======================================================================
-void ProjLib_Projector::Delete()
-{}
+//function : ~ProjLib_Projector
+//purpose  :  Destructor
+//=======================================================================
 
+ProjLib_Projector::~ProjLib_Projector()
+{
+}
 
 
 //=======================================================================
index 5c004ccffe1759d1dd4461ff01eabff485ffd830..d7eba035285278c0905e356e5d30a7b52e19887e 100644 (file)
@@ -43,9 +43,7 @@ is
         -- function F.
     returns BFGS;
 
-    
-    Delete(me:out) is virtual;
-       ---C++: alias "Standard_EXPORT virtual ~math_BFGS(){Delete() ; }"
+    ---C++: alias "Standard_EXPORT virtual ~math_BFGS();"
     
     Perform(me: in out; F: in out MultipleVarFunctionWithGradient;
             StartingPoint: Vector)
index 65e5b3a748095f7433c464f7c135819fa01b9110..840a1b382ec4c5442a603955bf3577f16488ab86 100644 (file)
@@ -281,8 +281,9 @@ void  math_BFGS::Perform(math_MultipleVarFunctionWithGradient& F,
     }
 
 
-    void math_BFGS::Delete()
-    {}
+    math_BFGS::~math_BFGS()
+    {
+    }
 
     void math_BFGS::Dump(Standard_OStream& o) const {
 
index 070df9f7b6faf85e7207ae6d6de29eca4a08d39c..e32d1ff143bfd037b970eb74253ebe635f428847 100644 (file)
@@ -51,8 +51,9 @@ is
        -- The maximum number of iterations allowed is given by NbIterations.
 
     returns BissecNewton;
-    
-    
+
+    ---C++: alias "  Standard_EXPORT virtual ~math_BissecNewton();"    
+
     IsSolutionReached(me: in out; F: out FunctionWithDerivative)
        ---Purpose:    
        -- This method is called at the end of each iteration to check if the
index 7671523b19516484534e83dd25423371ad994be3..b2d0c71bf1966978d871a08b8385dd5b9f42e3d9 100644 (file)
@@ -15,6 +15,9 @@
 #include <math_BissecNewton.ixx>
 #include <math_FunctionWithDerivative.hxx>
 
+math_BissecNewton::~math_BissecNewton()
+{
+}
 
 void math_BissecNewton::Perform(math_FunctionWithDerivative& F,
                                const Standard_Real    Bound1,
index 82584c47e11fc7d9f009f09799be175f1aed1095..2501732a3a140692337660f4cfb7e2d43cf910b8 100644 (file)
@@ -64,8 +64,9 @@ is
        -- The maximum number of iterations allowed is given by NbIterations.
     
     returns BrentMinimum;
-    
-    
+
+    ---C++: alias "  Standard_EXPORT virtual ~math_BrentMinimum();"
+
     Perform(me: in out; F: in out Function; 
             Ax, Bx, Cx: Real)
        ---Purpose: 
@@ -85,11 +86,11 @@ is
        -- solution is found.
        -- It can be redefined in a sub-class to implement a specific test to
        -- stop the iterations.
-    
+
     returns Boolean
     is virtual;
-    
-    
+
+
     IsDone(me)
        ---Purpose: Returns true if the computations are successful, otherwise returns false.
        ---C++: inline
index 64d7eae83301705525028c1e8a19960beef6d5b6..a959769dec810dff830ec57083cc10486d265df7 100644 (file)
 #define SIGN(a,b)     ((b) > 0.0 ? fabs(a) : -fabs(a))
 #define SHFT(a,b,c,d) (a)=(b);(b)=(c);(c)=(d)
 
+math_BrentMinimum::~math_BrentMinimum()
+{
+}
+
 void math_BrentMinimum::Perform(math_Function& F,
                                const Standard_Real    ax,
                                const Standard_Real    bx,
index 82391407f12b3c37b310ab5f6adc0b6660c034ab..43972e08a2774a0f590fefb7642279af21da152f 100644 (file)
@@ -52,10 +52,8 @@ is
        -- initialization to compute the minimum of the function.
     returns FRPR;
 
+    ---C++: alias "  Standard_EXPORT virtual ~math_FRPR();"
 
-    Delete(me:out) is virtual;
-    ---C++: alias "Standard_EXPORT virtual ~math_FRPR(){Delete();}"
-    
     Perform(me: in out; F: in out MultipleVarFunctionWithGradient; 
            StartingPoint: Vector)
        ---Purpose: Use this method after a call to the initialization constructor
index a4c43c8006072655f4adcd69d464bb90bdd47fd0..a3776e4ab1def533157409a9302c9b4d974ceabb 100644 (file)
@@ -216,8 +216,9 @@ void  math_FRPR::Perform(math_MultipleVarFunctionWithGradient& F,
     }
 
 
-    void math_FRPR::Delete()
-    {}
+    math_FRPR::~math_FRPR()
+    {
+    }
 
     void math_FRPR::Dump(Standard_OStream& o) const {
 
index 143220666e647f39e31ac19179c6800e30690269..36f5fdbac91a51a77777ee3e5f5a15d954ba40db 100644 (file)
@@ -22,10 +22,6 @@ deferred class FunctionSet from math
 uses Vector from math
 
 is
-
-    Delete(me:out) is virtual;
-       ---C++: alias "Standard_EXPORT virtual ~math_FunctionSet(){Delete();}"
-    
     NbVariables(me)
        ---Purpose: Returns the number of variables of the function.
 
@@ -46,8 +42,7 @@ is
        --          returns True if the computation was done successfully, 
        --          False otherwise.
 
-    returns Boolean
-    is deferred;
+    returns Boolean is deferred;
     
 
     GetStateNumber(me: in out)
@@ -66,8 +61,9 @@ is
        --          to save the current state of the function and to return
        --          an Integer that allows retrieval of the state.
 
-    returns Integer
-    is virtual;
+    returns Integer is virtual;
+
+    ---C++: alias "  Standard_EXPORT virtual ~math_FunctionSet();"
     
 end FunctionSet;
 
index c11253c087a43119cd2ad74f7047219d0848f2a3..a0da6765cc39f082124753b8e6d558eddda7ff63 100644 (file)
 #include <Standard_Integer.hxx>
 #include <math_FunctionSet.ixx>
 
-Standard_Integer math_FunctionSet::GetStateNumber() { return 0; }
+//=======================================================================
+//function : ~math_FunctionSet
+//purpose  : Destructor
+//=======================================================================
+math_FunctionSet::~math_FunctionSet()
+{
+}
 
-void math_FunctionSet::Delete()
-{}
+//=======================================================================
+//function : GetStateNumber
+//purpose  : 
+//=======================================================================
+Standard_Integer math_FunctionSet::GetStateNumber()
+{
+  return 0;
+}
\ No newline at end of file
index 3f9ef3d03077db31f7251fe16be12cf5dd24d819..40213802fed465d20bfdb5b94934c54b27bbc8f2 100644 (file)
@@ -85,11 +85,8 @@ is
 
     returns FunctionSetRoot from math;
 
+    ---C++: alias "  Standard_EXPORT virtual ~math_FunctionSetRoot();"
 
-
-    Delete(me:out) is virtual;
-    ---C++: alias "Standard_EXPORT virtual ~math_FunctionSetRoot(){Delete();}"
-    
     SetTolerance(me: in out; Tolerance: Vector)
        ---Purpose: Initializes the tolerance values.
 
@@ -107,7 +104,7 @@ is
        -- not performed by the constructors.
 
     is static;
-    
+
 
     IsSolutionReached(me: in out; F: in out FunctionSetWithDerivatives)
        ---Purpose: This routine is called at the end of each iteration 
index 11b249fa93bf5ddcc77965bc074cd8c9f0e9be43..3facf6163111f7953e12b7c042938cf2dc327d96 100644 (file)
@@ -689,8 +689,9 @@ DF(1, F.NbEquations(),
   Perform(F, StartingPoint, InfBound, SupBound);
 }
 
-void math_FunctionSetRoot::Delete()
-{}
+math_FunctionSetRoot::~math_FunctionSetRoot()
+{
+}
 
 void math_FunctionSetRoot::SetTolerance(const math_Vector& Tolerance)
 {
index a384065acbb3d19e367491fea37119f7d9931fa9..19852ea83b93cc51afa6cdade2675a43ddfa9422 100644 (file)
@@ -23,17 +23,12 @@ deferred class FunctionWithDerivative from math
 inherits Function
 
 is
-
-    Delete(me:out) is virtual;
-       ---C++: alias "Standard_EXPORT virtual ~math_FunctionWithDerivative(){Delete();}"
-    
     Value(me: in out; X: Real; F: out Real)
         ---Purpose: Computes the value <F>of the function for the variable <X>.
        --          Returns True if the calculation were successfully done, 
        --          False otherwise.
 
-    returns Boolean
-    is deferred;
+    returns Boolean is deferred;
  
     Derivative(me: in out; X: Real; D: out Real)
         ---Purpose: Computes the derivative <D> of the function 
@@ -41,8 +36,7 @@ is
        --           Returns True if the calculation were successfully done, 
        --           False otherwise.
 
-    returns Boolean
-    is deferred;    
+    returns Boolean is deferred;    
 
     Values(me: in out; X: Real; F, D: out Real)
        ---Purpose: Computes the value <F> and the derivative <D> of the 
@@ -50,7 +44,8 @@ is
        --          Returns True if the calculation were successfully done,
        --          False otherwise.
 
-    returns Boolean
-    is deferred;
+    returns Boolean is deferred;
+
+    ---C++: alias "  Standard_EXPORT virtual ~math_FunctionWithDerivative();"
     
 end FunctionWithDerivative;
index 394ad6bb32ba16dce5a67b0827d644fe86e866d0..70e942c1338dc260694d838511f705071b0345ca 100644 (file)
 
 #include <math_FunctionWithDerivative.ixx>
 
-void math_FunctionWithDerivative::Delete()
-{}
+//=======================================================================
+//function : ~math_FunctionWithDerivative
+//purpose  : Destructor
+//=======================================================================
+math_FunctionWithDerivative::~math_FunctionWithDerivative()
+{
+}
index cb0d481d38ca4a0b49fa729aafd24f229f7ea6dd..d20b70d88dad14e12487c7915aeb638c92798194 100644 (file)
@@ -20,9 +20,6 @@ deferred class MultipleVarFunction from math
 uses Vector from math
 
 is
-    Delete(me:out) is virtual;
-    ---C++: alias "Standard_EXPORT virtual ~math_MultipleVarFunction(){Delete();}"
-
     NbVariables(me)
        ---Purpose:
         -- Returns the number of variables of the function
@@ -60,4 +57,6 @@ is
     returns Integer
     is virtual;
 
+    ---C++: alias "  Standard_EXPORT virtual ~math_MultipleVarFunction();"
+
 end MultipleVarFunction;
index b1cb1877c3326df411042f23bdab7cc6d0be3cd1..473d88562101f504a714315b005546e6ac6364d2 100644 (file)
 #include <Standard_Integer.hxx>
 #include <math_MultipleVarFunction.ixx>
 
-Standard_Integer math_MultipleVarFunction::GetStateNumber() { return 0; }
+//=======================================================================
+//function : ~math_MultipleVarFunction
+//purpose  : Destructor
+//=======================================================================
+math_MultipleVarFunction::~math_MultipleVarFunction()
+{
+}
 
-void math_MultipleVarFunction::Delete()
-{}
+//=======================================================================
+//function : GetStateNumber
+//purpose  : 
+//=======================================================================
+Standard_Integer math_MultipleVarFunction::GetStateNumber()
+{
+  return 0;
+}
index 8804416238809d2357a20bcdfad6f676ce0e6020..9749f1325802218f14758de6b397d0a2b4de1dd9 100644 (file)
@@ -23,15 +23,10 @@ inherits MultipleVarFunction
 uses Vector from math
 
 is
-
-    Delete(me:out) is redefined virtual;
-    ---C++: alias "Standard_EXPORT virtual ~math_MultipleVarFunctionWithGradient(){Delete();}"
-    
     NbVariables(me)
        ---Purpose: Returns the number of variables of the function.
 
-    returns Integer
-    is deferred;
+    returns Integer is deferred;
 
 
     Value(me: in out; X: Vector; F: out Real)
@@ -39,8 +34,7 @@ is
        --          Returns True if the computation was done successfully, 
        --          False otherwise.
 
-    returns Boolean
-    is deferred;
+    returns Boolean is deferred;
     
     
     Gradient(me: in out; X: Vector; G: out Vector)
@@ -48,8 +42,7 @@ is
        --         Returns True if the computation was done successfully, 
        --         False otherwise.
 
-    returns Boolean
-    is deferred;
+    returns Boolean is deferred;
     
     
     Values(me: in out; X: Vector; F: out Real; G: out Vector)
@@ -58,7 +51,6 @@ is
        --          Returns True if the computation was done successfully, 
        --          False otherwise.
 
-    returns Boolean
-    is deferred;
+    returns Boolean is deferred;
     
 end MultipleVarFunctionWithGradient;
diff --git a/src/math/math_MultipleVarFunctionWithGradient.cxx b/src/math/math_MultipleVarFunctionWithGradient.cxx
deleted file mode 100644 (file)
index dcfdae7..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyright (c) 1997-1999 Matra Datavision
-// Copyright (c) 1999-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-#include <math_MultipleVarFunctionWithGradient.ixx>
-
-void math_MultipleVarFunctionWithGradient::Delete()
-{}
index b20035f2ec84cee8338b4e8f63c08bd8f6deebaf..65b4569332863af3daf1e1eda77a6882d735375a 100644 (file)
@@ -23,15 +23,10 @@ uses Matrix from math,
      Vector from math
 
 is
-
-    Delete(me:out) is redefined virtual;
-    ---C++: alias "Standard_EXPORT virtual ~math_MultipleVarFunctionWithHessian(){Delete();}"
-
     NbVariables(me)
        ---Purpose: returns the number of variables of the function.
 
-    returns Integer
-    is deferred;
+    returns Integer is deferred;
 
 
     Value(me: in out; X: Vector; F: out Real)
@@ -40,8 +35,7 @@ is
        --          Returns True if the computation was done successfully, 
        --          False otherwise.
 
-    returns Boolean
-    is deferred;
+    returns Boolean is deferred;
     
     
     Gradient(me: in out; X: Vector; G: out Vector)
@@ -50,8 +44,7 @@ is
        --         Returns True if the computation was done successfully, 
        --         False otherwise.
 
-    returns Boolean
-    is deferred;
+    returns Boolean is deferred;
     
     
     Values(me: in out; X: Vector; F: out Real; G: out Vector)
@@ -60,8 +53,7 @@ is
        --          Returns True if the computation was done successfully, 
        --          False otherwise.
 
-    returns Boolean
-    is deferred;
+    returns Boolean is deferred;
     
     Values(me: in out; X: Vector; F: out Real; G: out Vector; H: out Matrix)
        ---Purpose: computes the value  <F>, the gradient <G> and  the
@@ -69,8 +61,6 @@ is
        --          Returns  True  if  the computation  was  done
        --          successfully, False otherwise.
 
-    returns Boolean
-    is deferred;
-
+    returns Boolean is deferred;
 
 end MultipleVarFunctionWithHessian;
diff --git a/src/math/math_MultipleVarFunctionWithHessian.cxx b/src/math/math_MultipleVarFunctionWithHessian.cxx
deleted file mode 100644 (file)
index 2c0044e..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-// Created on: 1996-05-03
-// Created by: Philippe MANGIN
-// Copyright (c) 1996-1999 Matra Datavision
-// Copyright (c) 1999-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-#include <math_MultipleVarFunctionWithHessian.ixx>
-
-void math_MultipleVarFunctionWithHessian::Delete()
-{}
index 89404647f4316c3111901040665e3fb8fbdeaab6..69a9f27f93d3c7f4cdbe9af999185cffa2cca53f 100644 (file)
@@ -88,8 +88,7 @@ is
     returns NewtonFunctionSetRoot;
 
 
-    Delete(me:out) is virtual;
-       ---C++: alias "Standard_EXPORT virtual ~math_NewtonFunctionSetRoot(){Delete();}"
+    ---C++: alias "  Standard_EXPORT virtual ~math_NewtonFunctionSetRoot();"
     
     SetTolerance(me: in out; XTol: Vector)
        ---Purpose: Initializes the tolerance values for the unknowns.
index 1ba031721e8a62ebe95ea8af7c01fbed8346068a..57fffeea48738ffb1d0741d67d44cdbe23ce13a6 100644 (file)
@@ -130,8 +130,9 @@ math_NewtonFunctionSetRoot::math_NewtonFunctionSetRoot
   Perform(F, StartingPoint, InfBound, SupBound);
 }
 
-void math_NewtonFunctionSetRoot::Delete()
-{}
+math_NewtonFunctionSetRoot::~math_NewtonFunctionSetRoot()
+{
+}
 
 void math_NewtonFunctionSetRoot::SetTolerance
                               (const math_Vector& XTol)
index 91f0de78e8f20207677363d178f2b7268b00a19d..dc8bac16516f71b605e78c6c473b72d65dcce070 100644 (file)
@@ -60,8 +60,7 @@ is
     --  Warning: This constructor do not computation 
     returns  NewtonMinimum;
     
-    Delete(me:out) is virtual;
-    ---C++: alias "Standard_EXPORT virtual ~math_NewtonMinimum(){Delete();}"
+    ---C++: alias "  Standard_EXPORT virtual ~math_NewtonMinimum();"
     
     Perform(me: in out; F: in out MultipleVarFunctionWithHessian;
            StartingPoint: Vector)
index 547e94f64bbb05addfb099acd39154e69f85cf2a..11f64f6fe17eae83a26a9febe83e8c1ee1c3b1ba 100644 (file)
@@ -69,8 +69,10 @@ math_NewtonMinimum::math_NewtonMinimum(math_MultipleVarFunctionWithHessian& F,
        TheStatus = math_NotBracketed;
 }
 //============================================================================
-void math_NewtonMinimum::Delete()
-{}
+math_NewtonMinimum::~math_NewtonMinimum()
+{
+}
+
 //============================================================================
 void math_NewtonMinimum::Perform(math_MultipleVarFunctionWithHessian& F,
                                 const math_Vector& StartingPoint)
index cea49c9b45d37a07f1433fa6fd21d7f8bd4283fe..a315b072671e3f79ea039d902f2421707a23f224 100644 (file)
@@ -48,10 +48,8 @@ is
        --          of this class.
 
     returns Powell;
-    
-    
-    Delete(me:out) is virtual;
-       ---C++: alias "Standard_EXPORT virtual ~math_Powell(){Delete();}"
+
+    ---C++: alias "  Standard_EXPORT virtual ~math_Powell();"
     
     Perform(me: in out;F: in out MultipleVarFunction;
            StartingPoint: Vector;
index 809c309cd78183b523a952c94b012cf7cf4c147d..f0cea92b2e00e61ff1f89778b3099ebf285a4a3d 100644 (file)
@@ -104,7 +104,9 @@ static Standard_Boolean MinimizeDirection(math_Vector& P,
   return Standard_False;
 }
 
-
+math_Powell::~math_Powell()
+{
+}
 
 void math_Powell::Perform(math_MultipleVarFunction& F,
                          const math_Vector& StartingPoint,
@@ -231,10 +233,7 @@ math_Powell::math_Powell(math_MultipleVarFunction& F,
     XTol = Tolerance;
     EPSZ = ZEPS;
     Itermax = NbIterations;
-  }
-
-void math_Powell::Delete()
-{}
+}
 
 void math_Powell::Dump(Standard_OStream& o) const {