Salome HOME
Reanud's patch for modern Cpp11 compilers applied
[modules/shaper.git] / src / SketchSolver / SketchSolver_Constraint.h
index 3f547d8d8a8a2ccd294f80bd8b1e74f65085d060..4520bf3a585e0c31a6cb0fad0e618715f519b76d 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 // File:    SketchSolver_Constraint.h
 // Created: 27 May 2014
 // Author:  Artem ZHIDKOV
  */
 class SketchSolver_Constraint
 {
-public:
+ public:
   SketchSolver_Constraint();
-  SketchSolver_Constraint(boost::shared_ptr<SketchPlugin_Constraint> theConstraint);
+  SketchSolver_Constraint(std::shared_ptr<SketchPlugin_Constraint> theConstraint);
 
   /** \brief Compute constraint type according to SolveSpace identifiers
    *         and verify that constraint parameters are correct
    *  \param[in]  theConstraint constraint which type should be determined
    *  \return identifier of constraint type or SLVS_C_UNKNOWN if the type is wrong
    */
-  const int& getType(boost::shared_ptr<SketchPlugin_Constraint> theConstraint);
+  const int& getType(std::shared_ptr<SketchPlugin_Constraint> theConstraint);
   /// \brief Returns the type of myConstraint member
   inline const int& getType() const
-  { return myType; }
+  {
+    return myType;
+  }
 
   /// \brief Returns list of attributes names in the correct order required by SolveSpace
   inline const std::vector<std::string>& getAttributes() const
-  { return myAttributesList; }
-
-private:
-  boost::shared_ptr<SketchPlugin_Constraint> myConstraint;
-  int                                        myType;
-  std::vector<std::string>                   myAttributesList;
+  {
+    return myAttributesList;
+  }
+
+ private:
+  std::shared_ptr<SketchPlugin_Constraint> myConstraint;
+  int myType;
+  std::vector<std::string> myAttributesList;
 };
 
 #endif