mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-18 14:27:39 +03:00
0026937: Eliminate NO_CXX_EXCEPTION macro support
Macro NO_CXX_EXCEPTION was removed from code. Method Raise() was replaced by explicit throw statement. Method Standard_Failure::Caught() was replaced by normal C++mechanism of exception transfer. Method Standard_Failure::Caught() is deprecated now. Eliminated empty constructors. Updated samples. Eliminate empty method ChangeValue from NCollection_Map class. Removed not operable methods from NCollection classes.
This commit is contained in:
@@ -32,7 +32,7 @@ inline Standard_Boolean BRepBlend_Extremity::HasTangent () const
|
||||
|
||||
inline const gp_Vec& BRepBlend_Extremity::Tangent () const
|
||||
{
|
||||
if (!hastang) {Standard_DomainError::Raise();}
|
||||
if (!hastang) {throw Standard_DomainError();}
|
||||
return tang;
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ inline Standard_Boolean BRepBlend_Extremity::IsVertex() const
|
||||
|
||||
inline const Handle(Adaptor3d_HVertex)& BRepBlend_Extremity::Vertex () const
|
||||
{
|
||||
if (!isvtx) {Standard_DomainError::Raise();}
|
||||
if (!isvtx) {throw Standard_DomainError();}
|
||||
return vtx;
|
||||
}
|
||||
|
||||
|
@@ -66,13 +66,13 @@ inline const Blend_Point& BRepBlend_Line::Point(const Standard_Integer Index) co
|
||||
|
||||
inline IntSurf_TypeTrans BRepBlend_Line::TransitionOnS1 () const
|
||||
{
|
||||
if (!hass1) {Standard_DomainError::Raise();}
|
||||
if (!hass1) {throw Standard_DomainError();}
|
||||
return tras1;
|
||||
}
|
||||
|
||||
inline IntSurf_TypeTrans BRepBlend_Line::TransitionOnS2 () const
|
||||
{
|
||||
if (!hass2) {Standard_DomainError::Raise();}
|
||||
if (!hass2) {throw Standard_DomainError();}
|
||||
return tras2;
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ inline const BRepBlend_Extremity& BRepBlend_Line::EndPointOnSecond() const
|
||||
|
||||
inline IntSurf_TypeTrans BRepBlend_Line::TransitionOnS () const
|
||||
{
|
||||
if (!hass1) {Standard_DomainError::Raise();}
|
||||
if (!hass1) {throw Standard_DomainError();}
|
||||
return tras1;
|
||||
}
|
||||
|
||||
|
@@ -407,7 +407,7 @@ Standard_Boolean BRepBlend_RstRstConstRad::IsTangencyPoint() const
|
||||
|
||||
const gp_Vec& BRepBlend_RstRstConstRad::TangentOnRst1() const
|
||||
{
|
||||
if (istangent) {Standard_DomainError::Raise();}
|
||||
if (istangent) {throw Standard_DomainError();}
|
||||
return tgrst1;
|
||||
}
|
||||
|
||||
@@ -418,7 +418,7 @@ const gp_Vec& BRepBlend_RstRstConstRad::TangentOnRst1() const
|
||||
|
||||
const gp_Vec2d& BRepBlend_RstRstConstRad::Tangent2dOnRst1() const
|
||||
{
|
||||
if (istangent) {Standard_DomainError::Raise();}
|
||||
if (istangent) {throw Standard_DomainError();}
|
||||
return tg2drst1;
|
||||
}
|
||||
|
||||
@@ -429,7 +429,7 @@ const gp_Vec2d& BRepBlend_RstRstConstRad::Tangent2dOnRst1() const
|
||||
|
||||
const gp_Vec& BRepBlend_RstRstConstRad::TangentOnRst2() const
|
||||
{
|
||||
if (istangent) {Standard_DomainError::Raise();}
|
||||
if (istangent) {throw Standard_DomainError();}
|
||||
return tgrst2;
|
||||
}
|
||||
|
||||
@@ -440,7 +440,7 @@ const gp_Vec& BRepBlend_RstRstConstRad::TangentOnRst2() const
|
||||
|
||||
const gp_Vec2d& BRepBlend_RstRstConstRad::Tangent2dOnRst2() const
|
||||
{
|
||||
if (istangent) {Standard_DomainError::Raise();}
|
||||
if (istangent) {throw Standard_DomainError();}
|
||||
return tg2drst2;
|
||||
}
|
||||
|
||||
|
@@ -479,7 +479,7 @@ Standard_Boolean BRepBlend_RstRstEvolRad::IsTangencyPoint() const
|
||||
|
||||
const gp_Vec& BRepBlend_RstRstEvolRad::TangentOnRst1() const
|
||||
{
|
||||
if (istangent) {Standard_DomainError::Raise();}
|
||||
if (istangent) {throw Standard_DomainError();}
|
||||
return tgrst1;
|
||||
}
|
||||
|
||||
@@ -490,7 +490,7 @@ const gp_Vec& BRepBlend_RstRstEvolRad::TangentOnRst1() const
|
||||
|
||||
const gp_Vec2d& BRepBlend_RstRstEvolRad::Tangent2dOnRst1() const
|
||||
{
|
||||
if (istangent) {Standard_DomainError::Raise();}
|
||||
if (istangent) {throw Standard_DomainError();}
|
||||
return tg2drst1;
|
||||
}
|
||||
|
||||
@@ -501,7 +501,7 @@ const gp_Vec2d& BRepBlend_RstRstEvolRad::Tangent2dOnRst1() const
|
||||
|
||||
const gp_Vec& BRepBlend_RstRstEvolRad::TangentOnRst2() const
|
||||
{
|
||||
if (istangent) {Standard_DomainError::Raise();}
|
||||
if (istangent) {throw Standard_DomainError();}
|
||||
return tgrst2;
|
||||
}
|
||||
|
||||
@@ -512,7 +512,7 @@ const gp_Vec& BRepBlend_RstRstEvolRad::TangentOnRst2() const
|
||||
|
||||
const gp_Vec2d& BRepBlend_RstRstEvolRad::Tangent2dOnRst2() const
|
||||
{
|
||||
if (istangent) {Standard_DomainError::Raise();}
|
||||
if (istangent) {throw Standard_DomainError();}
|
||||
return tg2drst2;
|
||||
}
|
||||
|
||||
|
@@ -512,7 +512,7 @@ Standard_Boolean BRepBlend_RstRstLineBuilder::Complete(Blend_RstRstFunction& F
|
||||
Blend_CurvPointFuncInv& FinvP2,
|
||||
const Standard_Real Pmin)
|
||||
{
|
||||
if (!done) {StdFail_NotDone::Raise();}
|
||||
if (!done) {throw StdFail_NotDone();}
|
||||
if (iscomplete) {return Standard_True;}
|
||||
if (sens >0.) {
|
||||
previousP = line->Point(1);
|
||||
|
@@ -32,7 +32,7 @@ inline Standard_Boolean BRepBlend_RstRstLineBuilder::IsDone() const
|
||||
|
||||
inline const Handle(BRepBlend_Line)& BRepBlend_RstRstLineBuilder::Line() const
|
||||
{
|
||||
if (!done) {StdFail_NotDone::Raise();}
|
||||
if (!done) {throw StdFail_NotDone();}
|
||||
return line;
|
||||
}
|
||||
|
||||
|
@@ -516,7 +516,7 @@ Standard_Boolean BRepBlend_SurfRstConstRad::IsTangencyPoint() const
|
||||
|
||||
const gp_Vec& BRepBlend_SurfRstConstRad::TangentOnS() const
|
||||
{
|
||||
if (istangent) {Standard_DomainError::Raise();}
|
||||
if (istangent) {throw Standard_DomainError();}
|
||||
return tgs;
|
||||
}
|
||||
|
||||
@@ -527,7 +527,7 @@ const gp_Vec& BRepBlend_SurfRstConstRad::TangentOnS() const
|
||||
|
||||
const gp_Vec2d& BRepBlend_SurfRstConstRad::Tangent2dOnS() const
|
||||
{
|
||||
if (istangent) {Standard_DomainError::Raise();}
|
||||
if (istangent) {throw Standard_DomainError();}
|
||||
return tg2ds;
|
||||
}
|
||||
|
||||
@@ -538,7 +538,7 @@ const gp_Vec2d& BRepBlend_SurfRstConstRad::Tangent2dOnS() const
|
||||
|
||||
const gp_Vec& BRepBlend_SurfRstConstRad::TangentOnRst() const
|
||||
{
|
||||
if (istangent) {Standard_DomainError::Raise();}
|
||||
if (istangent) {throw Standard_DomainError();}
|
||||
return tgrst;
|
||||
}
|
||||
|
||||
@@ -549,7 +549,7 @@ const gp_Vec& BRepBlend_SurfRstConstRad::TangentOnRst() const
|
||||
|
||||
const gp_Vec2d& BRepBlend_SurfRstConstRad::Tangent2dOnRst() const
|
||||
{
|
||||
if (istangent) {Standard_DomainError::Raise();}
|
||||
if (istangent) {throw Standard_DomainError();}
|
||||
return tg2drst;
|
||||
}
|
||||
|
||||
|
@@ -568,7 +568,7 @@ const gp_Pnt2d& BRepBlend_SurfRstEvolRad::Pnt2dOnRst() const
|
||||
//=======================================================================
|
||||
const gp_Vec& BRepBlend_SurfRstEvolRad::TangentOnS() const
|
||||
{
|
||||
if (istangent) {Standard_DomainError::Raise();}
|
||||
if (istangent) {throw Standard_DomainError();}
|
||||
return tgs;
|
||||
}
|
||||
|
||||
@@ -578,7 +578,7 @@ const gp_Vec& BRepBlend_SurfRstEvolRad::TangentOnS() const
|
||||
//=======================================================================
|
||||
const gp_Vec2d& BRepBlend_SurfRstEvolRad::Tangent2dOnS() const
|
||||
{
|
||||
if (istangent) {Standard_DomainError::Raise();}
|
||||
if (istangent) {throw Standard_DomainError();}
|
||||
return tg2ds;
|
||||
}
|
||||
|
||||
@@ -588,7 +588,7 @@ const gp_Vec2d& BRepBlend_SurfRstEvolRad::Tangent2dOnS() const
|
||||
//=======================================================================
|
||||
const gp_Vec& BRepBlend_SurfRstEvolRad::TangentOnRst() const
|
||||
{
|
||||
if (istangent) {Standard_DomainError::Raise();}
|
||||
if (istangent) {throw Standard_DomainError();}
|
||||
return tgrst;
|
||||
}
|
||||
|
||||
@@ -598,7 +598,7 @@ const gp_Vec& BRepBlend_SurfRstEvolRad::TangentOnRst() const
|
||||
//=======================================================================
|
||||
const gp_Vec2d& BRepBlend_SurfRstEvolRad::Tangent2dOnRst() const
|
||||
{
|
||||
if (istangent) {Standard_DomainError::Raise();}
|
||||
if (istangent) {throw Standard_DomainError();}
|
||||
return tg2drst;
|
||||
}
|
||||
|
||||
|
@@ -474,7 +474,7 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::Complete(Blend_SurfRstFunction&
|
||||
Blend_SurfCurvFuncInv& FinvC,
|
||||
const Standard_Real Pmin)
|
||||
{
|
||||
if (!done) {StdFail_NotDone::Raise();}
|
||||
if (!done) {throw StdFail_NotDone();}
|
||||
if (iscomplete) {return Standard_True;}
|
||||
if (sens >0.) {
|
||||
previousP = line->Point(1);
|
||||
|
@@ -32,7 +32,7 @@ inline Standard_Boolean BRepBlend_SurfRstLineBuilder::IsDone() const
|
||||
|
||||
inline const Handle(BRepBlend_Line)& BRepBlend_SurfRstLineBuilder::Line() const
|
||||
{
|
||||
if (!done) {StdFail_NotDone::Raise();}
|
||||
if (!done) {throw StdFail_NotDone();}
|
||||
return line;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user