GOBNILP
f164d83
|
Contains functions related to managing PedigreeData. More...
Functions | |
SCIP_RETCODE | PE_copyPedigreeData (SCIP *scip, PedigreeData *original, PedigreeData **duplicate) |
Makes a deep copy of a PedigreeData structure. More... | |
SCIP_RETCODE | PE_deallocatePedigreeData (SCIP *scip, PedigreeData **pd) |
Deallocates the memory associated with a PedigreeData structure. More... | |
SCIP_RETCODE | PE_parse (SCIP *scip, char *str, PedigreeData **pd) |
Parses a PedigreeData structure from a sting. More... | |
SCIP_RETCODE | PE_writeToFile (SCIP *scip, FILE *file, PedigreeData *pd) |
Writes a PedigreeData structure to file. More... | |
Contains functions related to managing PedigreeData.
SCIP_RETCODE PE_copyPedigreeData | ( | SCIP * | scip, |
PedigreeData * | original, | ||
PedigreeData ** | duplicate | ||
) |
Makes a deep copy of a PedigreeData structure.
scip | The SCIP instance to which the data belongs. |
original | The original data structure. |
duplicate | A pointer to the duplicated data structure. |
References PedigreeData::ages, PedigreeData::n, PedigreeData::sexes, and PedigreeData::SexVars.
Referenced by MD_setPedigreeData().
SCIP_RETCODE PE_deallocatePedigreeData | ( | SCIP * | scip, |
PedigreeData ** | pd | ||
) |
Deallocates the memory associated with a PedigreeData structure.
scip | The SCIP instance which the data refers to. |
pd | A pointer to the data structure to deallocate. |
Referenced by PD_addPedigreeSpecificConstraints(), and SCIP_DECL_CONSFREE().
SCIP_RETCODE PE_parse | ( | SCIP * | scip, |
char * | str, | ||
PedigreeData ** | pd | ||
) |
Parses a PedigreeData structure from a sting.
scip | The SCIP instance the data will belong to. |
str | The string to parse. |
pd | A pointer to the data structure resulting from parsing. |
References UT_parseArray(), UT_parseCharArray(), UT_parseIntArray(), and UT_parseVarArray().
Referenced by SCIP_DECL_CONSPARSE().
SCIP_RETCODE PE_writeToFile | ( | SCIP * | scip, |
FILE * | file, | ||
PedigreeData * | pd | ||
) |
Writes a PedigreeData structure to file.
scip | The SCIP instance the data belongs to. |
file | The file to write to. |
pd | The data to write. |
Referenced by SCIP_DECL_CONSPRINT().