/* ----------------------------------------------------------------------------
 * 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: PartialIterator extends: SwigProxy fields: swigCPtrForPartialIterator, swigCMemoryOwn {

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

  Method [ getCPtrForPartialIterator
    ^swigCPtrForPartialIterator
  ]


  Function [ new
    self noDefaultConstructorError
  ]

  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

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

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

  Method [ atEnd 
	^(LorisNI lorisNI_PartialIterator_atEnd: swigCPtrForPartialIterator ) asBoolean
  ]

  Method [ next 
    |cPtr|
    cPtr := LorisNI lorisNI_PartialIterator_next: swigCPtrForPartialIterator .
    ^(cPtr == 0) ifTrue:[ nil ] ifFalse:[ BreakpointPosition fromPointer: cPtr memoryOwn: true ]
  ]

}
