OR-Tools  9.2
knapsack_solver_java_wrap.cc File Reference

Go to the source code of this file.

Classes

struct  SWIG_JavaExceptions_t
 

Macros

#define SWIGJAVA
 
#define SWIGTEMPLATEDISAMBIGUATOR
 
#define SWIGINLINE
 
#define SWIGUNUSED
 
#define SWIGUNUSEDPARM(p)   p SWIGUNUSED
 
#define SWIGINTERN   static SWIGUNUSED
 
#define SWIGINTERNINLINE   SWIGINTERN SWIGINLINE
 
#define SWIGEXPORT
 
#define SWIGSTDCALL
 
#define SWIG_contract_assert(nullreturn, expr, msg)   if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else
 
#define SWIGWORDSIZE64
 

Enumerations

enum  SWIG_JavaExceptionCodes {
  SWIG_JavaOutOfMemoryError = 1, SWIG_JavaIOException, SWIG_JavaRuntimeException, SWIG_JavaIndexOutOfBoundsException,
  SWIG_JavaArithmeticException, SWIG_JavaIllegalArgumentException, SWIG_JavaNullPointerException, SWIG_JavaDirectorPureVirtual,
  SWIG_JavaUnknownError, SWIG_JavaIllegalStateException, SWIG_JavaOutOfMemoryError = 1, SWIG_JavaIOException,
  SWIG_JavaRuntimeException, SWIG_JavaIndexOutOfBoundsException, SWIG_JavaArithmeticException, SWIG_JavaIllegalArgumentException,
  SWIG_JavaNullPointerException, SWIG_JavaDirectorPureVirtual, SWIG_JavaUnknownError, SWIG_JavaIllegalStateException,
  SWIG_JavaOutOfMemoryError = 1, SWIG_JavaIOException, SWIG_JavaRuntimeException, SWIG_JavaIndexOutOfBoundsException,
  SWIG_JavaArithmeticException, SWIG_JavaIllegalArgumentException, SWIG_JavaNullPointerException, SWIG_JavaDirectorPureVirtual,
  SWIG_JavaUnknownError, SWIG_JavaIllegalStateException, SWIG_JavaOutOfMemoryError = 1, SWIG_JavaIOException,
  SWIG_JavaRuntimeException, SWIG_JavaIndexOutOfBoundsException, SWIG_JavaArithmeticException, SWIG_JavaIllegalArgumentException,
  SWIG_JavaNullPointerException, SWIG_JavaDirectorPureVirtual, SWIG_JavaUnknownError, SWIG_JavaIllegalStateException,
  SWIG_JavaOutOfMemoryError = 1, SWIG_JavaIOException, SWIG_JavaRuntimeException, SWIG_JavaIndexOutOfBoundsException,
  SWIG_JavaArithmeticException, SWIG_JavaIllegalArgumentException, SWIG_JavaNullPointerException, SWIG_JavaDirectorPureVirtual,
  SWIG_JavaUnknownError, SWIG_JavaIllegalStateException, SWIG_JavaOutOfMemoryError = 1, SWIG_JavaIOException,
  SWIG_JavaRuntimeException, SWIG_JavaIndexOutOfBoundsException, SWIG_JavaArithmeticException, SWIG_JavaIllegalArgumentException,
  SWIG_JavaNullPointerException, SWIG_JavaDirectorPureVirtual, SWIG_JavaUnknownError, SWIG_JavaIllegalStateException,
  SWIG_JavaOutOfMemoryError = 1, SWIG_JavaIOException, SWIG_JavaRuntimeException, SWIG_JavaIndexOutOfBoundsException,
  SWIG_JavaArithmeticException, SWIG_JavaIllegalArgumentException, SWIG_JavaNullPointerException, SWIG_JavaDirectorPureVirtual,
  SWIG_JavaUnknownError, SWIG_JavaIllegalStateException
}
 

Functions

static void SWIGUNUSED SWIG_JavaThrowException (JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg)
 
SWIGEXPORT jint JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1KNAPSACK_1BRUTE_1FORCE_1SOLVER_1get (JNIEnv *jenv, jclass jcls)
 
SWIGEXPORT jint JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1KNAPSACK_164ITEMS_1SOLVER_1get (JNIEnv *jenv, jclass jcls)
 
