/* ----------------------------------------------------------------------------
 * 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: FrequencyAmount extends: Controllable fields: swigCPtrForFrequencyAmount {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    super pvtSetCPtr: (CslNI cslNI_SWIGFrequencyAmountToControllable: newCPtr) memoryOwn: newCMemoryOwn.
    swigCPtrForFrequencyAmount := newCPtr.
  ]

  Method [ getCPtrForFrequencyAmount
    ^swigCPtrForFrequencyAmount
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

  Method [ delete 
    (swigCMemoryOwn and:[ swigCPtrForFrequencyAmount ~~ 0 ]) ifTrue:[
      swigCMemoryOwn := false.
      CslNI cslNI_delete_FrequencyAmount: swigCPtrForFrequencyAmount.
    ].
    swigCPtrForFrequencyAmount := 0.
    super delete.
  ]

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

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

  Method [ setFrequency: frequency 
    CslNI cslNI_FrequencyAmount_setFrequency__SWIG_0: swigCPtrForFrequencyAmount with: (UnitGenerator getCPtr: frequency)
  ]

  Method [ setFrequency: frequency 
    CslNI cslNI_FrequencyAmount_setFrequency__SWIG_1: swigCPtrForFrequencyAmount with: frequency
  ]

  Method [ setAmount: amount 
    CslNI cslNI_FrequencyAmount_setAmount__SWIG_0: swigCPtrForFrequencyAmount with: (UnitGenerator getCPtr: amount)
  ]

  Method [ setAmount: amount 
    CslNI cslNI_FrequencyAmount_setAmount__SWIG_1: swigCPtrForFrequencyAmount with: amount
  ]

}
