50#define DATATREE_DEFAULT_CAPACITY 4
103 return "stringarray";
120 assert(capacity == -1 || capacity > 0);
126 (*datatree)->nitems = 0;
127 (*datatree)->itemssize = capacity;
145 for(
i = 0;
i < (*datatree)->nitems; ++
i )
426 const char*
const* values,
448 for(
i = 0;
i < nvalues; ++
i )
574 if( j < datatree->items[
i].value.nvalues - 1 )
612 if( strcmp(datatree->
items[
i].
name, name) == 0 )
641 if( strcmp(datatree->
items[
i].
name, name) == 0 )
670 if( strcmp(datatree->
items[
i].
name, name) == 0 )
699 if( strcmp(datatree->
items[
i].
name, name) == 0 )
732 if( strcmp(datatree->
items[
i].
name, name) == 0 )
768 if( strcmp(datatree->
items[
i].
name, name) == 0 )
804 if( strcmp(datatree->
items[
i].
name, name) == 0 )
841 if( strcmp(datatree->
items[
i].
name, name) == 0 )
873 if( strcmp(datatree->
items[
i].
name, name) == 0 )
SCIP_RETCODE SCIPdatatreeInsertBoolArray(SCIP_DATATREE *datatree, SCIP_SET *set, BMS_BLKMEM *blkmem, const char *name, const SCIP_Bool *values, int nvalues)
SCIP_RETCODE SCIPdatatreeInsertTree(SCIP_DATATREE *datatree, SCIP_SET *set, BMS_BLKMEM *blkmem, const char *name, SCIP_DATATREE *value)
SCIP_RETCODE SCIPdatatreeInsertStringArray(SCIP_DATATREE *datatree, SCIP_SET *set, BMS_BLKMEM *blkmem, const char *name, const char *const *values, int nvalues)
SCIP_RETCODE SCIPdatatreeInsertLongArray(SCIP_DATATREE *datatree, SCIP_SET *set, BMS_BLKMEM *blkmem, const char *name, const SCIP_Longint *values, int nvalues)
SCIP_RETCODE SCIPdatatreeCreate(SCIP_DATATREE **datatree, BMS_BLKMEM *blkmem, int capacity)
void SCIPdatatreeFree(SCIP_DATATREE **datatree, BMS_BLKMEM *blkmem)
#define DATATREE_DEFAULT_CAPACITY
static SCIP_RETCODE datatreeExpand(SCIP_DATATREE *datatree, SCIP_SET *set, BMS_BLKMEM *blkmem)
SCIP_RETCODE SCIPdatatreeInsertLong(SCIP_DATATREE *datatree, SCIP_SET *set, BMS_BLKMEM *blkmem, const char *name, SCIP_Longint value)
SCIP_RETCODE SCIPdatatreeWriteJson(SCIP_DATATREE *datatree, SCIP_MESSAGEHDLR *messagehdlr, FILE *file)
SCIP_RETCODE SCIPdatatreeInsertString(SCIP_DATATREE *datatree, SCIP_SET *set, BMS_BLKMEM *blkmem, const char *name, const char *value)
SCIP_RETCODE SCIPdatatreeInsertRealArray(SCIP_DATATREE *datatree, SCIP_SET *set, BMS_BLKMEM *blkmem, const char *name, const SCIP_Real *values, int nvalues)
SCIP_RETCODE SCIPdatatreeInsertBool(SCIP_DATATREE *datatree, SCIP_SET *set, BMS_BLKMEM *blkmem, const char *name, SCIP_Bool value)
static const char * datatreeValueTypeToString(SCIP_DATATREE_VALUETYPE type)
SCIP_RETCODE SCIPdatatreeInsertReal(SCIP_DATATREE *datatree, SCIP_SET *set, BMS_BLKMEM *blkmem, const char *name, SCIP_Real value)
internal methods for handling data trees
common defines and data types used in all packages of SCIP
#define SCIP_LONGINT_FORMAT
SCIP_RETCODE SCIPdatatreeGetBoolArray(SCIP_DATATREE *datatree, const char *name, SCIP_Bool **values, int *nvalues)
SCIP_RETCODE SCIPdatatreeGetStringArray(SCIP_DATATREE *datatree, const char *name, char ***values, int *nvalues)
SCIP_RETCODE SCIPdatatreeGetLong(SCIP_DATATREE *datatree, const char *name, SCIP_Longint *value)
SCIP_RETCODE SCIPdatatreeGetTree(SCIP_DATATREE *datatree, const char *name, SCIP_DATATREE **value)
SCIP_RETCODE SCIPdatatreeGetReal(SCIP_DATATREE *datatree, const char *name, SCIP_Real *value)
SCIP_RETCODE SCIPdatatreeGetString(SCIP_DATATREE *datatree, const char *name, const char **value)
SCIP_RETCODE SCIPdatatreeGetBool(SCIP_DATATREE *datatree, const char *name, SCIP_Bool *value)
SCIP_RETCODE SCIPdatatreeGetRealArray(SCIP_DATATREE *datatree, const char *name, SCIP_Real **values, int *nvalues)
SCIP_RETCODE SCIPdatatreeGetLongArray(SCIP_DATATREE *datatree, const char *name, SCIP_Longint **values, int *nvalues)
assert(minobj< SCIPgetCutoffbound(scip))
memory allocation routines
#define BMSduplicateBlockMemoryArray(mem, ptr, source, num)
#define BMSfreeBlockMemory(mem, ptr)
#define BMSallocBlockMemory(mem, ptr)
#define BMSallocBlockMemoryArray(mem, ptr, num)
#define BMSfreeBlockMemoryArray(mem, ptr, num)
#define BMSreallocBlockMemoryArray(mem, ptr, oldnum, newnum)
struct BMS_BlkMem BMS_BLKMEM
void SCIPmessageFPrintInfo(SCIP_MESSAGEHDLR *messagehdlr, FILE *file, const char *formatstr,...)
public methods for managing data trees
public methods for message output
public data structures and miscellaneous methods
int SCIPsetCalcMemGrowSize(SCIP_SET *set, int num)
internal methods for global SCIP settings
internal methods for problem statistics
SCIP_DATATREEVALUEUNION data
SCIP_DATATREE_VALUETYPE type
SCIP_DATATREEITEM * items
data structures for data trees
the function declarations for the synchronization store
struct SCIP_Datatree SCIP_DATATREE
@ SCIP_DATATREE_REALARRAY
@ SCIP_DATATREE_LONGARRAY
@ SCIP_DATATREE_BOOLARRAY
@ SCIP_DATATREE_STRINGARRAY
enum SCIP_Datatree_Valuetype SCIP_DATATREE_VALUETYPE
struct SCIP_Messagehdlr SCIP_MESSAGEHDLR
enum SCIP_Retcode SCIP_RETCODE
SCIP_Longint * as_longarray