Salome HOME
bos #26458 Versioning of sources via git commit id (sha1)
[modules/yacs.git] / src / engine / ElementaryPoint.hxx
index 559a92c99739b189c91a9aca3e6085b060d71d83..6d3b318346fe33bd8ee3a2cfc02cbb9d4f36eb72 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2015-2016  CEA/DEN, EDF R&D
+// Copyright (C) 2015-2021  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -38,16 +38,23 @@ namespace YACS
     public:
       ElementaryPoint(Node *node):AbstractPoint(0),_node(node) { }
       AbstractPoint *findPointWithNode(Node *node);
-      bool contains(Node *node);
-      Node *getFirstNode();
-      Node *getLastNode();
+      bool contains(Node *node) const override;
+      bool anyOf(const std::set<Node *>& nodes) const override;
+      AbstractPoint *deepCopy(AbstractPoint *father) const override;
+      Node *getFirstNode() override;
+      Node *getLastNode() override;
       int getNumberOfNodes() const;
       int getMaxLevelOfParallelism() const;
       void getWeightRegardingDPL(ComplexWeight *weight);
       void partitionRegardingDPL(const PartDefinition *pd, std::map<ComposedNode *, YACS::BASES::AutoRefCnt<PartDefinition> >& zeMap) const;
       std::string getRepr() const;
       void accept(PointVisitor *pv) override;
+      AbstractPoint *expandNonSimpleCaseOn(NotSimpleCasePoint *pathologicalPt, const std::set<Node *>& uncatchedNodes) override;
       virtual ~ElementaryPoint();
+    public:
+      void setNode(Node *node) { _node=node; }
+      Node *getNode() const { return _node; }
+      std::string getNodeName() const;
     };
   }
 }