SCIP Doxygen Documentation
Loading...
Searching...
No Matches
struct_datatree.h
Go to the documentation of this file.
1
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2
/* */
3
/* This file is part of the program and library */
4
/* SCIP --- Solving Constraint Integer Programs */
5
/* */
6
/* Copyright (c) 2002-2026 Zuse Institute Berlin (ZIB) */
7
/* */
8
/* Licensed under the Apache License, Version 2.0 (the "License"); */
9
/* you may not use this file except in compliance with the License. */
10
/* You may obtain a copy of the License at */
11
/* */
12
/* http://www.apache.org/licenses/LICENSE-2.0 */
13
/* */
14
/* Unless required by applicable law or agreed to in writing, software */
15
/* distributed under the License is distributed on an "AS IS" BASIS, */
16
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
17
/* See the License for the specific language governing permissions and */
18
/* limitations under the License. */
19
/* */
20
/* You should have received a copy of the Apache-2.0 license */
21
/* along with SCIP; see the file LICENSE. If not visit scipopt.org. */
22
/* */
23
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
24
25
/**@file struct_datatree.h
26
* @ingroup INTERNALAPI
27
* @brief data structures for data trees
28
* @author Mohammed Ghannam
29
*/
30
31
/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
32
33
#ifndef __SCIP_STRUCT_DATATREE_H__
34
#define __SCIP_STRUCT_DATATREE_H__
35
36
#include "
scip/def.h
"
37
#include "
scip/type_set.h
"
38
39
#ifdef __cplusplus
40
extern
"C"
{
41
#endif
42
43
/** union to store any possible value of a SCIP_DATATREE */
44
typedef
union
45
{
46
SCIP_Bool
as_bool
;
/**< value interpreted as a boolean */
47
SCIP_Longint
as_long
;
/**< value interpreted as a long integer */
48
SCIP_Real
as_real
;
/**< value interpreted as a SCIP_Real */
49
char
*
as_string
;
/**< value interpreted as a string */
50
SCIP_Bool
*
as_boolarray
;
/**< value interpreted as an array of boolean */
51
SCIP_Longint
*
as_longarray
;
/**< value interpreted as an array of long integer */
52
SCIP_Real
*
as_realarray
;
/**< value interpreted as an array of SCIP_Real */
53
char
**
as_stringarray
;
/**< value interpreted as an array of string */
54
SCIP_DATATREE
*
as_dtree
;
/**< value interpreted as a SCIP_DATATREE */
55
}
SCIP_DATATREEVALUEUNION
;
56
57
/** structure representing a value in a SCIP_DATATREE */
58
typedef
struct
59
{
60
SCIP_DATATREE_VALUETYPE
type
;
/**< type of the value */
61
SCIP_DATATREEVALUEUNION
data
;
/**< storage for the value (as union) */
62
int
nvalues
;
/**< length of arrays if array type */
63
}
SCIP_DATATREEVALUE
;
64
65
/** structure representing an item in a SCIP_DATATREE */
66
typedef
struct
67
{
68
char
*
name
;
/**< name of data item */
69
SCIP_DATATREEVALUE
value
;
/**< value of data item */
70
}
SCIP_DATATREEITEM
;
71
72
/** structure representing a node in a tree of data */
73
struct
SCIP_Datatree
74
{
75
SCIP_DATATREEITEM
*
items
;
/**< array of data items */
76
int
nitems
;
/**< number of items currently stored */
77
int
itemssize
;
/**< capacity (size) of the data tree (maximum number of items it can hold) */
78
};
79
80
#ifdef __cplusplus
81
}
82
#endif
83
84
#endif
def.h
common defines and data types used in all packages of SCIP
SCIP_Longint
#define SCIP_Longint
Definition
def.h:148
SCIP_Bool
#define SCIP_Bool
Definition
def.h:98
SCIP_Real
#define SCIP_Real
Definition
def.h:163
SCIP_DATATREEITEM
Definition
struct_datatree.h:67
SCIP_DATATREEITEM::name
char * name
Definition
struct_datatree.h:68
SCIP_DATATREEITEM::value
SCIP_DATATREEVALUE value
Definition
struct_datatree.h:69
SCIP_DATATREEVALUE
Definition
struct_datatree.h:59
SCIP_DATATREEVALUE::nvalues
int nvalues
Definition
struct_datatree.h:62
SCIP_DATATREEVALUE::data
SCIP_DATATREEVALUEUNION data
Definition
struct_datatree.h:61
SCIP_DATATREEVALUE::type
SCIP_DATATREE_VALUETYPE type
Definition
struct_datatree.h:60
SCIP_Datatree
Definition
struct_datatree.h:74
SCIP_Datatree::nitems
int nitems
Definition
struct_datatree.h:76
SCIP_Datatree::itemssize
int itemssize
Definition
struct_datatree.h:77
SCIP_Datatree::items
SCIP_DATATREEITEM * items
Definition
struct_datatree.h:75
SCIP_DATATREE
struct SCIP_Datatree SCIP_DATATREE
Definition
type_datatree.h:58
SCIP_DATATREE_VALUETYPE
enum SCIP_Datatree_Valuetype SCIP_DATATREE_VALUETYPE
Definition
type_datatree.h:55
type_set.h
type definitions for global SCIP settings
SCIP_DATATREEVALUEUNION
Definition
struct_datatree.h:45
SCIP_DATATREEVALUEUNION::as_realarray
SCIP_Real * as_realarray
Definition
struct_datatree.h:52
SCIP_DATATREEVALUEUNION::as_long
SCIP_Longint as_long
Definition
struct_datatree.h:47
SCIP_DATATREEVALUEUNION::as_string
char * as_string
Definition
struct_datatree.h:49
SCIP_DATATREEVALUEUNION::as_dtree
SCIP_DATATREE * as_dtree
Definition
struct_datatree.h:54
SCIP_DATATREEVALUEUNION::as_boolarray
SCIP_Bool * as_boolarray
Definition
struct_datatree.h:50
SCIP_DATATREEVALUEUNION::as_longarray
SCIP_Longint * as_longarray
Definition
struct_datatree.h:51
SCIP_DATATREEVALUEUNION::as_stringarray
char ** as_stringarray
Definition
struct_datatree.h:53
SCIP_DATATREEVALUEUNION::as_bool
SCIP_Bool as_bool
Definition
struct_datatree.h:46
SCIP_DATATREEVALUEUNION::as_real
SCIP_Real as_real
Definition
struct_datatree.h:48
struct_datatree.h
© 2002-2026 by Zuse Institute Berlin (ZIB),
Imprint
Generated on
for SCIP Doxygen Documentation by
1.15.0