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

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

  Method [ getCPtrForCacheable
    ^swigCPtrForCacheable
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

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

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

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

  Function [ uC: uC
    ^self fromPointer: (CslNI cslNI_new_Cacheable__SWIG_1: uC asBooleanParameter) memoryOwn: true
  ]

  Method [ setMUseCache: mUseCache 
    CslNI cslNI_set_Cacheable_mUseCache: swigCPtrForCacheable with: mUseCache asBooleanParameter
  ]

  Method [ getMUseCache 
	^(CslNI cslNI_get_Cacheable_mUseCache: swigCPtrForCacheable ) asBoolean
  ]

}
