Skip to content

Commit 2300864

Browse files
committed
Coding - Method guard iterative update
Used regex in src folder: //[\s\n\r\t]*==[=]+[\n\r]+//[\s\n\r\t]*[a-z]+[\s\n\r\t]*:[\s\n\r\t]*[a-z0-9_:\t\s]*[\s\n\r\t]//[\s\n\r\t]*[a-z]+[\s\n\r\t]*:([a-z0-9_\s\t./-><]){1,22}//[\s\n\r\t]*===[=]+
1 parent 6765a67 commit 2300864

365 files changed

Lines changed: 4786 additions & 9372 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/ApplicationFramework/TKBin/BinMNaming/BinMNaming_NamedShapeDriver.lxx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@
1313
// Alternatively, this file may be used under the terms of Open CASCADE
1414
// commercial license or contractual agreement.
1515

16-
//=======================================================================
17-
// function : SetWithTriangles
18-
// purpose :
19-
//=======================================================================
16+
//=================================================================================================
17+
2018

2119
inline void BinMNaming_NamedShapeDriver::SetWithTriangles(const Standard_Boolean isWithTriangles)
2220
{
@@ -25,10 +23,8 @@ inline void BinMNaming_NamedShapeDriver::SetWithTriangles(const Standard_Boolean
2523
myShapeSet->SetWithTriangles(isWithTriangles);
2624
}
2725

28-
//=======================================================================
29-
// function : SetWithNormals
30-
// purpose :
31-
//=======================================================================
26+
//=================================================================================================
27+
3228

3329
inline void BinMNaming_NamedShapeDriver::SetWithNormals(const Standard_Boolean isWithNormals)
3430
{

src/ApplicationFramework/TKBinL/BinMDF/BinMDF_ADriver.lxx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@
1515

1616
#include <TDF_Attribute.hxx>
1717

18-
//=======================================================================
19-
// function : TypeName
20-
// purpose :
21-
//=======================================================================
18+
//=================================================================================================
19+
2220

2321
inline const TCollection_AsciiString& BinMDF_ADriver::TypeName() const
2422
{

src/ApplicationFramework/TKBinL/BinObjMgt/BinObjMgt_Persistent.lxx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -203,20 +203,16 @@ inline Standard_Boolean BinObjMgt_Persistent::noMoreData(const Standard_Integer
203203
return myIsError;
204204
}
205205

206-
//=======================================================================
207-
// function : PutBoolean
208-
// purpose :
209-
//=======================================================================
206+
//=================================================================================================
207+
210208

211209
inline BinObjMgt_Persistent& BinObjMgt_Persistent::PutBoolean(const Standard_Boolean theValue)
212210
{
213211
return PutInteger((Standard_Integer)theValue);
214212
}
215213

216-
//=======================================================================
217-
// function : GetBoolean
218-
// purpose :
219-
//=======================================================================
214+
//=================================================================================================
215+
220216

221217
inline const BinObjMgt_Persistent& BinObjMgt_Persistent::GetBoolean(
222218
Standard_Boolean& theValue) const

src/ApplicationFramework/TKCAF/TDataXtd/TDataXtd_PatternStd.lxx

Lines changed: 20 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -13,100 +13,80 @@
1313
// Alternatively, this file may be used under the terms of Open CASCADE
1414
// commercial license or contractual agreement.
1515

16-
//=======================================================================
17-
// function : Signature
18-
// purpose :
19-
//=======================================================================
16+
//=================================================================================================
17+
2018

2119
inline Standard_Integer TDataXtd_PatternStd::Signature() const
2220
{
2321
return mySignature;
2422
}
2523

26-
//=======================================================================
27-
// function : Axis1
28-
// purpose :
29-
//=======================================================================
24+
//=================================================================================================
25+
3026

3127
inline Handle(TNaming_NamedShape) TDataXtd_PatternStd::Axis1() const
3228
{
3329
return myAxis1;
3430
}
3531

36-
//=======================================================================
37-
// function : Axis2
38-
// purpose :
39-
//=======================================================================
32+
//=================================================================================================
33+
4034

4135
inline Handle(TNaming_NamedShape) TDataXtd_PatternStd::Axis2() const
4236
{
4337
return myAxis2;
4438
}
4539

46-
//=======================================================================
47-
// function : Axis1Reversed
48-
// purpose :
49-
//=======================================================================
40+
//=================================================================================================
41+
5042

5143
inline Standard_Boolean TDataXtd_PatternStd::Axis1Reversed() const
5244
{
5345
return myAxis1Reversed;
5446
}
5547

56-
//=======================================================================
57-
// function : Axis2Reversed
58-
// purpose :
59-
//=======================================================================
48+
//=================================================================================================
49+
6050

6151
inline Standard_Boolean TDataXtd_PatternStd::Axis2Reversed() const
6252
{
6353
return myAxis2Reversed;
6454
}
6555

66-
//=======================================================================
67-
// function : Value1
68-
// purpose :
69-
//=======================================================================
56+
//=================================================================================================
57+
7058

7159
inline Handle(TDataStd_Real) TDataXtd_PatternStd::Value1() const
7260
{
7361
return myValue1;
7462
}
7563

76-
//=======================================================================
77-
// function : Value2
78-
// purpose :
79-
//=======================================================================
64+
//=================================================================================================
65+
8066

8167
inline Handle(TDataStd_Real) TDataXtd_PatternStd::Value2() const
8268
{
8369
return myValue2;
8470
}
8571

86-
//=======================================================================
87-
// function : NbInstances1
88-
// purpose :
89-
//=======================================================================
72+
//=================================================================================================
73+
9074

9175
inline Handle(TDataStd_Integer) TDataXtd_PatternStd::NbInstances1() const
9276
{
9377
return myNb1;
9478
}
9579

96-
//=======================================================================
97-
// function : NbInstances2
98-
// purpose :
99-
//=======================================================================
80+
//=================================================================================================
81+
10082

10183
inline Handle(TDataStd_Integer) TDataXtd_PatternStd::NbInstances2() const
10284
{
10385
return myNb2;
10486
}
10587

106-
//=======================================================================
107-
// function : Mirror
108-
// purpose :
109-
//=======================================================================
88+
//=================================================================================================
89+
11090

11191
inline Handle(TNaming_NamedShape) TDataXtd_PatternStd::Mirror() const
11292
{

src/ApplicationFramework/TKCAF/TDataXtd/TDataXtd_Presentation.cxx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,9 @@ Standard_Integer TDataXtd_Presentation::getOldColorNameFromNewEnum(Quantity_Name
261261
return anOld;
262262
}
263263

264-
//=======================================================================
265-
// function : TDataXtd_Presentation
266-
// purpose : Default constructor.
267-
//=======================================================================
264+
265+
//=================================================================================================
266+
268267
TDataXtd_Presentation::TDataXtd_Presentation()
269268
: myDriverGUID("00000000-0000-0000-0000-000000000000"),
270269
myColor(Quantity_NOC_WHITE),

src/ApplicationFramework/TKCAF/TNaming/TNaming_CopyShape.cxx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,9 @@ static Handle(TopLoc_Datum3D) TranslateDatum3D(const Handle(TopLoc_Datum3D)&
157157
return TD;
158158
}
159159

160-
//=======================================================================
161-
// function : Translates
162-
// purpose : Topological Location
163-
//=======================================================================
160+
161+
//=================================================================================================
162+
164163

165164
TopLoc_Location TNaming_CopyShape::Translate(const TopLoc_Location& L,
166165
TColStd_IndexedDataMapOfTransientTransient& aMap)

src/ApplicationFramework/TKCAF/TNaming/TNaming_IteratorOnShapesSet.lxx

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,57 +16,45 @@
1616

1717
#include <TNaming_ShapesSet.hxx>
1818

19-
//=======================================================================
20-
// function :
21-
// purpose :
22-
//=======================================================================
19+
//=================================================================================================
20+
2321

2422
inline TNaming_IteratorOnShapesSet::TNaming_IteratorOnShapesSet() {}
2523

26-
//=======================================================================
27-
// function :
28-
// purpose :
29-
//=======================================================================
24+
//=================================================================================================
25+
3026

3127
inline TNaming_IteratorOnShapesSet::TNaming_IteratorOnShapesSet(const TNaming_ShapesSet& S)
3228
{
3329
Init(S);
3430
}
3531

36-
//=======================================================================
37-
// function : Init
38-
// purpose :
39-
//=======================================================================
32+
//=================================================================================================
33+
4034

4135
inline void TNaming_IteratorOnShapesSet::Init(const TNaming_ShapesSet& S)
4236
{
4337
myIt.Initialize(S.Map());
4438
}
4539

46-
//=======================================================================
47-
// function : More
48-
// purpose :
49-
//=======================================================================
40+
//=================================================================================================
41+
5042

5143
inline Standard_Boolean TNaming_IteratorOnShapesSet::More() const
5244
{
5345
return (myIt.More());
5446
}
5547

56-
//=======================================================================
57-
// function : Next
58-
// purpose :
59-
//=======================================================================
48+
//=================================================================================================
49+
6050

6151
inline void TNaming_IteratorOnShapesSet::Next()
6252
{
6353
myIt.Next();
6454
}
6555

66-
//=======================================================================
67-
// function : Value
68-
// purpose :
69-
//=======================================================================
56+
//=================================================================================================
57+
7058

7159
inline const TopoDS_Shape& TNaming_IteratorOnShapesSet::Value() const
7260
{

src/ApplicationFramework/TKCAF/TNaming/TNaming_NamedShape.lxx

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,40 +14,32 @@
1414
// Alternatively, this file may be used under the terms of Open CASCADE
1515
// commercial license or contractual agreement.
1616

17-
//=======================================================================
18-
// function : ID
19-
// purpose :
20-
//=======================================================================
17+
//=================================================================================================
18+
2119

2220
inline const Standard_GUID& TNaming_NamedShape::ID() const
2321
{
2422
return GetID();
2523
}
2624

27-
//=======================================================================
28-
// function :
29-
// purpose :
30-
//=======================================================================
25+
//=================================================================================================
26+
3127

3228
inline TNaming_Evolution TNaming_NamedShape::Evolution() const
3329
{
3430
return myEvolution;
3531
}
3632

37-
//=======================================================================
38-
// function :
39-
// purpose :
40-
//=======================================================================
33+
//=================================================================================================
34+
4135

4236
inline Standard_Integer TNaming_NamedShape::Version() const
4337
{
4438
return myVersion;
4539
}
4640

47-
//=======================================================================
48-
// function :
49-
// purpose :
50-
//=======================================================================
41+
//=================================================================================================
42+
5143

5244
inline void TNaming_NamedShape::SetVersion(const Standard_Integer v)
5345
{

src/ApplicationFramework/TKCAF/TNaming/TNaming_NewShapeIterator.lxx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414
// Alternatively, this file may be used under the terms of Open CASCADE
1515
// commercial license or contractual agreement.
1616

17-
//=======================================================================
18-
// function : More
19-
// purpose :
20-
//=======================================================================
17+
//=================================================================================================
18+
2119

2220
inline Standard_Boolean TNaming_NewShapeIterator::More() const
2321
{

src/ApplicationFramework/TKCAF/TNaming/TNaming_OldShapeIterator.lxx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414
// Alternatively, this file may be used under the terms of Open CASCADE
1515
// commercial license or contractual agreement.
1616

17-
//=======================================================================
18-
// function : More
19-
// purpose :
20-
//=======================================================================
17+
//=================================================================================================
18+
2119

2220
inline Standard_Boolean TNaming_OldShapeIterator::More() const
2321
{

0 commit comments

Comments
 (0)