/* ----------------------------------------------------------------------------
 * 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: Effect extends: UnitGenerator fields: swigCPtrForEffect {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    super pvtSetCPtr: (CslNI cslNI_SWIGEffectToUnitGenerator: newCPtr) memoryOwn: newCMemoryOwn.
    swigCPtrForEffect := newCPtr.
  ]

  Method [ getCPtrForEffect
    ^swigCPtrForEffect
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

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

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

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

  Function [ input: input
    ^self fromPointer: (CslNI cslNI_new_Effect__SWIG_1: (UnitGenerator getCPtr: input)) memoryOwn: true
  ]

  Method [ isActive 
	^(CslNI cslNI_Effect_isActive: swigCPtrForEffect ) asBoolean
  ]

  Method [ setInput: inp 
    CslNI cslNI_Effect_setInput: swigCPtrForEffect with: (UnitGenerator getCPtr: inp)
  ]

}
