module HROOT.Class.TSeqCollection.Cast where
import Foreign.Ptr
import Foreign.ForeignPtr
import HROOT.TypeCast
import System.IO.Unsafe
import HROOT.Class.TSeqCollection.RawType
import HROOT.Class.TSeqCollection.Interface
instance (ITSeqCollection a, FPtr a) => Castable a (Ptr RawTSeqCollection) where
cast = unsafeForeignPtrToPtr . castForeignPtr . get_fptr
uncast = cast_fptr_to_obj . castForeignPtr . unsafePerformIO . newForeignPtr_
instance Castable TSeqCollection (Ptr RawTSeqCollection) where
cast = unsafeForeignPtrToPtr . castForeignPtr . get_fptr
uncast = cast_fptr_to_obj . castForeignPtr . unsafePerformIO . newForeignPtr_