Changeset 540:9db62975c32b in lemon-1.2 for lemon/lp_skeleton.h
- Timestamp:
- 02/26/09 08:39:16 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/lp_skeleton.h
r529 r540 23 23 24 24 ///\file 25 ///\brief A skeleton file to implement LP solver interfaces 25 ///\brief Skeleton file to implement LP/MIP solver interfaces 26 /// 27 ///The classes in this file do nothing, but they can serve as skeletons when 28 ///implementing an interface to new solvers. 26 29 namespace lemon { 27 30 28 ///A skeleton class to implement LP solver interfaces 31 ///A skeleton class to implement LP/MIP solver base interface 32 33 ///This class does nothing, but it can serve as a skeleton when 34 ///implementing an interface to new solvers. 29 35 class SkeletonSolverBase : public virtual LpBase { 30 36 int col_num,row_num; … … 137 143 }; 138 144 139 /// \brief Interface for a skeleton LP solver145 /// \brief Skeleton class for an LP solver interface 140 146 /// 141 /// This class implements an interface for a skeleton LP solver. 147 ///This class does nothing, but it can serve as a skeleton when 148 ///implementing an interface to new solvers. 149 142 150 ///\ingroup lp_group 143 class LpSkeleton : public SkeletonSolverBase, public LpSolver{151 class LpSkeleton : public LpSolver, public SkeletonSolverBase { 144 152 public: 145 LpSkeleton() : SkeletonSolverBase(), LpSolver() {} 146 153 ///\e 154 LpSkeleton() : LpSolver(), SkeletonSolverBase() {} 155 ///\e 156 virtual LpSkeleton* newSolver() const; 157 ///\e 158 virtual LpSkeleton* cloneSolver() const; 147 159 protected: 148 160 … … 174 186 175 187 ///\e 176 virtual LpSkeleton* _newSolver() const;177 ///\e178 virtual LpSkeleton* _cloneSolver() const;179 ///\e180 188 virtual const char* _solverName() const; 181 189 182 190 }; 183 191 184 /// \brief Interface for a skeleton MIP solver192 /// \brief Skeleton class for a MIP solver interface 185 193 /// 186 /// This class implements an interface for a skeleton MIP solver. 194 ///This class does nothing, but it can serve as a skeleton when 195 ///implementing an interface to new solvers. 187 196 ///\ingroup lp_group 188 class MipSkeleton : public SkeletonSolverBase, public MipSolver{197 class MipSkeleton : public MipSolver, public SkeletonSolverBase { 189 198 public: 190 MipSkeleton() : SkeletonSolverBase(), MipSolver() {} 199 ///\e 200 MipSkeleton() : MipSolver(), SkeletonSolverBase() {} 201 ///\e 202 virtual MipSkeleton* newSolver() const; 203 ///\e 204 virtual MipSkeleton* cloneSolver() const; 191 205 192 206 protected: … … 216 230 217 231 ///\e 218 virtual MipSkeleton* _newSolver() const;219 220 ///\e221 virtual MipSkeleton* _cloneSolver() const;222 ///\e223 232 virtual const char* _solverName() const; 224 225 233 }; 226 234
Note: See TracChangeset
for help on using the changeset viewer.