SWIGEXPORT jint JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1KNAPSACK_1DYNAMIC_1PROGRAMMING_1SOLVER_1get (JNIEnv *jenv, jclass jcls)
 
SWIGEXPORT jint JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1KNAPSACK_1MULTIDIMENSION_1CBC_1MIP_1SOLVER_1get (JNIEnv *jenv, jclass jcls)
 
SWIGEXPORT jint JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1KNAPSACK_1MULTIDIMENSION_1BRANCH_1AND_1BOUND_1SOLVER_1get (JNIEnv *jenv, jclass jcls)
 
SWIGEXPORT jlong JNICALL Java_com_google_ortools_algorithms_mainJNI_new_1KnapsackSolver_1_1SWIG_10 (JNIEnv *jenv, jclass jcls, jstring jarg1)
 
SWIGEXPORT jlong JNICALL Java_com_google_ortools_algorithms_mainJNI_new_1KnapsackSolver_1_1SWIG_11 (JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2)
 
SWIGEXPORT void JNICALL Java_com_google_ortools_algorithms_mainJNI_delete_1KnapsackSolver (JNIEnv *jenv, jclass jcls, jlong jarg1)
 
SWIGEXPORT void JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1init (JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlongArray jarg2, jobjectArray jarg3, jlongArray jarg4)
 
SWIGEXPORT jlong JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1solve (JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_)
 
SWIGEXPORT jboolean JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1bestSolutionContains (JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2)
 
SWIGEXPORT jboolean JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1isSolutionOptimal (JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_)
 
SWIGEXPORT jstring JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1getName (JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_)
 
SWIGEXPORT jboolean JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1useReduction (JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_)
 
SWIGEXPORT void JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1setUseReduction (JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2)
 
SWIGEXPORT void JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1setTimeLimit (JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2)
 

Macro Definition Documentation

◆ SWIG_contract_assert

#define SWIG_contract_assert (   nullreturn,
  expr,
  msg 
)    if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else

Definition at line 232 of file knapsack_solver_java_wrap.cc.

◆ SWIGEXPORT

#define SWIGEXPORT

Definition at line 127 of file knapsack_solver_java_wrap.cc.

◆ SWIGINLINE

#define SWIGINLINE

Definition at line 64 of file knapsack_solver_java_wrap.cc.

◆ SWIGINTERN

#define SWIGINTERN   static SWIGUNUSED

Definition at line 99 of file knapsack_solver_java_wrap.cc.

◆ SWIGINTERNINLINE

#define SWIGINTERNINLINE   SWIGINTERN SWIGINLINE

Definition at line 104 of file knapsack_solver_java_wrap.cc.

◆ SWIGJAVA

#define SWIGJAVA

Definition at line 13 of file knapsack_solver_java_wrap.cc.

◆ SWIGSTDCALL

#define SWIGSTDCALL

Definition at line 137 of file knapsack_solver_java_wrap.cc.

◆ SWIGTEMPLATEDISAMBIGUATOR

#define SWIGTEMPLATEDISAMBIGUATOR

Definition at line 55 of file knapsack_solver_java_wrap.cc.

◆ SWIGUNUSED

#define SWIGUNUSED

Definition at line 79 of file knapsack_solver_java_wrap.cc.

◆ SWIGUNUSEDPARM

#define SWIGUNUSEDPARM (   p)    p SWIGUNUSED

Definition at line 93 of file knapsack_solver_java_wrap.cc.

◆ SWIGWORDSIZE64

#define SWIGWORDSIZE64

Definition at line 245 of file knapsack_solver_java_wrap.cc.

Enumeration Type Documentation

◆ SWIG_JavaExceptionCodes

