{-# LANGUAGE EmptyDataDecls, ExistentialQuantification, FlexibleContexts, FlexibleInstances, ForeignFunctionInterface, MultiParamTypeClasses, ScopedTypeVariables, TypeFamilies, TypeSynonymInstances #-} module OGDF.LayerByLayerSweep.Interface where import Data.Word import Data.Int import Foreign.C import Foreign.Ptr import FFICXX.Runtime.Cast import OGDF.LayerByLayerSweep.RawType import STD.Deletable.Interface import OGDF.LayeredCrossMinModule.Interface class (IDeletable a, ILayeredCrossMinModule a) => ILayerByLayerSweep a where upcastLayerByLayerSweep :: forall a . (FPtr a, ILayerByLayerSweep a) => a -> LayerByLayerSweep upcastLayerByLayerSweep :: forall a. (FPtr a, ILayerByLayerSweep a) => a -> LayerByLayerSweep upcastLayerByLayerSweep a h = let fh :: Ptr (Raw a) fh = a -> Ptr (Raw a) forall a. FPtr a => a -> Ptr (Raw a) get_fptr a h Ptr RawLayerByLayerSweep fh2 :: Ptr RawLayerByLayerSweep = Ptr (Raw a) -> Ptr RawLayerByLayerSweep forall a b. Ptr a -> Ptr b castPtr Ptr (Raw a) fh in Ptr (Raw LayerByLayerSweep) -> LayerByLayerSweep forall a. FPtr a => Ptr (Raw a) -> a cast_fptr_to_obj Ptr (Raw LayerByLayerSweep) Ptr RawLayerByLayerSweep fh2 downcastLayerByLayerSweep :: forall a . (FPtr a, ILayerByLayerSweep a) => LayerByLayerSweep -> a downcastLayerByLayerSweep :: forall a. (FPtr a, ILayerByLayerSweep a) => LayerByLayerSweep -> a downcastLayerByLayerSweep LayerByLayerSweep h = let fh :: Ptr (Raw LayerByLayerSweep) fh = LayerByLayerSweep -> Ptr (Raw LayerByLayerSweep) forall a. FPtr a => a -> Ptr (Raw a) get_fptr LayerByLayerSweep h fh2 :: Ptr (Raw a) fh2 = Ptr RawLayerByLayerSweep -> Ptr (Raw a) forall a b. Ptr a -> Ptr b castPtr Ptr (Raw LayerByLayerSweep) Ptr RawLayerByLayerSweep fh in Ptr (Raw a) -> a forall a. FPtr a => Ptr (Raw a) -> a cast_fptr_to_obj Ptr (Raw a) fh2