X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FSketchSolver%2FSketchSolver_Constraint.h;h=4520bf3a585e0c31a6cb0fad0e618715f519b76d;hb=6958dab7cbbaf443a39b04a609c5f33573c73f9e;hp=3f547d8d8a8a2ccd294f80bd8b1e74f65085d060;hpb=4cbd08290dc7a540e3fa93913d484e8336df90d9;p=modules%2Fshaper.git diff --git a/src/SketchSolver/SketchSolver_Constraint.h b/src/SketchSolver/SketchSolver_Constraint.h index 3f547d8d8..4520bf3a5 100644 --- a/src/SketchSolver/SketchSolver_Constraint.h +++ b/src/SketchSolver/SketchSolver_Constraint.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: SketchSolver_Constraint.h // Created: 27 May 2014 // Author: Artem ZHIDKOV @@ -18,28 +20,32 @@ */ class SketchSolver_Constraint { -public: + public: SketchSolver_Constraint(); - SketchSolver_Constraint(boost::shared_ptr theConstraint); + SketchSolver_Constraint(std::shared_ptr 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 theConstraint); + const int& getType(std::shared_ptr 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& getAttributes() const - { return myAttributesList; } - -private: - boost::shared_ptr myConstraint; - int myType; - std::vector myAttributesList; + { + return myAttributesList; + } + + private: + std::shared_ptr myConstraint; + int myType; + std::vector myAttributesList; }; #endif