COIN-OR::LEMON - Graph Library

Changeset 540:9db62975c32b in lemon-main for lemon/glpk.h


Ignore:
Timestamp:
02/26/09 08:39:16 (11 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Fix newSolver()/cloneSolver() API in LP tools + doc improvements (#230)

  • More logical structure for newSolver()/cloneSolver()
  • Fix compilation problem with gcc-3.3
  • Doc improvements
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/glpk.h

    r462 r540  
    120120  /// This class implements an interface for the GLPK LP solver.
    121121  ///\ingroup lp_group
    122   class GlpkLp : public GlpkBase, public LpSolver {
     122  class GlpkLp : public LpSolver, public GlpkBase {
    123123  public:
    124124
     
    127127    ///\e
    128128    GlpkLp(const GlpkLp&);
     129
     130    ///\e
     131    virtual GlpkLp* cloneSolver() const;
     132    ///\e
     133    virtual GlpkLp* newSolver() const;
    129134
    130135  private:
     
    136141
    137142  protected:
    138 
    139     virtual GlpkLp* _cloneSolver() const;
    140     virtual GlpkLp* _newSolver() const;
    141143
    142144    virtual const char* _solverName() const;
     
    204206  /// This class implements an interface for the GLPK MIP solver.
    205207  ///\ingroup lp_group
    206   class GlpkMip : public GlpkBase, public MipSolver {
     208  class GlpkMip : public MipSolver, public GlpkBase {
    207209  public:
    208210
     
    212214    GlpkMip(const GlpkMip&);
    213215
    214   protected:
    215 
    216     virtual GlpkMip* _cloneSolver() const;
    217     virtual GlpkMip* _newSolver() const;
     216    virtual GlpkMip* cloneSolver() const;
     217    virtual GlpkMip* newSolver() const;
     218
     219  protected:
    218220
    219221    virtual const char* _solverName() const;
Note: See TracChangeset for help on using the changeset viewer.