0022048: Visualization, AIS_InteractiveContext - single object selection should alway...
[occt.git] / src / math / math_KronrodSingleIntegration.lxx
1 // Created on: 2005-12-08
2 // Created by: Sergey KHROMOV
3 // Copyright (c) 2005-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #include <StdFail_NotDone.hxx>
17
18 //==========================================================================
19 //function : IsDone
20 //           Returns Standard_True if computation is performed successfully.
21 //==========================================================================
22
23 inline Standard_Boolean math_KronrodSingleIntegration::IsDone() const 
24 {
25   return myIsDone;
26 }
27
28 //==========================================================================
29 //function : Value
30 //           Returns the value of the integral.
31 //==========================================================================
32
33 inline Standard_Real math_KronrodSingleIntegration::Value() const
34 {
35   StdFail_NotDone_Raise_if(!myIsDone, "math_KronrodSingleIntegration");
36   return myValue;
37 }
38
39 //==========================================================================
40 //function : ErrorReached
41 //           Returns the value of the relative error reached.
42 //==========================================================================
43
44 inline Standard_Real math_KronrodSingleIntegration::ErrorReached() const
45 {
46   StdFail_NotDone_Raise_if(!myIsDone, "math_KronrodSingleIntegration");
47   return myErrorReached;
48 }
49
50 //=======================================================================
51 //function : AbsolutError
52 //purpose  : 
53 //=======================================================================
54
55 inline Standard_Real math_KronrodSingleIntegration::AbsolutError() const
56 {
57   StdFail_NotDone_Raise_if(!myIsDone, "math_KronrodSingleIntegration");
58   return myAbsolutError;
59 }
60  
61 //==========================================================================
62 //function : OrderReached
63 //           Returns the number of Kronrod points for which the result
64 //           is computed.
65 //==========================================================================
66
67 inline Standard_Integer math_KronrodSingleIntegration::OrderReached() const
68 {
69   StdFail_NotDone_Raise_if(!myIsDone, "math_KronrodSingleIntegration");
70   return myNbPntsReached;
71 }
72
73 //==========================================================================
74 //function : NbIterReached
75 //           Returns the number of iterations that were made to compute result.
76 //==========================================================================
77
78 inline Standard_Integer math_KronrodSingleIntegration::NbIterReached() const
79 {
80   StdFail_NotDone_Raise_if(!myIsDone, "math_KronrodSingleIntegration");
81   return myNbIterReached;
82 }