1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0024023: Revamp the OCCT Handle -- GC

Implementation of operator of type casting to resulting object simplified in classes of GC and GCE2d packages
This commit is contained in:
abv
2015-06-25 00:39:28 +03:00
parent c04c30b3ee
commit 83eaf3e892
64 changed files with 33 additions and 533 deletions

View File

@@ -82,11 +82,7 @@ Value(me) returns TrimmedCurve from Geom2d
---C++: return const&
---Purpose: Returns the constructed arc of circle.
-- Exceptions StdFail_NotDone if no arc of circle is constructed.
Operator(me) returns TrimmedCurve from Geom2d
is static;
---C++: return const&
---C++: alias "Standard_EXPORT operator Handle_Geom2d_TrimmedCurve() const;"
---C++: alias "operator const Handle(Geom2d_TrimmedCurve)& () const { return Value(); }"
fields

View File

@@ -114,14 +114,3 @@ const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeArcOfCircle::Value() const
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheArc;
}
const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeArcOfCircle::Operator() const
{
return Value();
}
GCE2d_MakeArcOfCircle::operator Handle(Geom2d_TrimmedCurve) () const
{
return Value();
}

View File

@@ -68,11 +68,7 @@ Value(me) returns TrimmedCurve from Geom2d
is static;
---C++: return const&
---Purpose: Returns the constructed arc of ellipse.
Operator(me) returns TrimmedCurve from Geom2d
is static;
---C++: return const&
---C++: alias "Standard_EXPORT operator Handle_Geom2d_TrimmedCurve() const;"
---C++: alias "operator const Handle(Geom2d_TrimmedCurve)& () const { return Value(); }"
fields

View File

@@ -57,17 +57,3 @@ const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeArcOfEllipse::Value() const
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheArc;
}
const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeArcOfEllipse::Operator() const
{
return Value();
}
GCE2d_MakeArcOfEllipse::operator Handle(Geom2d_TrimmedCurve) () const
{
return Value();
}

View File

@@ -67,11 +67,7 @@ Value(me) returns TrimmedCurve from Geom2d
is static;
---C++: return const&
---Purpose: Returns the constructed arc of hyperbola.
Operator(me) returns TrimmedCurve from Geom2d
is static;
---C++: return const&
---C++: alias "Standard_EXPORT operator Handle_Geom2d_TrimmedCurve() const;"
---C++: alias "operator const Handle(Geom2d_TrimmedCurve)& () const { return Value(); }"
fields

View File

@@ -59,14 +59,3 @@ const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeArcOfHyperbola::Value() const
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheArc;
}
const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeArcOfHyperbola::Operator() const
{
return Value();
}
GCE2d_MakeArcOfHyperbola::operator Handle(Geom2d_TrimmedCurve) () const
{
return Value();
}

View File

@@ -67,11 +67,7 @@ Value(me) returns TrimmedCurve from Geom2d
is static;
---C++: return const&
---Purpose: Returns the constructed arc of parabola.
Operator(me) returns TrimmedCurve from Geom2d
is static;
---C++: return const&
---C++: alias "Standard_EXPORT operator Handle_Geom2d_TrimmedCurve() const;"
---C++: alias "operator const Handle(Geom2d_TrimmedCurve)& () const { return Value(); }"
fields

View File

@@ -58,14 +58,3 @@ const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeArcOfParabola::Value() const
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheArc;
}
const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeArcOfParabola::Operator() const
{
return Value();
}
GCE2d_MakeArcOfParabola::operator Handle(Geom2d_TrimmedCurve) () const
{
return Value();
}

View File

@@ -104,11 +104,7 @@ Value(me) returns Circle from Geom2d
---C++: return const&
---Purpose: Returns the constructed circle.
-- Exceptions StdFail_NotDone if no circle is constructed.
Operator(me) returns Circle from Geom2d
is static;
---C++: return const&
---C++: alias "Standard_EXPORT operator Handle_Geom2d_Circle() const;"
---C++: alias "operator const Handle(Geom2d_Circle)& () const { return Value(); }"
fields

