1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-24 13:50:49 +03:00

0026936: Drawbacks of inlining in new type system in OCCT 7.0 -- automatic

Automatic restore of IMPLEMENT_STANDARD_RTTIEXT macro (upgrade -rtti)
This commit is contained in:
abv
2015-12-04 14:15:06 +03:00
parent f5f4ebd07b
commit 92efcf78a6
4556 changed files with 7149 additions and 2882 deletions

View File

@@ -23,6 +23,8 @@
#include <gp_Trsf.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_Axis1Placement,Geom_AxisPlacement)
typedef Geom_Axis1Placement Axis1Placement;
typedef gp_Ax2 Ax2;
typedef gp_Dir Dir;

View File

@@ -79,7 +79,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_Axis1Placement,Geom_AxisPlacement)
DEFINE_STANDARD_RTTIEXT(Geom_Axis1Placement,Geom_AxisPlacement)
protected:

View File

@@ -24,6 +24,8 @@
#include <Standard_ConstructionError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_Axis2Placement,Geom_AxisPlacement)
typedef Geom_Axis2Placement Axis2Placement;
typedef gp_Ax1 Ax1;
typedef gp_Dir Dir;

View File

@@ -132,7 +132,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_Axis2Placement,Geom_AxisPlacement)
DEFINE_STANDARD_RTTIEXT(Geom_Axis2Placement,Geom_AxisPlacement)
protected:

View File

@@ -22,6 +22,8 @@
#include <Standard_ConstructionError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_AxisPlacement,Geom_Geometry)
typedef gp_Ax1 Ax1;
typedef gp_Dir Dir;
typedef gp_Pnt Pnt;

View File

@@ -111,7 +111,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_AxisPlacement,Geom_Geometry)
DEFINE_STANDARD_RTTIEXT(Geom_AxisPlacement,Geom_Geometry)
protected:

View File

@@ -51,6 +51,8 @@
#include <Standard_Real.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_BSplineCurve,Geom_BoundedCurve)
//=======================================================================
//function : CheckCurveData
//purpose : Internal use only

View File

@@ -797,7 +797,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_BSplineCurve,Geom_BoundedCurve)
DEFINE_STANDARD_RTTIEXT(Geom_BSplineCurve,Geom_BoundedCurve)
protected:

View File

@@ -43,6 +43,8 @@
#include <Standard_RangeError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_BSplineSurface,Geom_BoundedSurface)
//=======================================================================
//function : CheckSurfaceData
//purpose : Internal use only.

View File

@@ -1195,7 +1195,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_BSplineSurface,Geom_BoundedSurface)
DEFINE_STANDARD_RTTIEXT(Geom_BSplineSurface,Geom_BoundedSurface)
protected:

View File

@@ -43,6 +43,8 @@
#include <Standard_Type.hxx>
#include <TColStd_Array1OfInteger.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_BezierCurve,Geom_BoundedCurve)
//=======================================================================
//function : Rational
//purpose : check rationality of an array of weights

View File

@@ -336,7 +336,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_BezierCurve,Geom_BoundedCurve)
DEFINE_STANDARD_RTTIEXT(Geom_BezierCurve,Geom_BoundedCurve)
protected:

View File

@@ -46,6 +46,8 @@
#include <Standard_Type.hxx>
#include <TColStd_Array1OfInteger.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_BezierSurface,Geom_BoundedSurface)
//=======================================================================
//function : Rational
//purpose : check rationality of an array of weights

View File

@@ -586,7 +586,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_BezierSurface,Geom_BoundedSurface)
DEFINE_STANDARD_RTTIEXT(Geom_BezierSurface,Geom_BoundedSurface)
protected:

View File

@@ -18,3 +18,5 @@
#include <Geom_BoundedCurve.hxx>
#include <gp_Pnt.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_BoundedCurve,Geom_Curve)

View File

@@ -57,7 +57,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_BoundedCurve,Geom_Curve)
DEFINE_STANDARD_RTTIEXT(Geom_BoundedCurve,Geom_Curve)
protected:

View File

@@ -17,3 +17,5 @@
#include <Geom_BoundedSurface.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_BoundedSurface,Geom_Surface)

View File

@@ -60,7 +60,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_BoundedSurface,Geom_Surface)
DEFINE_STANDARD_RTTIEXT(Geom_BoundedSurface,Geom_Surface)
protected:

View File

