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

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

  Method [ getCPtrForPartial
    ^swigCPtrForPartial
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

  Method [ delete 
    (swigCMemoryOwn and:[ swigCPtrForPartial ~~ 0 ]) ifTrue:[
      swigCMemoryOwn := false.
      CslNI cslNI_delete_Partial: swigCPtrForPartial.
    ].
    swigCPtrForPartial := 0.
  ]

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

  Method [ setNumber: number 
    CslNI cslNI_set_Partial_number: swigCPtrForPartial with: number
  ]

  Method [ getNumber 
    ^CslNI cslNI_get_Partial_number: swigCPtrForPartial 
  ]

  Method [ setAmplitude: amplitude 
    CslNI cslNI_set_Partial_amplitude: swigCPtrForPartial with: amplitude
  ]

  Method [ getAmplitude 
    ^CslNI cslNI_get_Partial_amplitude: swigCPtrForPartial 
  ]

  Method [ setPhase: phase 
    CslNI cslNI_set_Partial_phase: swigCPtrForPartial with: phase
  ]

  Method [ getPhase 
    ^CslNI cslNI_get_Partial_phase: swigCPtrForPartial 
  ]

  Function [ new
    ^self fromPointer: (CslNI cslNI_new_Partial) memoryOwn: true
  ]

}