View File

@@ -103,14 +103,3 @@ const Handle(Geom2d_Circle)& GCE2d_MakeCircle::Value() const
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheCircle;
}
const Handle(Geom2d_Circle)& GCE2d_MakeCircle::Operator() const
{
return Value();
}
GCE2d_MakeCircle::operator Handle(Geom2d_Circle) () const
{
return Value();
}

View File

@@ -86,11 +86,7 @@ Value(me) returns Ellipse from Geom2d
---C++: return const&
---Purpose: Returns the constructed ellipse.
-- Exceptions StdFail_NotDone if no ellipse is constructed.
Operator(me) returns Ellipse from Geom2d
is static;
---C++: return const&
---C++: alias "Standard_EXPORT operator Handle_Geom2d_Ellipse() const;"
---C++: alias "operator const Handle(Geom2d_Ellipse)& () const { return Value(); }"
fields

View File

@@ -62,14 +62,3 @@ const Handle(Geom2d_Ellipse)& GCE2d_MakeEllipse::Value() const
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheEllipse;
}
const Handle(Geom2d_Ellipse)& GCE2d_MakeEllipse::Operator() const
{
return Value();
}
GCE2d_MakeEllipse::operator Handle(Geom2d_Ellipse) () const
{
return Value();
}

View File

@@ -106,11 +106,7 @@ Value(me) returns Hyperbola from Geom2d
---C++: return const&
---Purpose: Returns the constructed hyperbola.
-- Exceptions: StdFail_NotDone if no hyperbola is constructed.
Operator(me) returns Hyperbola from Geom2d
is static;
---C++: return const&
---C++: alias "Standard_EXPORT operator Handle_Geom2d_Hyperbola() const;"
---C++: alias "operator const Handle(Geom2d_Hyperbola)& () const { return Value(); }"
fields

View File

@@ -62,14 +62,3 @@ const Handle(Geom2d_Hyperbola)& GCE2d_MakeHyperbola::Value() const
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheHyperbola;
}
const Handle(Geom2d_Hyperbola)& GCE2d_MakeHyperbola::Operator() const
{
return Value();
}
GCE2d_MakeHyperbola::operator Handle(Geom2d_Hyperbola) () const
{
return Value();
}

View File

@@ -72,11 +72,7 @@ Value(me) returns Line from Geom2d
---C++: return const&
---Purpose: Returns the constructed line.
-- Exceptions StdFail_NotDone if no line is constructed.
Operator(me) returns Line from Geom2d
is static;
---C++: return const&
---C++: alias "Standard_EXPORT operator Handle_Geom2d_Line() const;"
---C++: alias "operator const Handle(Geom2d_Line)& () const { return Value(); }"
fields

View File

@@ -76,14 +76,3 @@ const Handle(Geom2d_Line)& GCE2d_MakeLine::Value() const
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheLine;
}
const Handle(Geom2d_Line) & GCE2d_MakeLine::Operator() const
{
return Value();
}
GCE2d_MakeLine::operator Handle(Geom2d_Line) () const
{
return Value();
}

View File

@@ -53,11 +53,7 @@ Value(me) returns Transformation from Geom2d
is static;
---C++: return const&
---Purpose: Returns the constructed transformation.
Operator(me) returns Transformation from Geom2d
is static;
---C++: return const&
---C++: alias "Standard_EXPORT operator Handle_Geom2d_Transformation() const;"
---C++: alias "operator const Handle(Geom2d_Transformation)& () const { return Value(); }"
fields

View File

@@ -58,14 +58,3 @@ const Handle(Geom2d_Transformation)& GCE2d_MakeMirror::Value() const
{
return TheMirror;
}
const Handle(Geom2d_Transformation)& GCE2d_MakeMirror::Operator() const
{
return TheMirror;
}
GCE2d_MakeMirror::operator Handle(Geom2d_Transformation) () const
{
return TheMirror;
}

View File