Enumerator
SWIG_JavaOutOfMemoryError 
SWIG_JavaIOException 
SWIG_JavaRuntimeException 
SWIG_JavaIndexOutOfBoundsException 
SWIG_JavaArithmeticException 
SWIG_JavaIllegalArgumentException 
SWIG_JavaNullPointerException 
SWIG_JavaDirectorPureVirtual 
SWIG_JavaUnknownError 
SWIG_JavaIllegalStateException 
SWIG_JavaOutOfMemoryError 
SWIG_JavaIOException 
SWIG_JavaRuntimeException 
SWIG_JavaIndexOutOfBoundsException 
SWIG_JavaArithmeticException 
SWIG_JavaIllegalArgumentException 
SWIG_JavaNullPointerException 
SWIG_JavaDirectorPureVirtual 
SWIG_JavaUnknownError 
SWIG_JavaIllegalStateException 
SWIG_JavaOutOfMemoryError 
SWIG_JavaIOException 
SWIG_JavaRuntimeException 
SWIG_JavaIndexOutOfBoundsException 
SWIG_JavaArithmeticException 
SWIG_JavaIllegalArgumentException 
SWIG_JavaNullPointerException 
SWIG_JavaDirectorPureVirtual 
SWIG_JavaUnknownError 
SWIG_JavaIllegalStateException 
SWIG_JavaOutOfMemoryError 
SWIG_JavaIOException 
SWIG_JavaRuntimeException 
SWIG_JavaIndexOutOfBoundsException 
SWIG_JavaArithmeticException 
SWIG_JavaIllegalArgumentException 
SWIG_JavaNullPointerException 
SWIG_JavaDirectorPureVirtual 
SWIG_JavaUnknownError 
SWIG_JavaIllegalStateException 
SWIG_JavaOutOfMemoryError 
SWIG_JavaIOException 
SWIG_JavaRuntimeException 
SWIG_JavaIndexOutOfBoundsException 
SWIG_JavaArithmeticException 
SWIG_JavaIllegalArgumentException 
SWIG_JavaNullPointerException 
SWIG_JavaDirectorPureVirtual 
SWIG_JavaUnknownError 
SWIG_JavaIllegalStateException 
SWIG_JavaOutOfMemoryError 
SWIG_JavaIOException 
SWIG_JavaRuntimeException 
SWIG_JavaIndexOutOfBoundsException 
SWIG_JavaArithmeticException 
SWIG_JavaIllegalArgumentException 
SWIG_JavaNullPointerException 
SWIG_JavaDirectorPureVirtual 
SWIG_JavaUnknownError 
SWIG_JavaIllegalStateException 
SWIG_JavaOutOfMemoryError 
SWIG_JavaIOException 
SWIG_JavaRuntimeException 
SWIG_JavaIndexOutOfBoundsException 
SWIG_JavaArithmeticException 
SWIG_JavaIllegalArgumentException 
SWIG_JavaNullPointerException 
SWIG_JavaDirectorPureVirtual 
SWIG_JavaUnknownError 
SWIG_JavaIllegalStateException 

Definition at line 184 of file knapsack_solver_java_wrap.cc.

Function Documentation

◆ Java_com_google_ortools_algorithms_mainJNI_delete_1KnapsackSolver()

SWIGEXPORT void JNICALL Java_com_google_ortools_algorithms_mainJNI_delete_1KnapsackSolver ( JNIEnv *  jenv,
jclass  jcls,
jlong  jarg1 
)

Definition at line 370 of file knapsack_solver_java_wrap.cc.

◆ Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1bestSolutionContains()

SWIGEXPORT jboolean JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1bestSolutionContains ( JNIEnv *  jenv,
jclass  jcls,
jlong  jarg1,
jobject  jarg1_,
jint  jarg2 
)

Definition at line 473 of file knapsack_solver_java_wrap.cc.

◆ Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1getName()

SWIGEXPORT jstring JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1getName ( JNIEnv *  jenv,
jclass  jcls,
jlong  jarg1,
jobject  jarg1_ 
)

Definition at line 505 of file knapsack_solver_java_wrap.cc.

◆ Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1init()

SWIGEXPORT void JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1init ( JNIEnv *  jenv,
jclass  jcls,
jlong  jarg1,
jobject  jarg1_,
jlongArray  jarg2,
jobjectArray  jarg3,
jlongArray  jarg4 
)

Definition at line 380 of file knapsack_solver_java_wrap.cc.

◆ Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1isSolutionOptimal()

SWIGEXPORT jboolean JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1isSolutionOptimal ( JNIEnv *  jenv,
jclass  jcls,
jlong  jarg1,
jobject  jarg1_ 
)

Definition at line 490 of file knapsack_solver_java_wrap.cc.

◆ Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1KNAPSACK_164ITEMS_1SOLVER_1get()

SWIGEXPORT jint JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1KNAPSACK_164ITEMS_1SOLVER_1get ( JNIEnv *  jenv,
jclass  jcls 
)

Definition at line 276 of file knapsack_solver_java_wrap.cc.

◆ Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1KNAPSACK_1BRUTE_1FORCE_1SOLVER_1get()

SWIGEXPORT jint JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1KNAPSACK_1BRUTE_1FORCE_1SOLVER_1get ( JNIEnv *  jenv,
jclass  jcls 
)

Definition at line 264 of file knapsack_solver_java_wrap.cc.

◆ Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1KNAPSACK_1DYNAMIC_1PROGRAMMING_1SOLVER_1get()

SWIGEXPORT jint JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1KNAPSACK_1DYNAMIC_1PROGRAMMING_1SOLVER_1get ( JNIEnv *  jenv,
jclass  jcls 
)

Definition at line 288 of file knapsack_solver_java_wrap.cc.

◆ Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1KNAPSACK_1MULTIDIMENSION_1BRANCH_1AND_1BOUND_1SOLVER_1get()

SWIGEXPORT jint JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1KNAPSACK_1MULTIDIMENSION_1BRANCH_1AND_1BOUND_1SOLVER_1get ( JNIEnv *  jenv,
jclass  jcls 
)

Definition at line 312 of file knapsack_solver_java_wrap.cc.

◆ Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1KNAPSACK_1MULTIDIMENSION_1CBC_1MIP_1SOLVER_1get()

SWIGEXPORT jint JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1KNAPSACK_1MULTIDIMENSION_1CBC_1MIP_1SOLVER_1get ( JNIEnv *  jenv,
jclass  jcls 
)

Definition at line 300 of file knapsack_solver_java_wrap.cc.

◆ Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1setTimeLimit()

SWIGEXPORT void JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1setTimeLimit ( JNIEnv *  jenv,
jclass  jcls,
jlong  jarg1,
jobject  jarg1_,
jdouble  jarg2 
)

Definition at line 548 of file knapsack_solver_java_wrap.cc.

◆ Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1setUseReduction()

SWIGEXPORT void JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1setUseReduction ( JNIEnv *  jenv,
jclass  jcls,
jlong  jarg1,
jobject  jarg1_,
jboolean  jarg2 
)

Definition at line 535 of file knapsack_solver_java_wrap.cc.

◆ Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1solve()

SWIGEXPORT jlong JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1solve ( JNIEnv *  jenv,
jclass  jcls,
jlong  jarg1,
jobject  jarg1_ 
)

Definition at line 458 of file knapsack_solver_java_wrap.cc.

◆ Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1useReduction()

SWIGEXPORT jboolean JNICALL Java_com_google_ortools_algorithms_mainJNI_KnapsackSolver_1useReduction ( JNIEnv *  jenv,
jclass  jcls,
jlong  jarg1,
jobject  jarg1_ 
)

Definition at line 520 of file knapsack_solver_java_wrap.cc.

◆ Java_com_google_ortools_algorithms_mainJNI_new_1KnapsackSolver_1_1SWIG_10()

SWIGEXPORT jlong JNICALL Java_com_google_ortools_algorithms_mainJNI_new_1KnapsackSolver_1_1SWIG_10 ( JNIEnv *  jenv,
jclass  jcls,
jstring  jarg1 
)

Definition at line 324 of file knapsack_solver_java_wrap.cc.

◆ Java_com_google_ortools_algorithms_mainJNI_new_1KnapsackSolver_1_1SWIG_11()

SWIGEXPORT jlong JNICALL Java_com_google_ortools_algorithms_mainJNI_new_1KnapsackSolver_1_1SWIG_11 ( JNIEnv *  jenv,
jclass  jcls,
jint  jarg1,
jstring  jarg2 
)

Definition at line 346 of file knapsack_solver_java_wrap.cc.

◆ SWIG_JavaThrowException()

static void SWIGUNUSED SWIG_JavaThrowException ( JNIEnv *  jenv,
SWIG_JavaExceptionCodes  code,
const char *  msg 
)
static

Definition at line 203 of file knapsack_solver_java_wrap.cc.