Scippy

    SCIP

    Solving Constraint Integer Programs

    pub_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-2025 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 pub_datatree.h
    26 * @ingroup PUBLICCOREAPI
    27 * @brief public methods for managing 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_PUB_DATATREE_H__
    34#define __SCIP_PUB_DATATREE_H__
    35
    36#include "scip/def.h"
    37#include "scip/type_datatree.h"
    38#include "scip/type_set.h"
    39#include "scip/type_table.h"
    40
    41#ifdef __cplusplus
    42extern "C" {
    43#endif
    44
    45/**@addtogroup PublicDatatreeMethods
    46 *
    47 * @{
    48 */
    49
    50/** gets a SCIP_Bool value from a SCIP_DATATREE object */
    51SCIP_EXPORT
    53 SCIP_DATATREE* datatree, /**< data tree */
    54 const char* name, /**< name to look up */
    55 SCIP_Bool* value /**< buffer to store value */
    56 );
    57
    58/** gets a long value from a SCIP_DATATREE object */
    59SCIP_EXPORT
    61 SCIP_DATATREE* datatree, /**< data tree */
    62 const char* name, /**< name to look up */
    63 SCIP_Longint* value /**< buffer to store value */
    64 );
    65
    66/** gets a SCIP_Real value from a SCIP_DATATREE object */
    67SCIP_EXPORT
    69 SCIP_DATATREE* datatree, /**< data tree */
    70 const char* name, /**< name to look up */
    71 SCIP_Real* value /**< buffer to store value */
    72 );
    73
    74/** gets a string value from a SCIP_DATATREE object */
    75SCIP_EXPORT
    77 SCIP_DATATREE* datatree, /**< data tree */
    78 const char* name, /**< name to look up */
    79 const char** value /**< buffer to store pointer to string */
    80 );
    81
    82/** gets a SCIP_Bool array from a SCIP_DATATREE object */
    83SCIP_EXPORT
    85 SCIP_DATATREE* datatree, /**< data tree */
    86 const char* name, /**< name to look up */
    87 SCIP_Bool** values, /**< buffer to store pointer to values */
    88 int* nvalues /**< buffer to store number of values */
    89 );
    90
    91/** gets a SCIP_Longint array from a SCIP_DATATREE object */
    92SCIP_EXPORT
    94 SCIP_DATATREE* datatree, /**< data tree */
    95 const char* name, /**< name to look up */
    96 SCIP_Longint** values, /**< buffer to store pointer to values */
    97 int* nvalues /**< buffer to store number of values */
    98 );
    99
    100/** gets a SCIP_Real array from a SCIP_DATATREE object */
    101SCIP_EXPORT
    103 SCIP_DATATREE* datatree, /**< data tree */
    104 const char* name, /**< name to look up */
    105 SCIP_Real** values, /**< buffer to store pointer to values */
    106 int* nvalues /**< buffer to store number of values */
    107 );
    108
    109/** gets a string array from a SCIP_DATATREE object */
    110SCIP_EXPORT
    112 SCIP_DATATREE* datatree, /**< data tree */
    113 const char* name, /**< name to look up */
    114 char*** values, /**< buffer to store pointer to values */
    115 int* nvalues /**< buffer to store number of values */
    116 );
    117
    118/** gets a data tree value from a SCIP_DATATREE object */
    119SCIP_EXPORT
    121 SCIP_DATATREE* datatree, /**< data tree */
    122 const char* name, /**< name to look up */
    123 SCIP_DATATREE** value /**< buffer to store pointer to data tree */
    124 );
    125
    126/** @} */
    127
    128#ifdef __cplusplus
    129}
    130#endif
    131
    132#endif
    common defines and data types used in all packages of SCIP
    #define SCIP_Longint
    Definition: def.h:141
    #define SCIP_Bool
    Definition: def.h:91
    #define SCIP_Real
    Definition: def.h:156
    SCIP_RETCODE SCIPdatatreeGetBoolArray(SCIP_DATATREE *datatree, const char *name, SCIP_Bool **values, int *nvalues)
    Definition: datatree.c:716
    SCIP_RETCODE SCIPdatatreeGetStringArray(SCIP_DATATREE *datatree, const char *name, char ***values, int *nvalues)
    Definition: datatree.c:825
    SCIP_RETCODE SCIPdatatreeGetLong(SCIP_DATATREE *datatree, const char *name, SCIP_Longint *value)
    Definition: datatree.c:629
    SCIP_RETCODE SCIPdatatreeGetTree(SCIP_DATATREE *datatree, const char *name, SCIP_DATATREE **value)
    Definition: datatree.c:861
    SCIP_RETCODE SCIPdatatreeGetReal(SCIP_DATATREE *datatree, const char *name, SCIP_Real *value)
    Definition: datatree.c:658
    SCIP_RETCODE SCIPdatatreeGetString(SCIP_DATATREE *datatree, const char *name, const char **value)
    Definition: datatree.c:687
    SCIP_RETCODE SCIPdatatreeGetBool(SCIP_DATATREE *datatree, const char *name, SCIP_Bool *value)
    Definition: datatree.c:600
    SCIP_RETCODE SCIPdatatreeGetRealArray(SCIP_DATATREE *datatree, const char *name, SCIP_Real **values, int *nvalues)
    Definition: datatree.c:788
    SCIP_RETCODE SCIPdatatreeGetLongArray(SCIP_DATATREE *datatree, const char *name, SCIP_Longint **values, int *nvalues)
    Definition: datatree.c:752
    type definitions for data tree
    enum SCIP_Retcode SCIP_RETCODE
    Definition: type_retcode.h:63
    type definitions for global SCIP settings
    type definitions for displaying statistics tables