@@ -102,11 +102,7 @@ Value(me) returns Parabola from Geom2d
---C++: return const&
---Purpose: Returns the constructed parabola.
-- Exceptions StdFail_NotDone if no parabola is constructed.
Operator(me) returns Parabola from Geom2d
is static;
---C++: return const&
---C++: alias "Standard_EXPORT operator Handle_Geom2d_Parabola() const;"
---C++: alias "operator const Handle(Geom2d_Parabola)& () const { return Value(); }"
fields

View File

@@ -77,14 +77,3 @@ const Handle(Geom2d_Parabola)& GCE2d_MakeParabola::Value() const
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheParabola;
}
const Handle(Geom2d_Parabola)& GCE2d_MakeParabola::Operator() const
{
return Value();
}
GCE2d_MakeParabola::operator Handle(Geom2d_Parabola) () const
{
return Value();
}

View File

@@ -39,11 +39,7 @@ Value(me) returns Transformation from Geom2d
is static;
---C++: return const&
---Purpose: Returns the constructed transformation.
Operator(me) returns Transformation from Geom2d
is static;
---C++: return const&
---C++: alias "Standard_EXPORT operator Handle_Geom2d_Transformation() const;"
---C++: alias "operator const Handle(Geom2d_Transformation)& () const { return Value(); }"
fields

View File

@@ -31,17 +31,3 @@ const Handle(Geom2d_Transformation)& GCE2d_MakeRotation::Value() const
{
return TheRotation;
}
const Handle(Geom2d_Transformation)& GCE2d_MakeRotation::Operator() const
{
return TheRotation;
}
GCE2d_MakeRotation::operator Handle(Geom2d_Transformation) () const
{
return TheRotation;
}

View File

@@ -42,11 +42,7 @@ Value(me) returns Transformation from Geom2d
is static;
---C++: return const&
---Purpose: Returns the constructed transformation.
Operator(me) returns Transformation from Geom2d
is static;
---C++: return const&
---C++: alias "Standard_EXPORT operator Handle_Geom2d_Transformation() const;"
---C++: alias "operator const Handle(Geom2d_Transformation)& () const { return Value(); }"
fields

View File

@@ -30,14 +30,3 @@ const Handle(Geom2d_Transformation)& GCE2d_MakeScale::Value() const
{
return TheScale;
}
const Handle(Geom2d_Transformation)& GCE2d_MakeScale::Operator() const
{
return TheScale;
}
GCE2d_MakeScale::operator Handle(Geom2d_Transformation) () const
{
return TheScale;
}

View File

@@ -80,11 +80,7 @@ Value(me) returns TrimmedCurve from Geom2d
---C++: return const&
---Purpose: Returns the constructed line segment.
-- Exceptions StdFail_NotDone if no line segment is constructed.
Operator(me) returns TrimmedCurve from Geom2d
is static;
---C++: return const&
---C++: alias "Standard_EXPORT operator Handle_Geom2d_TrimmedCurve() const;"
---C++: alias "operator const Handle(Geom2d_TrimmedCurve)& () const { return Value(); }"
fields

View File

@@ -80,14 +80,3 @@ const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeSegment::Value() const
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheSegment;
}
const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeSegment::Operator() const
{
return Value();
}
GCE2d_MakeSegment::operator Handle(Geom2d_TrimmedCurve) () const
{
return Value();
}

View File

@@ -45,11 +45,7 @@ Value(me) returns Transformation from Geom2d
is static;
---C++: return const&
---Purpose: Returns the constructed transformation.
Operator(me) returns Transformation from Geom2d
is static;
---C++: return const&
---C++: alias "Standard_EXPORT operator Handle_Geom2d_Transformation() const;"
---C++: alias "operator const Handle(Geom2d_Transformation)& () const { return Value(); }"
fields

View File

@@ -40,14 +40,3 @@ const Handle(Geom2d_Transformation)& GCE2d_MakeTranslation::Value() const
{
return TheTranslation;
}
const Handle(Geom2d_Transformation)& GCE2d_MakeTranslation::Operator() const
{
return TheTranslation;
}
GCE2d_MakeTranslation::operator Handle(Geom2d_Transformation) () const
{
return TheTranslation;
}