mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +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:
@@ -101,13 +101,13 @@ inline Standard_Boolean IntWalk_IWLine::HasFirstPoint() const
|
||||
|
||||
inline Standard_Integer IntWalk_IWLine::FirstPointIndex() const
|
||||
{
|
||||
if (!hasFirst) Standard_DomainError::Raise();
|
||||
if (!hasFirst) throw Standard_DomainError();
|
||||
return firstIndex;
|
||||
}
|
||||
|
||||
inline const TheStartPoint& IntWalk_IWLine::FirstPoint() const
|
||||
{
|
||||
if (!hasFirst) Standard_DomainError::Raise();
|
||||
if (!hasFirst) throw Standard_DomainError();
|
||||
return theFirstPoint;
|
||||
}
|
||||
|
||||
@@ -118,13 +118,13 @@ inline Standard_Boolean IntWalk_IWLine::HasLastPoint() const
|
||||
|
||||
inline const TheStartPoint& IntWalk_IWLine::LastPoint() const
|
||||
{
|
||||
if (!hasLast) Standard_DomainError::Raise();
|
||||
if (!hasLast) throw Standard_DomainError();
|
||||
return theLastPoint;
|
||||
}
|
||||
|
||||
inline Standard_Integer IntWalk_IWLine::LastPointIndex() const
|
||||
{
|
||||
if (!hasLast) Standard_DomainError::Raise();
|
||||
if (!hasLast) throw Standard_DomainError();
|
||||
return lastIndex;
|
||||
}
|
||||
|
||||
|
@@ -33,27 +33,27 @@ inline Standard_Boolean IntWalk_IWalking::IsDone() const
|
||||
|
||||
inline Standard_Integer IntWalk_IWalking::NbLines() const
|
||||
{
|
||||
if(!done) StdFail_NotDone::Raise();
|
||||
if(!done) throw StdFail_NotDone();
|
||||
return lines.Length();
|
||||
}
|
||||
|
||||
inline const Handle(IntWalk_TheIWLine)& IntWalk_IWalking::Value
|
||||
(const Standard_Integer Index) const
|
||||
{
|
||||
if(!done) StdFail_NotDone::Raise();
|
||||
if(!done) throw StdFail_NotDone();
|
||||
return lines.Value(Index);
|
||||
}
|
||||
|
||||
inline Standard_Integer IntWalk_IWalking::NbSinglePnts() const
|
||||
{
|
||||
if(!done) StdFail_NotDone::Raise();
|
||||
if(!done) throw StdFail_NotDone();
|
||||
return seqSingle.Length();
|
||||
}
|
||||
|
||||
inline const ThePointOfPath& IntWalk_IWalking::SinglePnt
|
||||
(const Standard_Integer Index) const
|
||||
{
|
||||
if(!done) StdFail_NotDone::Raise();
|
||||
if(!done) throw StdFail_NotDone();
|
||||
return seqSingle.Value(Index);
|
||||
}
|
||||
|
||||
|
@@ -63,7 +63,7 @@ void IntWalk_IWalking::MakeWalkingPoint
|
||||
MakeWalkingPoint(Case - 10, U, V, sp, Psol);
|
||||
}
|
||||
else {
|
||||
Standard_ConstructionError::Raise();
|
||||
throw Standard_ConstructionError();
|
||||
}
|
||||
|
||||
|
||||
|
@@ -20,44 +20,44 @@ inline Standard_Boolean IntWalk_PWalking::IsDone() const {
|
||||
}
|
||||
|
||||
inline Standard_Integer IntWalk_PWalking::NbPoints() const {
|
||||
if(!done) StdFail_NotDone::Raise();
|
||||
if(!done) throw StdFail_NotDone();
|
||||
return line->NbPoints();
|
||||
}
|
||||
|
||||
inline const IntSurf_PntOn2S& IntWalk_PWalking::Value
|
||||
(const Standard_Integer Index) const
|
||||
{
|
||||
if (!done) StdFail_NotDone::Raise();
|
||||
if (!done) throw StdFail_NotDone();
|
||||
return line->Value(Index);
|
||||
}
|
||||
|
||||
|
||||
inline const Handle(IntSurf_LineOn2S)& IntWalk_PWalking::Line () const {
|
||||
|
||||
if (!done) StdFail_NotDone::Raise();
|
||||
if (!done) throw StdFail_NotDone();
|
||||
return line;
|
||||
}
|
||||
|
||||
|
||||
inline Standard_Boolean IntWalk_PWalking::TangentAtFirst() const{
|
||||
if(!done) StdFail_NotDone::Raise();
|
||||
if(!done) throw StdFail_NotDone();
|
||||
return tgfirst;
|
||||
}
|
||||
|
||||
inline Standard_Boolean IntWalk_PWalking::TangentAtLast() const{
|
||||
if(!done) StdFail_NotDone::Raise();
|
||||
if(!done) throw StdFail_NotDone();
|
||||
return tglast;
|
||||
}
|
||||
|
||||
inline Standard_Boolean IntWalk_PWalking::IsClosed() const{
|
||||
if(!done) StdFail_NotDone::Raise();
|
||||
if(!done) throw StdFail_NotDone();
|
||||
return close;
|
||||
}
|
||||
|
||||
inline const gp_Dir& IntWalk_PWalking::TangentAtLine
|
||||
(Standard_Integer& Index) const
|
||||
{
|
||||
if(!done) StdFail_NotDone::Raise();
|
||||
if(!done) throw StdFail_NotDone();
|
||||
Index = indextg;
|
||||
return tgdir;
|
||||
}
|
||||
|
@@ -48,9 +48,6 @@ public:
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Raises Construction Error
|
||||
Standard_EXPORT IntWalk_TheFunctionOfTheInt2S();
|
||||
|
||||
Standard_EXPORT IntWalk_TheFunctionOfTheInt2S(const Handle(Adaptor3d_HSurface)& S1, const Handle(Adaptor3d_HSurface)& S2);
|
||||
|
||||
Standard_EXPORT Standard_Integer NbVariables() const;
|
||||
|
@@ -48,10 +48,6 @@ class IntWalk_TheInt2S
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Raises Construction Error
|
||||
Standard_EXPORT IntWalk_TheInt2S();
|
||||
|
||||
//! compute the solution point with the close point
|
||||
Standard_EXPORT IntWalk_TheInt2S(const TColStd_Array1OfReal& Param, const Handle(Adaptor3d_HSurface)& S1, const Handle(Adaptor3d_HSurface)& S2, const Standard_Real TolTangency);
|
||||
|
Reference in New Issue
Block a user