mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-08 14:46:55 +08:00
Coding - Clang-Tidy apply with refactoring (#965)
- Replacing empty constructor/destructor implementations with `= default` - Removing redundant `virtual` keywords from override methods - Replacing `NULL` and `0` with `nullptr` - Replacing C headers with C++ equivalents (`<cstdio>`, `<cstring>`, etc.) - Marking copy constructors/assignment operators as `= delete` for non-copyable classes - Converting `void` parameter lists to empty parameter lists - Replacing integer literals with appropriate boolean values
This commit is contained in:
@@ -54,7 +54,7 @@ public:
|
||||
const bool theWithTriangles = true,
|
||||
const bool theWithNormals = false);
|
||||
|
||||
Standard_EXPORT virtual ~BRepTools_ShapeSet();
|
||||
Standard_EXPORT ~BRepTools_ShapeSet() override;
|
||||
|
||||
//! Return true if shape should be stored with triangles.
|
||||
bool IsWithTriangles() const { return myWithTriangles; }
|
||||
@@ -71,46 +71,44 @@ public:
|
||||
void SetWithNormals(const bool theWithNormals) { myWithNormals = theWithNormals; }
|
||||
|
||||
//! Clears the content of the set.
|
||||
Standard_EXPORT virtual void Clear() override;
|
||||
Standard_EXPORT void Clear() override;
|
||||
|
||||
//! Stores the geometry of <S>.
|
||||
Standard_EXPORT virtual void AddGeometry(const TopoDS_Shape& S) override;
|
||||
Standard_EXPORT void AddGeometry(const TopoDS_Shape& S) override;
|
||||
|
||||
//! Dumps the geometry of me on the stream <OS>.
|
||||
Standard_EXPORT virtual void DumpGeometry(Standard_OStream& OS) const override;
|
||||
Standard_EXPORT void DumpGeometry(Standard_OStream& OS) const override;
|
||||
|
||||
//! Writes the geometry of me on the stream <OS> in a
|
||||
//! format that can be read back by Read.
|
||||
Standard_EXPORT virtual void WriteGeometry(
|
||||
Standard_EXPORT void WriteGeometry(
|
||||
Standard_OStream& OS,
|
||||
const Message_ProgressRange& theProgress = Message_ProgressRange()) override;
|
||||
|
||||
//! Reads the geometry of me from the stream <IS>.
|
||||
Standard_EXPORT virtual void ReadGeometry(
|
||||
Standard_EXPORT void ReadGeometry(
|
||||
Standard_IStream& IS,
|
||||
const Message_ProgressRange& theProgress = Message_ProgressRange()) override;
|
||||
|
||||
//! Dumps the geometry of <S> on the stream <OS>.
|
||||
Standard_EXPORT virtual void DumpGeometry(const TopoDS_Shape& S,
|
||||
Standard_OStream& OS) const override;
|
||||
Standard_EXPORT void DumpGeometry(const TopoDS_Shape& S, Standard_OStream& OS) const override;
|
||||
|
||||
//! Writes the geometry of <S> on the stream <OS> in a
|
||||
//! format that can be read back by Read.
|
||||
Standard_EXPORT virtual void WriteGeometry(const TopoDS_Shape& S,
|
||||
Standard_OStream& OS) const override;
|
||||
Standard_EXPORT void WriteGeometry(const TopoDS_Shape& S, Standard_OStream& OS) const override;
|
||||
|
||||
//! Reads the geometry of a shape of type <T> from the
|
||||
//! stream <IS> and returns it in <S>.
|
||||
Standard_EXPORT virtual void ReadGeometry(const TopAbs_ShapeEnum T,
|
||||
Standard_IStream& IS,
|
||||
TopoDS_Shape& S) override;
|
||||
Standard_EXPORT void ReadGeometry(const TopAbs_ShapeEnum T,
|
||||
Standard_IStream& IS,
|
||||
TopoDS_Shape& S) override;
|
||||
|
||||
//! Inserts the shape <S2> in the shape <S1>. This
|
||||
//! method must be redefined to use the correct
|
||||
//! builder.
|
||||
Standard_EXPORT virtual void AddShapes(TopoDS_Shape& S1, const TopoDS_Shape& S2) override;
|
||||
Standard_EXPORT void AddShapes(TopoDS_Shape& S1, const TopoDS_Shape& S2) override;
|
||||
|
||||
Standard_EXPORT virtual void Check(const TopAbs_ShapeEnum T, TopoDS_Shape& S) override;
|
||||
Standard_EXPORT void Check(const TopAbs_ShapeEnum T, TopoDS_Shape& S) override;
|
||||
|
||||
//! Reads the 3d polygons of me
|
||||
//! from the stream <IS>.
|
||||
|
||||
Reference in New Issue
Block a user