001/* ----------------------------------------------------------------------------
002 * This file was automatically generated by SWIG (http://www.swig.org).
003 * Version 2.0.11
004 *
005 * Do not make changes to this file unless you know what you are doing--modify
006 * the SWIG interface file instead.
007 * ----------------------------------------------------------------------------- */
008
009package edu.wpi.first.wpilibj.hal;
010
011public class CtreCanNode {
012  private long swigCPtr;
013  protected boolean swigCMemOwn;
014
015  protected CtreCanNode(long cPtr, boolean cMemoryOwn) {
016    swigCMemOwn = cMemoryOwn;
017    swigCPtr = cPtr;
018  }
019
020  protected static long getCPtr(CtreCanNode obj) {
021    return (obj == null) ? 0 : obj.swigCPtr;
022  }
023
024  protected void finalize() {
025    delete();
026  }
027
028  public synchronized void delete() {
029    if (swigCPtr != 0) {
030      if (swigCMemOwn) {
031        swigCMemOwn = false;
032        CanTalonJNI.delete_CtreCanNode(swigCPtr);
033      }
034      swigCPtr = 0;
035    }
036  }
037
038  public CtreCanNode(SWIGTYPE_p_UINT8 deviceNumber) {
039    this(CanTalonJNI.new_CtreCanNode(SWIGTYPE_p_UINT8.getCPtr(deviceNumber)), true);
040  }
041
042  public SWIGTYPE_p_UINT8 GetDeviceNumber() {
043    return new SWIGTYPE_p_UINT8(CanTalonJNI.CtreCanNode_GetDeviceNumber(swigCPtr, this), true);
044  }
045
046}