Salome HOME
Boost has been removed from code
[modules/shaper.git] / src / SketchSolver / SketchSolver_Constraint.h
index 934415b344ebfeccc6e1526ed1b594d502b5122b..4caa73b49bcc9ec0598383d34513ab35780f40e6 100644 (file)
@@ -2,8 +2,8 @@
 // Created: 27 May 2014
 // Author:  Artem ZHIDKOV
 
-#ifndef SketchSolver_Constraint_Headerfile
-#define SketchSolver_Constraint_Headerfile
+#ifndef SketchSolver_Constraint_H_
+#define SketchSolver_Constraint_H_
 
 #include "SketchSolver.h"
 
  */
 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