Java Reference

Java Reference

PathWithPreviousNodesOperator.java
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 4.0.1
4  *
5  * Do not make changes to this file unless you know what you are doing--modify
6  * the SWIG interface file instead.
7  * ----------------------------------------------------------------------------- */
8 
9 package com.google.ortools.constraintsolver;
10 
12  private transient long swigCPtr;
13 
14  protected PathWithPreviousNodesOperator(long cPtr, boolean cMemoryOwn) {
15  super(mainJNI.PathWithPreviousNodesOperator_SWIGUpcast(cPtr), cMemoryOwn);
16  swigCPtr = cPtr;
17  }
18 
19  protected static long getCPtr(PathWithPreviousNodesOperator obj) {
20  return (obj == null) ? 0 : obj.swigCPtr;
21  }
22 
23  @SuppressWarnings("deprecation")
24  protected void finalize() {
25  delete();
26  }
27 
28  public synchronized void delete() {
29  if (swigCPtr != 0) {
30  if (swigCMemOwn) {
31  swigCMemOwn = false;
32  mainJNI.delete_PathWithPreviousNodesOperator(swigCPtr);
33  }
34  swigCPtr = 0;
35  }
36  super.delete();
37  }
38 
39  public boolean isPathStart(long node_index) {
40  return mainJNI.PathWithPreviousNodesOperator_isPathStart(swigCPtr, this, node_index);
41  }
42 
43  public long prev(long node_index) {
44  return mainJNI.PathWithPreviousNodesOperator_prev(swigCPtr, this, node_index);
45  }
46 
47  public String toString() {
48  return mainJNI.PathWithPreviousNodesOperator_toString(swigCPtr, this);
49  }
50 
51 }
boolean isPathStart(long node_index)
long prev(long node_index)
PathWithPreviousNodesOperator(long cPtr, boolean cMemoryOwn)
String toString()