mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50: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:
@@ -90,21 +90,21 @@ class ExtremaExtElC_TrigonometricRoots {
|
||||
//
|
||||
Standard_Integer NbSolutions() {
|
||||
if(!done) {
|
||||
StdFail_NotDone::Raise();
|
||||
throw StdFail_NotDone();
|
||||
}
|
||||
return NbRoots;
|
||||
}
|
||||
//
|
||||
Standard_Boolean InfiniteRoots() {
|
||||
if(!done) {
|
||||
StdFail_NotDone::Raise();
|
||||
throw StdFail_NotDone();
|
||||
}
|
||||
return infinite_roots;
|
||||
}
|
||||
//
|
||||
Standard_Real Value(const Standard_Integer& n) {
|
||||
if((!done)||(n>NbRoots)) {
|
||||
StdFail_NotDone::Raise();
|
||||
throw StdFail_NotDone();
|
||||
}
|
||||
return Roots[n-1];
|
||||
}
|
||||
@@ -1024,78 +1024,7 @@ Extrema_ExtElC::Extrema_ExtElC (const gp_Circ& C1,
|
||||
}// if (!bOut || !bIn) {
|
||||
}// else
|
||||
}
|
||||
//=======================================================================
|
||||
//function : Extrema_ExtElC
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Extrema_ExtElC::Extrema_ExtElC (const gp_Circ&, const gp_Elips&)
|
||||
{
|
||||
Standard_NotImplemented::Raise();
|
||||
}
|
||||
//=======================================================================
|
||||
//function : Extrema_ExtElC
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Extrema_ExtElC::Extrema_ExtElC (const gp_Circ&, const gp_Hypr&)
|
||||
{
|
||||
Standard_NotImplemented::Raise();
|
||||
}
|
||||
//=======================================================================
|
||||
//function : Extrema_ExtElC
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Extrema_ExtElC::Extrema_ExtElC (const gp_Circ&, const gp_Parab&)
|
||||
{
|
||||
Standard_NotImplemented::Raise();
|
||||
}
|
||||
//=======================================================================
|
||||
//function : Extrema_ExtElC
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Extrema_ExtElC::Extrema_ExtElC (const gp_Elips&, const gp_Elips&)
|
||||
{
|
||||
Standard_NotImplemented::Raise();
|
||||
}
|
||||
//=======================================================================
|
||||
//function : Extrema_ExtElC
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Extrema_ExtElC::Extrema_ExtElC (const gp_Elips&, const gp_Hypr&)
|
||||
{
|
||||
Standard_NotImplemented::Raise();
|
||||
}
|
||||
//=======================================================================
|
||||
//function : Extrema_ExtElC
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Extrema_ExtElC::Extrema_ExtElC (const gp_Elips&, const gp_Parab&)
|
||||
{
|
||||
Standard_NotImplemented::Raise();
|
||||
}
|
||||
//=======================================================================
|
||||
//function : Extrema_ExtElC
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Extrema_ExtElC::Extrema_ExtElC (const gp_Hypr&, const gp_Hypr&)
|
||||
{
|
||||
Standard_NotImplemented::Raise();
|
||||
}
|
||||
//=======================================================================
|
||||
//function : Extrema_ExtElC
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Extrema_ExtElC::Extrema_ExtElC (const gp_Hypr&, const gp_Parab&)
|
||||
{
|
||||
Standard_NotImplemented::Raise();
|
||||
}
|
||||
//=======================================================================
|
||||
//function : Extrema_ExtElC
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Extrema_ExtElC::Extrema_ExtElC (const gp_Parab&, const gp_Parab&)
|
||||
{
|
||||
Standard_NotImplemented::Raise();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : IsDone
|
||||
//purpose :
|
||||
@@ -1110,7 +1039,7 @@ Standard_Boolean Extrema_ExtElC::IsDone () const {
|
||||
Standard_Boolean Extrema_ExtElC::IsParallel () const
|
||||
{
|
||||
if (!IsDone()) {
|
||||
StdFail_NotDone::Raise();
|
||||
throw StdFail_NotDone();
|
||||
}
|
||||
return myIsPar;
|
||||
}
|
||||
@@ -1121,7 +1050,7 @@ Standard_Boolean Extrema_ExtElC::IsParallel () const
|
||||
Standard_Integer Extrema_ExtElC::NbExt () const
|
||||
{
|
||||
if (IsParallel()) {
|
||||
StdFail_InfiniteSolutions::Raise();
|
||||
throw StdFail_InfiniteSolutions();
|
||||
}
|
||||
return myNbExt;
|
||||
}
|
||||
@@ -1132,16 +1061,16 @@ Standard_Integer Extrema_ExtElC::NbExt () const
|
||||
Standard_Real Extrema_ExtElC::SquareDistance (const Standard_Integer N) const
|
||||
{
|
||||
if (!myDone) {
|
||||
StdFail_NotDone::Raise();
|
||||
throw StdFail_NotDone();
|
||||
}
|
||||
if (myIsPar) {
|
||||
if (N < 1 || N > 2) {
|
||||
Standard_OutOfRange::Raise();
|
||||
throw Standard_OutOfRange();
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (N < 1 || N > NbExt()) {
|
||||
Standard_OutOfRange::Raise();
|
||||
throw Standard_OutOfRange();
|
||||
}
|
||||
}
|
||||
return mySqDist[N-1];
|
||||
@@ -1155,7 +1084,7 @@ void Extrema_ExtElC::Points (const Standard_Integer N,
|
||||
Extrema_POnCurv& P2) const
|
||||
{
|
||||
if (N < 1 || N > NbExt()) {
|
||||
Standard_OutOfRange::Raise();
|
||||
throw Standard_OutOfRange();
|
||||
}
|
||||
P1 = myPoint[N-1][0];
|
||||
P2 = myPoint[N-1][1];
|
||||
|
Reference in New Issue
Block a user