@@ -21,6 +21,8 @@
#include <gp_Trsf.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_CartesianPoint,Geom_Point)
typedef Geom_CartesianPoint CartesianPoint;
typedef gp_Ax1 Ax1;
typedef gp_Ax2 Ax2;

View File

@@ -87,7 +87,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_CartesianPoint,Geom_Point)
DEFINE_STANDARD_RTTIEXT(Geom_CartesianPoint,Geom_Point)
protected:

View File

@@ -28,6 +28,8 @@
#include <Standard_RangeError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_Circle,Geom_Conic)
typedef Geom_Circle Circle;
typedef gp_Ax2 Ax2;
typedef gp_Pnt Pnt;

View File

@@ -161,7 +161,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_Circle,Geom_Conic)
DEFINE_STANDARD_RTTIEXT(Geom_Circle,Geom_Conic)
protected:

View File

@@ -24,6 +24,8 @@
#include <Standard_RangeError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_Conic,Geom_Curve)
typedef Geom_Conic Conic;
typedef gp_Ax1 Ax1;
typedef gp_Ax2 Ax2;

View File

@@ -139,7 +139,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_Conic,Geom_Curve)
DEFINE_STANDARD_RTTIEXT(Geom_Conic,Geom_Curve)
protected:

View File

@@ -39,6 +39,8 @@
#include <Standard_RangeError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_ConicalSurface,Geom_ElementarySurface)
typedef Geom_ConicalSurface ConicalSurface;
typedef gp_Ax1 Ax1;
typedef gp_Ax2 Ax2;

View File

@@ -282,7 +282,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_ConicalSurface,Geom_ElementarySurface)
DEFINE_STANDARD_RTTIEXT(Geom_ConicalSurface,Geom_ElementarySurface)
protected:

View File

@@ -25,6 +25,8 @@
#include <Standard_RangeError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_Curve,Geom_Geometry)
typedef Geom_Curve Curve;
//=======================================================================

View File

@@ -228,7 +228,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_Curve,Geom_Geometry)
DEFINE_STANDARD_RTTIEXT(Geom_Curve,Geom_Geometry)
protected:

View File

@@ -38,6 +38,8 @@
#include <Standard_RangeError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_CylindricalSurface,Geom_ElementarySurface)
typedef Geom_CylindricalSurface CylindricalSurface;
typedef gp_Ax1 Ax1;

View File

@@ -215,7 +215,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_CylindricalSurface,Geom_ElementarySurface)
DEFINE_STANDARD_RTTIEXT(Geom_CylindricalSurface,Geom_ElementarySurface)
protected:

View File

@@ -24,6 +24,8 @@
#include <Standard_ConstructionError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_Direction,Geom_Vector)
typedef Geom_Direction Direction;
typedef Geom_Vector Vector;
typedef gp_Ax1 Ax1;

View File

@@ -121,7 +121,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_Direction,Geom_Vector)
DEFINE_STANDARD_RTTIEXT(Geom_Direction,Geom_Vector)
protected:

View File

@@ -22,6 +22,8 @@
#include <Standard_ConstructionError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_ElementarySurface,Geom_Surface)
typedef Geom_ElementarySurface ElementarySurface;
typedef gp_Ax1 Ax1;
typedef gp_Ax2 Ax2;

View File

@@ -142,7 +142,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_ElementarySurface,Geom_Surface)
DEFINE_STANDARD_RTTIEXT(Geom_ElementarySurface,Geom_Surface)
protected:

View File

@@ -29,6 +29,8 @@
#include <Standard_RangeError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_Ellipse,Geom_Conic)
typedef Geom_Ellipse Ellipse;
typedef gp_Ax1 Ax1;
typedef gp_Ax2 Ax2;

View File

@@ -223,7 +223,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_Ellipse,Geom_Conic)
DEFINE_STANDARD_RTTIEXT(Geom_Ellipse,Geom_Conic)
protected:

View File

@@ -25,6 +25,8 @@
#include <Standard_ConstructionError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_Geometry,MMgt_TShared)
typedef Geom_Geometry Geometry;
typedef gp_Pnt Pnt;
typedef gp_Vec Vec;

View File

@@ -121,7 +121,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_Geometry,MMgt_TShared)
DEFINE_STANDARD_RTTIEXT(Geom_Geometry,MMgt_TShared)
protected:

View File

@@ -31,6 +31,8 @@
#include <Standard_RangeError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_Hyperbola,Geom_Conic)
typedef Geom_Hyperbola Hyperbola;
typedef gp_Ax1 Ax1;
typedef gp_Ax2 Ax2;

