Detailed Description
C++ wrapper for file readers.
Definition in file objreader.cpp.
Go to the source code of this file.
Functions | |
static | SCIP_DECL_READERCOPY (readerCopyObj) |
static | SCIP_DECL_READERFREE (readerFreeObj) |
static | SCIP_DECL_READERREAD (readerReadObj) |
static | SCIP_DECL_READERWRITE (readerWriteObj) |
SCIP_RETCODE | SCIPincludeObjReader (SCIP *scip, scip::ObjReader *objreader, SCIP_Bool deleteobject) |
scip::ObjReader * | SCIPfindObjReader (SCIP *scip, const char *name) |
scip::ObjReader * | SCIPgetObjReader (SCIP *scip, SCIP_READER *reader) |
Function Documentation
◆ SCIP_DECL_READERCOPY()
|
static |
copy method for reader plugins (called when SCIP copies plugins)
Definition at line 53 of file objreader.cpp.
References NULL, SCIP_CALL, SCIP_OKAY, SCIPincludeObjReader(), SCIPreaderGetData(), and TRUE.
◆ SCIP_DECL_READERFREE()
|
static |
destructor of file reader to free user data (called when SCIP is exiting)
Definition at line 78 of file objreader.cpp.
References NULL, SCIP_CALL, SCIP_OKAY, SCIPreaderGetData(), and SCIPreaderSetData().
◆ SCIP_DECL_READERREAD()
|
static |
problem reading method of reader
Definition at line 104 of file objreader.cpp.
References NULL, SCIP_CALL, SCIP_OKAY, and SCIPreaderGetData().
◆ SCIP_DECL_READERWRITE()
|
static |
problem writing method of reader
Definition at line 122 of file objreader.cpp.
References NULL, SCIP_CALL, SCIP_OKAY, and SCIPreaderGetData().
◆ SCIPincludeObjReader()
SCIP_RETCODE SCIPincludeObjReader | ( | SCIP * | scip, |
scip::ObjReader * | objreader, | ||
SCIP_Bool | deleteobject | ||
) |
creates the file reader for the given file reader object and includes it in SCIP
- Parameters
-
scip SCIP data structure objreader file reader object deleteobject should the reader object be deleted when reader is freed?
Definition at line 146 of file objreader.cpp.
References NULL, SCIP_CALL, scip::ObjReader::scip_desc_, scip::ObjReader::scip_extension_, scip::ObjReader::scip_name_, SCIP_OKAY, and SCIPincludeReader().
Referenced by polyscip::Polyscip::Polyscip(), runSCIP(), SCIP_DECL_READERCOPY(), and scip::ObjReader::SCIP_DECL_READERWRITE().
◆ SCIPfindObjReader()
scip::ObjReader* SCIPfindObjReader | ( | SCIP * | scip, |
const char * | name | ||
) |
returns the reader object of the given name, or 0 if not existing
- Parameters
-
scip SCIP data structure name name of file reader
Definition at line 171 of file objreader.cpp.
References NULL, SCIPfindReader(), and SCIPreaderGetData().
Referenced by scip::ObjReader::SCIP_DECL_READERWRITE().
◆ SCIPgetObjReader()
scip::ObjReader* SCIPgetObjReader | ( | SCIP * | scip, |
SCIP_READER * | reader | ||
) |
returns the reader object for the given file reader
- Parameters
-
scip SCIP data structure reader file reader
Definition at line 190 of file objreader.cpp.
References NULL, and SCIPreaderGetData().
Referenced by scip::ObjReader::SCIP_DECL_READERWRITE().