mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
Coding - Apply .clang-format formatting #286
Update empty method guards to new style with regex (see PR). Used clang-format 18.1.8. New actions to validate code formatting is added. Update .clang-format with disabling of include sorting. It is temporary changes, then include will be sorted. Apply formatting for /src and /tools folder. The files with .hxx,.cxx,.lxx,.h,.pxx,.hpp,*.cpp extensions.
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
class MAT_BasicElt;
|
||||
class MAT_Node;
|
||||
|
||||
|
||||
class MAT_Arc;
|
||||
DEFINE_STANDARD_HANDLE(MAT_Arc, Standard_Transient)
|
||||
|
||||
@@ -35,94 +34,82 @@ class MAT_Arc : public Standard_Transient
|
||||
{
|
||||
|
||||
public:
|
||||
Standard_EXPORT MAT_Arc(const Standard_Integer ArcIndex,
|
||||
const Standard_Integer GeomIndex,
|
||||
const Handle(MAT_BasicElt)& FirstElement,
|
||||
const Handle(MAT_BasicElt)& SecondElement);
|
||||
|
||||
|
||||
Standard_EXPORT MAT_Arc(const Standard_Integer ArcIndex, const Standard_Integer GeomIndex, const Handle(MAT_BasicElt)& FirstElement, const Handle(MAT_BasicElt)& SecondElement);
|
||||
|
||||
//! Returns the index of <me> in Graph.theArcs.
|
||||
Standard_EXPORT Standard_Integer Index() const;
|
||||
|
||||
|
||||
//! Returns the index associated of the geometric
|
||||
//! representation of <me>.
|
||||
Standard_EXPORT Standard_Integer GeomIndex() const;
|
||||
|
||||
|
||||
//! Returns one of the BasicElt equidistant from <me>.
|
||||
Standard_EXPORT Handle(MAT_BasicElt) FirstElement() const;
|
||||
|
||||
|
||||
//! Returns the other BasicElt equidistant from <me>.
|
||||
Standard_EXPORT Handle(MAT_BasicElt) SecondElement() const;
|
||||
|
||||
|
||||
//! Returns one Node extremity of <me>.
|
||||
Standard_EXPORT Handle(MAT_Node) FirstNode() const;
|
||||
|
||||
|
||||
//! Returns the other Node extremity of <me>.
|
||||
Standard_EXPORT Handle(MAT_Node) SecondNode() const;
|
||||
|
||||
|
||||
//! an Arc has two Node, if <aNode> egal one
|
||||
//! Returns the other.
|
||||
//!
|
||||
//! if <aNode> is not oh <me>
|
||||
Standard_EXPORT Handle(MAT_Node) TheOtherNode (const Handle(MAT_Node)& aNode) const;
|
||||
|
||||
Standard_EXPORT Handle(MAT_Node) TheOtherNode(const Handle(MAT_Node)& aNode) const;
|
||||
|
||||
//! Returnst True is there is an arc linked to
|
||||
//! the Node <aNode> located on the side <aSide> of <me>;
|
||||
//! if <aNode> is not on <me>
|
||||
Standard_EXPORT Standard_Boolean HasNeighbour (const Handle(MAT_Node)& aNode, const MAT_Side aSide) const;
|
||||
|
||||
Standard_EXPORT Standard_Boolean HasNeighbour(const Handle(MAT_Node)& aNode,
|
||||
const MAT_Side aSide) const;
|
||||
|
||||
//! Returns the first arc linked to the Node <aNode>
|
||||
//! located on the side <aSide> of <me>;
|
||||
//! if HasNeighbour() returns FALSE.
|
||||
Standard_EXPORT Handle(MAT_Arc) Neighbour (const Handle(MAT_Node)& aNode, const MAT_Side aSide) const;
|
||||
|
||||
Standard_EXPORT void SetIndex (const Standard_Integer anInteger);
|
||||
|
||||
Standard_EXPORT void SetGeomIndex (const Standard_Integer anInteger);
|
||||
|
||||
Standard_EXPORT void SetFirstElement (const Handle(MAT_BasicElt)& aBasicElt);
|
||||
|
||||
Standard_EXPORT void SetSecondElement (const Handle(MAT_BasicElt)& aBasicElt);
|
||||
|
||||
Standard_EXPORT void SetFirstNode (const Handle(MAT_Node)& aNode);
|
||||
|
||||
Standard_EXPORT void SetSecondNode (const Handle(MAT_Node)& aNode);
|
||||
|
||||
Standard_EXPORT void SetFirstArc (const MAT_Side aSide, const Handle(MAT_Arc)& anArc);
|
||||
|
||||
Standard_EXPORT void SetSecondArc (const MAT_Side aSide, const Handle(MAT_Arc)& anArc);
|
||||
|
||||
Standard_EXPORT void SetNeighbour (const MAT_Side aSide, const Handle(MAT_Node)& aNode, const Handle(MAT_Arc)& anArc);
|
||||
Standard_EXPORT Handle(MAT_Arc) Neighbour(const Handle(MAT_Node)& aNode,
|
||||
const MAT_Side aSide) const;
|
||||
|
||||
Standard_EXPORT void SetIndex(const Standard_Integer anInteger);
|
||||
|
||||
Standard_EXPORT void SetGeomIndex(const Standard_Integer anInteger);
|
||||
|
||||
Standard_EXPORT void SetFirstElement(const Handle(MAT_BasicElt)& aBasicElt);
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(MAT_Arc,Standard_Transient)
|
||||
Standard_EXPORT void SetSecondElement(const Handle(MAT_BasicElt)& aBasicElt);
|
||||
|
||||
Standard_EXPORT void SetFirstNode(const Handle(MAT_Node)& aNode);
|
||||
|
||||
Standard_EXPORT void SetSecondNode(const Handle(MAT_Node)& aNode);
|
||||
|
||||
Standard_EXPORT void SetFirstArc(const MAT_Side aSide, const Handle(MAT_Arc)& anArc);
|
||||
|
||||
Standard_EXPORT void SetSecondArc(const MAT_Side aSide, const Handle(MAT_Arc)& anArc);
|
||||
|
||||
Standard_EXPORT void SetNeighbour(const MAT_Side aSide,
|
||||
const Handle(MAT_Node)& aNode,
|
||||
const Handle(MAT_Arc)& anArc);
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(MAT_Arc, Standard_Transient)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Standard_Integer arcIndex;
|
||||
Standard_Integer geomIndex;
|
||||
Standard_Integer arcIndex;
|
||||
Standard_Integer geomIndex;
|
||||
Handle(MAT_BasicElt) firstElement;
|
||||
Handle(MAT_BasicElt) secondElement;
|
||||
Handle(MAT_Node) firstNode;
|
||||
Handle(MAT_Node) secondNode;
|
||||
Standard_Address firstArcLeft;
|
||||
Standard_Address firstArcRight;
|
||||
Standard_Address secondArcRight;
|
||||
Standard_Address secondArcLeft;
|
||||
|
||||
|
||||
Handle(MAT_Node) firstNode;
|
||||
Handle(MAT_Node) secondNode;
|
||||
Standard_Address firstArcLeft;
|
||||
Standard_Address firstArcRight;
|
||||
Standard_Address secondArcRight;
|
||||
Standard_Address secondArcLeft;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _MAT_Arc_HeaderFile
|
||||
|
Reference in New Issue
Block a user