View File

@@ -279,7 +279,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_Hyperbola,Geom_Conic)
DEFINE_STANDARD_RTTIEXT(Geom_Hyperbola,Geom_Conic)
protected:

View File

@@ -29,6 +29,8 @@
#include <Standard_RangeError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_Line,Geom_Curve)
//=======================================================================
//function : Copy
//purpose :

View File

@@ -182,7 +182,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_Line,Geom_Curve)
DEFINE_STANDARD_RTTIEXT(Geom_Line,Geom_Curve)
protected:

View File

@@ -284,7 +284,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_OffsetCurve,Geom_Curve)
DEFINE_STANDARD_RTTIEXT(Geom_OffsetCurve,Geom_Curve)
protected:

View File

@@ -72,6 +72,8 @@
#include <TColStd_HArray1OfReal.hxx>
#include <TColStd_HArray2OfInteger.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_OffsetSurface,Geom_Surface)
static const Standard_Real MyAngularToleranceForG1 = Precision::Angular();

View File

@@ -357,7 +357,7 @@ public:
inline GeomAbs_Shape GetBasisSurfContinuity() const
{ return myBasisSurfContinuity; }
DEFINE_STANDARD_RTTI(Geom_OffsetSurface,Geom_Surface)
DEFINE_STANDARD_RTTIEXT(Geom_OffsetSurface,Geom_Surface)
private:

View File

@@ -30,6 +30,8 @@
#include <TColStd_HArray1OfReal.hxx>
#include <TColStd_HArray2OfInteger.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_OsculatingSurface,MMgt_TShared)
//=======================================================================
//function : Geom_OffsetOsculatingSurface
//purpose :

View File

@@ -66,7 +66,7 @@ public:
Standard_EXPORT Standard_Boolean VOscSurf (const Standard_Real U, const Standard_Real V, Standard_Boolean& t, Handle(Geom_BSplineSurface)& L) const;
DEFINE_STANDARD_RTTI(Geom_OsculatingSurface, MMgt_TShared)
DEFINE_STANDARD_RTTIEXT(Geom_OsculatingSurface,MMgt_TShared)
protected:

View File

@@ -30,6 +30,8 @@
#include <Standard_RangeError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_Parabola,Geom_Conic)
typedef Geom_Parabola Parabola;
typedef gp_Ax1 Ax1;
typedef gp_Ax2 Ax2;

View File

@@ -226,7 +226,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_Parabola,Geom_Conic)
DEFINE_STANDARD_RTTIEXT(Geom_Parabola,Geom_Conic)
protected:

View File

@@ -37,6 +37,8 @@
#include <Standard_RangeError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_Plane,Geom_ElementarySurface)
typedef Geom_Plane Plane;
typedef gp_Ax1 Ax1;
typedef gp_Ax2 Ax2;

View File

@@ -221,7 +221,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_Plane,Geom_ElementarySurface)
DEFINE_STANDARD_RTTIEXT(Geom_Plane,Geom_ElementarySurface)
protected:

View File

@@ -19,6 +19,8 @@
#include <gp_Pnt.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_Point,Geom_Geometry)
typedef Geom_Point Point;
Standard_Real Geom_Point::Distance (const Handle(Geom_Point)& Other) const {

View File

@@ -62,7 +62,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_Point,Geom_Geometry)
DEFINE_STANDARD_RTTIEXT(Geom_Point,Geom_Geometry)
protected:

View File

@@ -45,6 +45,8 @@
#include <Standard_RangeError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_RectangularTrimmedSurface,Geom_BoundedSurface)
typedef Geom_RectangularTrimmedSurface RectangularTrimmedSurface;
typedef gp_Ax1 Ax1;
typedef gp_Ax2 Ax2;

View File

@@ -308,7 +308,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_RectangularTrimmedSurface,Geom_BoundedSurface)
DEFINE_STANDARD_RTTIEXT(Geom_RectangularTrimmedSurface,Geom_BoundedSurface)
protected:

View File

@@ -32,6 +32,8 @@
#include <Standard_RangeError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_SphericalSurface,Geom_ElementarySurface)
typedef Geom_Circle Circle;
typedef Geom_SphericalSurface SphericalSurface;
typedef gp_Ax2 Ax2;

View File

@@ -224,7 +224,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_SphericalSurface,Geom_ElementarySurface)
DEFINE_STANDARD_RTTIEXT(Geom_SphericalSurface,Geom_ElementarySurface)
protected:

