0029814: Modeling Data - add method TopoDS_Shape::NbChildren() for simple check of...
authorkgv <kgv@opencascade.com>
Thu, 24 May 2018 15:06:37 +0000 (18:06 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 14 Jun 2018 11:03:09 +0000 (14:03 +0300)
commitb2d1851c43c5c33e1926cad69033057bf3a0224f
tree44b6156e7176a6455171d0ce5061436c4a64fc87
parente67e482d99f639a666790d995180ccf1a02e2d4e
0029814: Modeling Data - add method TopoDS_Shape::NbChildren() for simple check of sub-shapes number

TopoDS_Shape::NbChildren() - new method has been introduced.
TopoDS_Shape.lxx, TopoDS_TShape.lxx - inline methods have been moved to hxx.
TopoDS_TShape_Flags has been redeclared as enumeration instead of preprocessor macros.

Cyclic dependency between headers TopoDS_Shape.hxx and TopoDS_TShape.hxx eliminated.

Places where TopoDS_Iterator is used only for calculation of number of sub-shapes are updated to use NbChildren() instead
68 files changed:
src/AIS/AIS_ParallelRelation.cxx
src/AIS/AIS_Shape.cxx
src/AIS/AIS_SymmetricRelation.cxx
src/BOPAlgo/BOPAlgo_ArgumentAnalyzer.cxx
src/BOPAlgo/BOPAlgo_Builder_3.cxx
src/BOPAlgo/BOPAlgo_Tools.cxx
src/BOPAlgo/BOPAlgo_WireSplitter.cxx
src/BRep/BRep_TEdge.cxx
src/BRep/BRep_TFace.cxx
src/BRep/BRep_TVertex.cxx
src/BRepCheck/BRepCheck.cxx
src/BRepFill/BRepFill_TrimShellCorner.cxx
src/BRepGProp/BRepGProp.cxx
src/BRepGProp/BRepGProp_Gauss.cxx
src/BRepOffset/BRepOffset_MakeOffset.cxx
src/BRepOffset/BRepOffset_MakeOffset_1.cxx
src/BRepOffsetAPI/BRepOffsetAPI_ThruSections.cxx
src/BRepProj/BRepProj_Projection.cxx
src/BRepTools/BRepTools.cxx
src/DBRep/DBRep_IsoBuilder.cxx
src/DNaming/DNaming.cxx
src/DNaming/DNaming_BooleanOperationDriver.cxx
src/DNaming/DNaming_FilletDriver.cxx
src/DrawDim/DrawDim_PlanarDimensionCommands.cxx
src/HLRBRep/HLRBRep_ShapeToHLR.cxx
src/IGESToBRep/IGESToBRep.cxx
src/IGESToBRep/IGESToBRep_BRepEntity.cxx
src/IVtkOCC/IVtkOCC_SelectableObject.cxx
src/STEPConstruct/STEPConstruct_Styles.cxx
src/STEPConstruct/STEPConstruct_ValidationProps.cxx
src/ShapeAnalysis/ShapeAnalysis_Wire.cxx
src/ShapeCustom/ShapeCustom.cxx
src/ShapeFix/ShapeFix_FixSmallSolid.cxx
src/ShapeFix/ShapeFix_Shape.cxx
src/ShapeFix/ShapeFix_Shell.cxx
src/ShapePersistent/ShapePersistent_TopoDS.cxx
src/ShapeProcessAPI/ShapeProcessAPI_ApplySequence.cxx
src/StdPrs/StdPrs_ShadedShape.cxx
src/StepToTopoDS/StepToTopoDS_TranslateCurveBoundedSurface.cxx
src/TNaming/TNaming_Localizer.cxx
src/TNaming/TNaming_Name.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Merge.cxx
src/TopoDS/FILES
src/TopoDS/TopoDS_Builder.cxx
src/TopoDS/TopoDS_Iterator.cxx
src/TopoDS/TopoDS_Shape.cxx
src/TopoDS/TopoDS_Shape.hxx
src/TopoDS/TopoDS_Shape.lxx [deleted file]
src/TopoDS/TopoDS_TCompSolid.cxx
src/TopoDS/TopoDS_TCompound.cxx
src/TopoDS/TopoDS_TEdge.cxx
src/TopoDS/TopoDS_TFace.cxx
src/TopoDS/TopoDS_TShape.cxx
src/TopoDS/TopoDS_TShape.hxx
src/TopoDS/TopoDS_TShape.lxx [deleted file]
src/TopoDS/TopoDS_TShell.cxx
src/TopoDS/TopoDS_TSolid.cxx
src/TopoDS/TopoDS_TVertex.cxx
src/TopoDS/TopoDS_TWire.cxx
src/TopoDSToStep/TopoDSToStep_MakeFacetedBrep.cxx
src/TopoDSToStep/TopoDSToStep_MakeGeometricCurveSet.cxx
src/TopoDSToStep/TopoDSToStep_MakeStepEdge.cxx
src/TopoDSToStep/TopoDSToStep_MakeStepFace.cxx
src/TopoDSToStep/TopoDSToStep_MakeStepWire.cxx
src/TransferBRep/TransferBRep.cxx
src/XCAFDoc/XCAFDoc_ShapeTool.cxx
src/XCAFPrs/XCAFPrs.cxx
src/XCAFPrs/XCAFPrs_AISObject.cxx