Scippy

SCIP

Solving Constraint Integer Programs

objreader.cpp File Reference

Detailed Description

C++ wrapper for file readers.

Author
Tobias Achterberg

Definition in file objreader.cpp.

#include <cassert>
#include "objreader.h"

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::ObjReaderSCIPfindObjReader (SCIP *scip, const char *name)
 
scip::ObjReaderSCIPgetObjReader (SCIP *scip, SCIP_READER *reader)
 

Function Documentation

◆ SCIP_DECL_READERCOPY()

static SCIP_DECL_READERCOPY ( readerCopyObj  )
static

copy method for reader plugins (called when SCIP copies plugins)

Definition at line 62 of file objreader.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, SCIPincludeObjReader(), SCIPreaderGetData(), and TRUE.

◆ SCIP_DECL_READERFREE()

static SCIP_DECL_READERFREE ( readerFreeObj  )
static

destructor of file reader to free user data (called when SCIP is exiting)

Definition at line 87 of file objreader.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, SCIPreaderGetData(), and SCIPreaderSetData().

◆ SCIP_DECL_READERREAD()

static SCIP_DECL_READERREAD ( readerReadObj  )
static

problem reading method of reader

Definition at line 113 of file objreader.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, and SCIPreaderGetData().

◆ SCIP_DECL_READERWRITE()

static SCIP_DECL_READERWRITE ( readerWriteObj  )
static

problem writing method of reader

Definition at line 131 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
scipSCIP data structure
objreaderfile reader object
deleteobjectshould the reader object be deleted when reader is freed?

Definition at line 155 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 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
scipSCIP data structure
namename of file reader

Definition at line 180 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
scipSCIP data structure
readerfile reader

Definition at line 199 of file objreader.cpp.

References NULL, and SCIPreaderGetData().

Referenced by scip::ObjReader::SCIP_DECL_READERWRITE().