View File

@@ -27,6 +27,8 @@
#include <Standard_RangeError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_Surface,Geom_Geometry)
typedef Geom_Surface Surface;
//=======================================================================

View File

@@ -279,7 +279,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_Surface,Geom_Geometry)
DEFINE_STANDARD_RTTIEXT(Geom_Surface,Geom_Geometry)
protected:

View File

@@ -45,6 +45,8 @@
#include <Standard_RangeError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_SurfaceOfLinearExtrusion,Geom_SweptSurface)
#define POLES (poles->Array2())
#define WEIGHTS (weights->Array2())
#define UKNOTS (uknots->Array1())

View File

@@ -252,7 +252,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_SurfaceOfLinearExtrusion,Geom_SweptSurface)
DEFINE_STANDARD_RTTIEXT(Geom_SurfaceOfLinearExtrusion,Geom_SweptSurface)
protected:

View File

@@ -41,6 +41,8 @@
#include <Standard_RangeError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_SurfaceOfRevolution,Geom_SweptSurface)
#define POLES (poles->Array2())
#define WEIGHTS (weights->Array2())
#define UKNOTS (uknots->Array1())

View File

@@ -304,7 +304,7 @@ public:
Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(Geom_SurfaceOfRevolution,Geom_SweptSurface)
DEFINE_STANDARD_RTTIEXT(Geom_SurfaceOfRevolution,Geom_SweptSurface)
private:
Handle(GeomEvaluator_SurfaceOfRevolution) myEvaluator;

View File

@@ -20,6 +20,8 @@
#include <gp_Dir.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_SweptSurface,Geom_Surface)
//=======================================================================
//function : Continuity
//purpose :

View File

@@ -68,7 +68,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_SweptSurface,Geom_Surface)
DEFINE_STANDARD_RTTIEXT(Geom_SweptSurface,Geom_Surface)
protected:

View File

@@ -35,6 +35,8 @@
#include <Standard_RangeError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_ToroidalSurface,Geom_ElementarySurface)
typedef Geom_ToroidalSurface ToroidalSurface;
typedef TColStd_Array1OfReal Array1OfReal;
typedef gp_Ax1 Ax1;

View File

@@ -248,7 +248,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_ToroidalSurface,Geom_ElementarySurface)
DEFINE_STANDARD_RTTIEXT(Geom_ToroidalSurface,Geom_ElementarySurface)
protected:

View File

@@ -26,6 +26,8 @@
#include <Standard_OutOfRange.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_Transformation,MMgt_TShared)
typedef Geom_Transformation Transformation;
typedef gp_Ax1 Ax1;
typedef gp_Ax2 Ax2;

View File

@@ -229,7 +229,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_Transformation,MMgt_TShared)
DEFINE_STANDARD_RTTIEXT(Geom_Transformation,MMgt_TShared)
protected:

View File

@@ -39,6 +39,8 @@
#include <Standard_RangeError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_TrimmedCurve,Geom_BoundedCurve)
typedef Geom_TrimmedCurve TrimmedCurve;
typedef gp_Ax1 Ax1;
typedef gp_Ax2 Ax2;

View File

@@ -255,7 +255,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_TrimmedCurve,Geom_BoundedCurve)
DEFINE_STANDARD_RTTIEXT(Geom_TrimmedCurve,Geom_BoundedCurve)
protected:

View File

@@ -22,6 +22,8 @@
#include <Standard_DomainError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_Vector,Geom_Geometry)
typedef Geom_Vector Vector;
typedef gp_Ax1 Ax1;
typedef gp_Ax2 Ax2;

View File

@@ -137,7 +137,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_Vector,Geom_Geometry)
DEFINE_STANDARD_RTTIEXT(Geom_Vector,Geom_Geometry)
protected:

View File

@@ -24,6 +24,8 @@
#include <Standard_ConstructionError.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(Geom_VectorWithMagnitude,Geom_Vector)
typedef Geom_VectorWithMagnitude VectorWithMagnitude;
typedef Geom_Vector Vector;
typedef gp_Ax1 Ax1;

View File

@@ -145,7 +145,7 @@ public:
DEFINE_STANDARD_RTTI(Geom_VectorWithMagnitude,Geom_Vector)
DEFINE_STANDARD_RTTIEXT(Geom_VectorWithMagnitude,Geom_Vector)
protected: