9package com.google.ortools.constraintsolver;
 
   13import java.util.function.LongUnaryOperator;
 
   16import java.util.function.LongBinaryOperator;
 
   19  private transient long swigCPtr;
 
   21  public Pack(
long cPtr, 
boolean cMemoryOwn) {
 
   22    super(mainJNI.Pack_SWIGUpcast(cPtr), cMemoryOwn);
 
 
   27    return (obj == 
null) ? 0 : obj.swigCPtr;
 
 
   34        throw new RuntimeException(
"Cannot release ownership as memory is not owned");
 
   36      obj.swigCMemOwn = 
false;
 
 
   42  @SuppressWarnings({
"deprecation", 
"removal"})
 
   51        mainJNI.delete_Pack(swigCPtr);
 
 
   59    this(mainJNI.new_Pack(
Solver.
getCPtr(s), s, vars, number_of_bins), 
true);
 
 
   72    mainJNI.Pack_addWeightedSumLessOrEqualConstantDimension__SWIG_0(swigCPtr, 
this, weights, bounds);
 
 
   82    mainJNI.Pack_addWeightedSumLessOrEqualConstantDimension__SWIG_1(swigCPtr, 
this, weights, bounds);
 
 
   92    mainJNI.Pack_addWeightedSumLessOrEqualConstantDimension__SWIG_2(swigCPtr, 
this, weights, bounds);
 
 
  100    mainJNI.Pack_addWeightedSumEqualVarDimension__SWIG_0(swigCPtr, 
this, weights, loads);
 
 
  109    mainJNI.Pack_addWeightedSumEqualVarDimension__SWIG_1(swigCPtr, 
this, weights, loads);
 
 
  124    mainJNI.Pack_addSumVariableWeightsLessOrEqualConstantDimension(swigCPtr, 
this, usage, capacity);
 
 
  132    mainJNI.Pack_addWeightedSumOfAssignedDimension(swigCPtr, 
this, weights, 
IntVar.
getCPtr(cost_var), cost_var);
 
 
  140    mainJNI.Pack_addCountUsedBinDimension(swigCPtr, 
this, 
IntVar.
getCPtr(count_var), count_var);
 
 
  148    mainJNI.Pack_addCountAssignedItemsDimension(swigCPtr, 
this, 
IntVar.
getCPtr(count_var), count_var);
 
 
  152    mainJNI.Pack_post(swigCPtr, 
this);
 
 
  156    mainJNI.Pack_clearAll(swigCPtr, 
this);
 
 
  160    mainJNI.Pack_propagateDelayed(swigCPtr, 
this);
 
 
  164    mainJNI.Pack_initialPropagate(swigCPtr, 
this);
 
 
  168    mainJNI.Pack_propagate(swigCPtr, 
this);
 
 
  172    mainJNI.Pack_oneDomain(swigCPtr, 
this, var_index);
 
 
  176    return mainJNI.Pack_toString(swigCPtr, 
this);
 
 
  180    return mainJNI.Pack_isUndecided(swigCPtr, 
this, var_index, bin_index);
 
 
  184    mainJNI.Pack_setImpossible(swigCPtr, 
this, var_index, bin_index);
 
 
  187  public void assign(
int var_index, 
int bin_index) {
 
  188    mainJNI.Pack_assign(swigCPtr, 
this, var_index, bin_index);
 
 
  192    return mainJNI.Pack_isAssignedStatusKnown(swigCPtr, 
this, var_index);
 
 
  196    return mainJNI.Pack_isPossible(swigCPtr, 
this, var_index, bin_index);
 
 
  200    long cPtr = mainJNI.Pack_assignVar(swigCPtr, 
this, var_index, bin_index);
 
  201    return (cPtr == 0) ? null : 
new IntVar(cPtr, 
false);
 
 
  205    mainJNI.Pack_setAssigned(swigCPtr, 
this, var_index);
 
 
  209    mainJNI.Pack_setUnassigned(swigCPtr, 
this, var_index);
 
 
  213    mainJNI.Pack_removeAllPossibleFromBin(swigCPtr, 
this, bin_index);
 
 
  217    mainJNI.Pack_assignAllPossibleToBin(swigCPtr, 
this, bin_index);
 
 
  221    mainJNI.Pack_assignFirstPossibleToBin(swigCPtr, 
this, bin_index);
 
 
  225    mainJNI.Pack_assignAllRemainingItems(swigCPtr, 
this);
 
 
  229    mainJNI.Pack_unassignAllRemainingItems(swigCPtr, 
this);