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

0025246: Make methods Intervals and NbIntervals const in Adaptor3d_Curve and it descendants

Qualifier "const" added to NbIntervals and Intervals functions.

Fixed Standard_OVERRIDE macro description
Removed obsolete method declaration from Standard_Transient.cdl
This commit is contained in:
aml
2015-02-26 12:44:01 +03:00
committed by bugmaster
parent 69f86542ba
commit 31b1749c42
27 changed files with 65 additions and 74 deletions

View File

@@ -76,14 +76,14 @@ is
---Purpose:
---C++: inline
NbIntervals(myclass; C : in out Curve from BRepAdaptor;
NbIntervals(myclass; C : Curve from BRepAdaptor;
S : Shape from GeomAbs)
returns Integer from Standard;
---Purpose: Returns the number of intervals for continuity
-- <S>. May be one if Continuity(myclass) >= <S>
---C++: inline
Intervals(myclass; C : in out Curve from BRepAdaptor;
Intervals(myclass; C : Curve from BRepAdaptor;
T : in out Array1OfReal from TColStd;
S : Shape from GeomAbs)
---Purpose: Stores in <T> the parameters bounding the intervals

View File

@@ -57,8 +57,8 @@ HLRBRep_BCurveTool::Continuity (const BRepAdaptor_Curve& C)
//=======================================================================
inline Standard_Integer
HLRBRep_BCurveTool::NbIntervals(BRepAdaptor_Curve& C,
const GeomAbs_Shape Sh)
HLRBRep_BCurveTool::NbIntervals(const BRepAdaptor_Curve& C,
const GeomAbs_Shape Sh)
{ return(C.NbIntervals(Sh)); }
//=======================================================================
@@ -67,9 +67,9 @@ HLRBRep_BCurveTool::NbIntervals(BRepAdaptor_Curve& C,
//=======================================================================
inline void
HLRBRep_BCurveTool::Intervals(BRepAdaptor_Curve& C,
TColStd_Array1OfReal& Tab,
const GeomAbs_Shape Sh)
HLRBRep_BCurveTool::Intervals(const BRepAdaptor_Curve& C,
TColStd_Array1OfReal& Tab,
const GeomAbs_Shape Sh)
{ C.Intervals(Tab,Sh); }
//=======================================================================

View File

@@ -155,7 +155,7 @@ is
---C++: inline
is static;
NbIntervals(me: in out; S : Shape from GeomAbs)
NbIntervals(me; S : Shape from GeomAbs)
returns Integer from Standard
---Purpose: If necessary, breaks the curve in intervals of
-- continuity <S>. And returns the number of
@@ -163,7 +163,7 @@ is
---C++: inline
is static;
Intervals(me: in out; T : in out Array1OfReal from TColStd;
Intervals(me; T : in out Array1OfReal from TColStd;
S : Shape from GeomAbs)
---Purpose: Stores in <T> the parameters bounding the intervals
-- of continuity <S>.

View File

@@ -107,8 +107,7 @@ inline GeomAbs_Shape HLRBRep_Curve::Continuity() const
//purpose :
//=======================================================================
inline Standard_Integer HLRBRep_Curve::NbIntervals
(const GeomAbs_Shape S)
inline Standard_Integer HLRBRep_Curve::NbIntervals (const GeomAbs_Shape S) const
{ return HLRBRep_BCurveTool::NbIntervals(myCurve,S); }
//=======================================================================
@@ -117,7 +116,7 @@ inline Standard_Integer HLRBRep_Curve::NbIntervals
//=======================================================================
inline void HLRBRep_Curve::Intervals(TColStd_Array1OfReal& Tab,
const GeomAbs_Shape Sh)
const GeomAbs_Shape Sh) const
{ HLRBRep_BCurveTool::Intervals(myCurve,Tab,Sh); }