/* ----------------------------------------------------------------------------
 * 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: Splitter extends: FanOut fields: swigCPtrForSplitter {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    super pvtSetCPtr: (CslNI cslNI_SWIGSplitterToFanOut: newCPtr) memoryOwn: newCMemoryOwn.
    swigCPtrForSplitter := newCPtr.
  ]

  Method [ getCPtrForSplitter
    ^swigCPtrForSplitter
  ]


  Function [ new
    self noDefaultConstructorError
  ]

  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

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

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

  Function [ in: in taps: taps
    ^self fromPointer: (CslNI cslNI_new_Splitter: (UnitGenerator getCPtr: in), taps) memoryOwn: true
  ]

  Method [ nextBuffer: outputBuffer 
    CslNI cslNI_Splitter_nextBuffer: swigCPtrForSplitter with: (Buffer getCPtr: outputBuffer)
  ]

}
