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:
@@ -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
|
||||
|
@@ -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); }
|
||||
|
||||
//=======================================================================
|
||||
|
@@ -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>.
|
||||
|
@@ -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); }
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user