Detailed Description
Functions | |
GCG_EXPORT SCIP_RETCODE | GCGincludeScore (SCIP *scip, const char *name, const char *shortname, const char *description, DEC_SCOREDATA *scoredata, DEC_DECL_SCOREFREE((*scorefree)),) |
includes one score More... | |
GCG_EXPORT DEC_SCORE * | GCGfindScore (SCIP *scip, const char *name) |
searches for the score with the given name and returns it or NULL if score is not found More... | |
GCG_EXPORT DEC_SCORE * | GCGfindScoreByShortname (SCIP *scip, const char *shortname) |
searches for the score with the given shortname and returns it or NULL if score is not found More... | |
GCG_EXPORT DEC_SCORE ** | GCGgetScores (SCIP *scip) |
GCG_EXPORT int | GCGgetNScores (SCIP *scip) |
GCG_EXPORT DEC_SCOREDATA * | GCGscoreGetData (DEC_SCORE *score) |
GCG_EXPORT void | GCGscoreSetData (DEC_SCORE *score, DEC_SCOREDATA *scoredata) |
const GCG_EXPORT char * | GCGscoreGetName (DEC_SCORE *score) |
const GCG_EXPORT char * | GCGscoreGetShortname (DEC_SCORE *score) |
const GCG_EXPORT char * | GCGscoreGetDesc (DEC_SCORE *score) |
Function Documentation
◆ GCGincludeScore()
GCG_EXPORT SCIP_RETCODE GCGincludeScore | ( | SCIP * | scip, |
const char * | name, | ||
const char * | shortname, | ||
const char * | description, | ||
DEC_SCOREDATA * | scoredata, | ||
DEC_DECL_SCOREFREE((*scorefree)) | |||
) |
includes one score
- Returns
- scip return code
Definition at line 43 of file gcg_score.c.
References DECincludeScore(), and GCGfindScore().
Referenced by GCGincludeScoreBender(), GCGincludeScoreBorder(), GCGincludeScoreClassic(), GCGincludeScoreFawh(), GCGincludeScoreForswh(), GCGincludeScoreMaxwhite(), GCGincludeScoreSpfawh(), GCGincludeScoreSpfwh(), and GCGincludeScoreStrongDecomp().
◆ GCGfindScore()
GCG_EXPORT DEC_SCORE* GCGfindScore | ( | SCIP * | scip, |
const char * | name | ||
) |
searches for the score with the given name and returns it or NULL if score is not found
- Returns
- score pointer or NULL if score with given name is not found
Definition at line 69 of file gcg_score.c.
References DECfindScore().
Referenced by GCGincludeScore().
◆ GCGfindScoreByShortname()
GCG_EXPORT DEC_SCORE* GCGfindScoreByShortname | ( | SCIP * | scip, |
const char * | shortname | ||
) |
searches for the score with the given shortname and returns it or NULL if score is not found
- Returns
- score pointer or NULL if score with given shortname is not found
Definition at line 84 of file gcg_score.c.
References DECfindScoreByShortname().
◆ GCGgetScores()
GCG_EXPORT DEC_SCORE** GCGgetScores | ( | SCIP * | scip | ) |
returns the array of currently available scores
Definition at line 96 of file gcg_score.c.
References GCGconshdlrDecompGetScores().
◆ GCGgetNScores()
GCG_EXPORT int GCGgetNScores | ( | SCIP * | scip | ) |
returns the number of currently available scores
Definition at line 106 of file gcg_score.c.
References GCGconshdlrDecompGetNScores().
◆ GCGscoreGetData()
GCG_EXPORT DEC_SCOREDATA* GCGscoreGetData | ( | DEC_SCORE * | score | ) |
gets user data of score
Definition at line 44 of file score.c.
References DEC_Score::scoredata.
Referenced by calculateDualvalsOptimalOrigLP(), DEC_DECL_SCORECALC(), DEC_DECL_SCOREFREE(), getDualvalOptimalLP(), getDualvalRandom(), and shuffleDualvalsRandom().
◆ GCGscoreSetData()
GCG_EXPORT void GCGscoreSetData | ( | DEC_SCORE * | score, |
DEC_SCOREDATA * | scoredata | ||
) |
sets user data of score; user has to free old data in advance!
Definition at line 54 of file score.c.
References DEC_Score::scoredata.
◆ GCGscoreGetName()
const GCG_EXPORT char* GCGscoreGetName | ( | DEC_SCORE * | score | ) |
gets name of score
Definition at line 66 of file score.c.
References DEC_Score::name.
Referenced by DEC_DECL_SCOREFREE(), gcg::GCGdialogChangeScore(), and gcg::PARTIALDECOMP::getScore().
◆ GCGscoreGetShortname()
const GCG_EXPORT char* GCGscoreGetShortname | ( | DEC_SCORE * | score | ) |
gets shortname of score
Definition at line 76 of file score.c.
References DEC_Score::shortname.
Referenced by gcg::GCGdialogChangeScore(), gcg::GCGdialogShowLegend(), gcg::GCGdialogShowMenu(), and gcg::GCGdialogSortBy().
◆ GCGscoreGetDesc()
const GCG_EXPORT char* GCGscoreGetDesc | ( | DEC_SCORE * | score | ) |
gets description of score
Definition at line 86 of file score.c.
References DEC_Score::description.
Referenced by gcg::GCGdialogShowLegend(), and writeTexTitlepage().