1
/* ----------------------------------------------------------------------------
2
* This file was automatically generated by SWIG (http://www.swig.org).
5
* Do not make changes to this file unless you know what you are doing--modify
6
* the SWIG interface file instead.
7
* ----------------------------------------------------------------------------- */
9
package com.entrouvert.lasso;
11
public class NodeList {
12
private long swigCPtr;
13
protected boolean swigCMemOwn;
15
protected NodeList(long cPtr, boolean cMemoryOwn) {
16
swigCMemOwn = cMemoryOwn;
20
protected static long getCPtr(NodeList obj) {
21
return (obj == null) ? 0 : obj.swigCPtr;
24
protected void finalize() {
28
public void delete() {
29
if(swigCPtr != 0 && swigCMemOwn) {
31
lassoJNI.delete_NodeList(swigCPtr);
37
this(lassoJNI.new_NodeList(), true);
40
public void append(Node item) {
41
lassoJNI.NodeList_append(swigCPtr, Node.getCPtr(item));
44
public SWIGTYPE_p_void cast() {
45
long cPtr = lassoJNI.NodeList_cast(swigCPtr);
46
return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
49
public static NodeList frompointer(SWIGTYPE_p_void nodeArray) {
50
long cPtr = lassoJNI.NodeList_frompointer(SWIGTYPE_p_void.getCPtr(nodeArray));
51
return (cPtr == 0) ? null : new NodeList(cPtr, false);
54
public Node getItem(int index) {
55
long cPtr = lassoJNI.NodeList_getItem(swigCPtr, index);
56
return (cPtr == 0) ? null : (Node) lassoJNI.downcast_node(cPtr);
60
return lassoJNI.NodeList_length(swigCPtr);
63
public void setItem(int index, Node item) {
64
lassoJNI.NodeList_setItem(swigCPtr, index, Node.getCPtr(item));