lemon/glpk.h
changeset 538 ba659d676331
parent 529 89e29e22d479
parent 526 ba124394367a
child 557 7ab97e2a0c33
equal deleted inserted replaced
5:975fcca12155 6:b31fe44fd072
    98     virtual void _setSense(Sense);
    98     virtual void _setSense(Sense);
    99     virtual Sense _getSense() const;
    99     virtual Sense _getSense() const;
   100 
   100 
   101     virtual void _clear();
   101     virtual void _clear();
   102 
   102 
       
   103   private:
       
   104 
       
   105     static void freeEnv();
       
   106 
       
   107     struct FreeEnvHelper {
       
   108       ~FreeEnvHelper() {
       
   109         freeEnv();
       
   110       }
       
   111     };
       
   112     
       
   113     static FreeEnvHelper freeEnvHelper;
       
   114     
   103   public:
   115   public:
   104 
   116 
   105     ///Pointer to the underlying GLPK data structure.
   117     ///Pointer to the underlying GLPK data structure.
   106     LPX *lpx() {return lp;}
   118     LPX *lpx() {return lp;}
   107     ///Const pointer to the underlying GLPK data structure.
   119     ///Const pointer to the underlying GLPK data structure.