| 10 | /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ |
| 11 | |
| 12 | class snoptProblem { |
| 13 | protected: |
| 14 | // default constructor |
| 15 | snoptProblem(const char*name, int *iw, int aleniw, double *rw, int alenrw); |
| 16 | |
| 17 | // delegated constructors |
| 18 | snoptProblem() : |
| 19 | snoptProblem(" ", 0, 0, 0, 0) {}; |
| 20 | snoptProblem(int aleniw, int alenrw) : |
| 21 | snoptProblem(" ", 0, aleniw, 0, alenrw) {}; |
| 22 | snoptProblem(int *aiw, int aleniw, double *arw, int alenrw) : |
| 23 | snoptProblem(" ", aiw, aleniw, arw, alenrw) {} ; |
| 24 | snoptProblem(const char*name) : |
| 25 | snoptProblem(name, 0, 0, 0, 0) {}; |
| 26 | snoptProblem(const char*name, int aleniw, int alenrw) : |
| 27 | snoptProblem(name, 0, aleniw, 0, alenrw) {}; |
| 28 | |
| 29 | ~snoptProblem(); |
| 30 | |
| 31 | void init2zero(); |
| 32 | |
| 33 | char Prob[30]; |
| 34 | |
| 35 | int initCalled, memCalled, userWork; |
| 36 | |
| 37 | int leniw, lenrw; |
| 38 | double *rw; |
| 39 | int *iw; |
| 40 | |
| 41 | int lenru, leniu; |
| 42 | double *ru; |
| 43 | int *iu; |
| 44 | |
| 45 | void allocI (int leniw); |
| 46 | void allocR (int lenrw); |
| 47 | void reallocI (int leniw); |
| 48 | void reallocR (int lenrw); |
| 49 | |
| 50 | public: |
| 51 | void setProbName (const char *Prob); |
| 52 | void setPrintFile (const char *prtname); |
| 53 | void setPrintFile (const char *prtname, int iprint); |
| 54 | |
| 55 | int getIntParameter (const char *stropt, int &opt); |
| 56 | int getRealParameter(const char *stropt, double &opt); |
| 57 | int setParameter (const char *stroptin); |
| 58 | int setIntParameter (const char *stropt, int opt); |
| 59 | int setRealParameter(const char *stropt, double opt); |
| 60 | |
| 61 | void setUserI (int *iu, int leniu); |
| 62 | void setUserR (double *ru, int lenru); |
| 63 | void setUserspace (int *iu, int leniu, double *ru, int lenru); |
| 64 | }; |
| 65 | |
| 66 | /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ |
| 67 |
nothing calls this directly
no outgoing calls
no test coverage detected