/* ----------------------------------------------------------------------------
 * 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: MulOp extends: BinaryOp fields: swigCPtrForMulOp {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    super pvtSetCPtr: (CslNI cslNI_SWIGMulOpToBinaryOp: newCPtr) memoryOwn: newCMemoryOwn.
    swigCPtrForMulOp := newCPtr.
  ]

  Method [ getCPtrForMulOp
    ^swigCPtrForMulOp
  ]


  Function [ new
    self noDefaultConstructorError
  ]

  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

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

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

  Function [ op1: op1 op2: op2
    ^self fromPointer: (CslNI cslNI_new_MulOp__SWIG_0: (UnitGenerator getCPtr: op1), (UnitGenerator getCPtr: op2)) memoryOwn: true
  ]

  Function [ op1: op1 op2: op2
    ^self fromPointer: (CslNI cslNI_new_MulOp__SWIG_1: (UnitGenerator getCPtr: op1), op2) memoryOwn: true
  ]

  Function [ op2: op2 op1: op1
    ^self fromPointer: (CslNI cslNI_new_MulOp__SWIG_2: op2, (UnitGenerator getCPtr: op1)) memoryOwn: true
  ]

}
