/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version: 1.3.21
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */


Class name: PartialList extends: SwigProxy fields: swigCPtrForPartialList, swigCMemoryOwn {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    swigCMemoryOwn := newCMemoryOwn.
    swigCPtrForPartialList := newCPtr.
  ]

  Method [ getCPtrForPartialList
    ^swigCPtrForPartialList
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

  Method [ delete 
    (swigCMemoryOwn and:[ swigCPtrForPartialList ~~ 0 ]) ifTrue:[
      swigCMemoryOwn := false.
      LorisNI lorisNI_delete_PartialList: swigCPtrForPartialList.
    ].
    swigCPtrForPartialList := 0.
  ]

  Function[ getCPtr: obj
     obj isNil ifTrue:[^0].
     ^obj getCPtrForPartialList
  ]

  Function [ new
    ^self fromPointer: (LorisNI lorisNI_new_PartialList__SWIG_0) memoryOwn: true
  ]

  Function [ rhs: rhs
    ^self fromPointer: (LorisNI lorisNI_new_PartialList__SWIG_1: (PartialList getCPtr: rhs)) memoryOwn: true
  ]

  Method [ clear 
    LorisNI lorisNI_PartialList_clear: swigCPtrForPartialList 
  ]

  Method [ size 
    ^LorisNI lorisNI_PartialList_size: swigCPtrForPartialList 
  ]

  Method [ iterator 
    |cPtr|
    cPtr := LorisNI lorisNI_PartialList_iterator: swigCPtrForPartialList .
    ^(cPtr == 0) ifTrue:[ nil ] ifFalse:[ PartialListIterator fromPointer: cPtr memoryOwn: true ]
  ]

  Method [ append: partial 
    LorisNI lorisNI_PartialList_append__SWIG_0: swigCPtrForPartialList with: (Partial getCPtr: partial)
  ]

  Method [ append: other 
    LorisNI lorisNI_PartialList_append__SWIG_1: swigCPtrForPartialList with: (PartialList getCPtr: other)
  ]

  Method [ remove: partial 
    LorisNI lorisNI_PartialList_remove: swigCPtrForPartialList with: (Partial getCPtr: partial)
  ]

  Method [ first 
    |cPtr|
    cPtr := LorisNI lorisNI_PartialList_first: swigCPtrForPartialList .
    ^(cPtr == 0) ifTrue:[ nil ] ifFalse:[ Partial fromPointer: cPtr memoryOwn: false ]
  ]

  Method [ last 
    |cPtr|
    cPtr := LorisNI lorisNI_PartialList_last: swigCPtrForPartialList .
    ^(cPtr == 0) ifTrue:[ nil ] ifFalse:[ Partial fromPointer: cPtr memoryOwn: false ]
  ]

  Method [ copy 
    |cPtr|
    cPtr := LorisNI lorisNI_PartialList_copy: swigCPtrForPartialList .
    ^(cPtr == 0) ifTrue:[ nil ] ifFalse:[ PartialList fromPointer: cPtr memoryOwn: false ]
  ]

}
