9 package com.google.ortools.constraintsolver;
15 private transient long swigCPtr;
16 protected transient boolean swigCMemOwn;
19 swigCMemOwn = cMemoryOwn;
24 return (obj ==
null) ? 0 : obj.swigCPtr;
27 @SuppressWarnings(
"deprecation")
28 protected
void finalize() {
32 public synchronized void delete() {
36 mainJNI.delete_RoutingIndexManager(swigCPtr);
46 this(mainJNI.new_RoutingIndexManager__SWIG_0(num_nodes, num_vehicles, depot),
true);
50 this(mainJNI.new_RoutingIndexManager__SWIG_1(num_nodes, num_vehicles, starts, ends),
true);
54 return mainJNI.RoutingIndexManager_getNumberOfNodes(swigCPtr,
this);
58 return mainJNI.RoutingIndexManager_getNumberOfVehicles(swigCPtr,
this);
62 return mainJNI.RoutingIndexManager_getNumberOfIndices(swigCPtr,
this);
66 return mainJNI.RoutingIndexManager_nodeToIndex(swigCPtr,
this, node);
70 return mainJNI.RoutingIndexManager_nodesToIndices(swigCPtr,
this, nodes);
74 return mainJNI.RoutingIndexManager_indexToNode(swigCPtr,
this, index);