35 struct SCIP_ReaderData
60 assert(readerdata != NULL);
61 assert(readerdata->objreader != NULL);
62 assert(readerdata->objreader->scip_ !=
scip);
64 if( readerdata->objreader->iscloneable() )
83 assert(readerdata != NULL);
84 assert(readerdata->objreader != NULL);
85 assert(readerdata->objreader->scip_ ==
scip);
91 if( readerdata->deleteobject )
92 delete readerdata->objreader;
109 assert(readerdata != NULL);
110 assert(readerdata->objreader != NULL);
111 assert(readerdata->objreader->scip_ ==
scip);
114 SCIP_CALL( readerdata->objreader->scip_read(
scip, reader, filename, result) );
127 assert(readerdata != NULL);
128 assert(readerdata->objreader != NULL);
131 SCIP_CALL( readerdata->objreader->scip_write(
scip, reader, file, name, probdata, transformed,
132 objsense, objscale, objoffset,
133 vars, nvars, nbinvars, nintvars, nimplvars, ncontvars, fixedvars, nfixedvars, startnvars,
134 conss, nconss, maxnconss, startnconss, genericnames, result) );
154 assert(scip != NULL);
155 assert(objreader != NULL);
159 readerdata->objreader = objreader;
160 readerdata->deleteobject = deleteobject;
165 readerFreeObj, readerReadObj, readerWriteObj, readerdata) );
184 assert(readerdata != NULL);
186 return readerdata->objreader;
198 assert(readerdata != NULL);
200 return readerdata->objreader;
enum SCIP_Retcode SCIP_RETCODE
scip::ObjReader * SCIPfindObjReader(SCIP *scip, const char *name)
SCIP_READER * SCIPfindReader(SCIP *scip, const char *name)
static SCIP_DECL_READERFREE(readerFreeObj)
void SCIPreaderSetData(SCIP_READER *reader, SCIP_READERDATA *readerdata)
SCIP_READERDATA * SCIPreaderGetData(SCIP_READER *reader)
static SCIP_DECL_READERREAD(readerReadObj)
scip::ObjReader * SCIPgetObjReader(SCIP *scip, SCIP_READER *reader)
struct SCIP_ReaderData SCIP_READERDATA
static SCIP_DECL_READERWRITE(readerWriteObj)
SCIP_RETCODE SCIPincludeReader(SCIP *scip, const char *name, const char *desc, const char *extension, SCIP_DECL_READERCOPY((*readercopy)), SCIP_DECL_READERFREE((*readerfree)), SCIP_DECL_READERREAD((*readerread)), SCIP_DECL_READERWRITE((*readerwrite)), SCIP_READERDATA *readerdata)
SCIP_RETCODE SCIPincludeObjReader(SCIP *scip, scip::ObjReader *objreader, SCIP_Bool deleteobject)
static SCIP_DECL_READERCOPY(readerCopyObj)
C++ wrapper for file readers and writers.
C++ wrapper for file readers and writers.