{-# LANGUAGE EmptyDataDecls, ExistentialQuantification, FlexibleContexts, FlexibleInstances, ForeignFunctionInterface, MultiParamTypeClasses, ScopedTypeVariables, TypeFamilies, TypeSynonymInstances #-} module OGDF.LayeredCrossMinModule.Interface where import Data.Word import Data.Int import Foreign.C import Foreign.Ptr import FFICXX.Runtime.Cast import OGDF.LayeredCrossMinModule.RawType import STD.Deletable.Interface class (IDeletable a) => ILayeredCrossMinModule a where upcastLayeredCrossMinModule :: forall a . (FPtr a, ILayeredCrossMinModule a) => a -> LayeredCrossMinModule upcastLayeredCrossMinModule :: forall a. (FPtr a, ILayeredCrossMinModule a) => a -> LayeredCrossMinModule upcastLayeredCrossMinModule 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 RawLayeredCrossMinModule fh2 :: Ptr RawLayeredCrossMinModule = Ptr (Raw a) -> Ptr RawLayeredCrossMinModule forall a b. Ptr a -> Ptr b castPtr Ptr (Raw a) fh in Ptr (Raw LayeredCrossMinModule) -> LayeredCrossMinModule forall a. FPtr a => Ptr (Raw a) -> a cast_fptr_to_obj Ptr (Raw LayeredCrossMinModule) Ptr RawLayeredCrossMinModule fh2 downcastLayeredCrossMinModule :: forall a . (FPtr a, ILayeredCrossMinModule a) => LayeredCrossMinModule -> a downcastLayeredCrossMinModule :: forall a. (FPtr a, ILayeredCrossMinModule a) => LayeredCrossMinModule -> a downcastLayeredCrossMinModule LayeredCrossMinModule h = let fh :: Ptr (Raw LayeredCrossMinModule) fh = LayeredCrossMinModule -> Ptr (Raw LayeredCrossMinModule) forall a. FPtr a => a -> Ptr (Raw a) get_fptr LayeredCrossMinModule h fh2 :: Ptr (Raw a) fh2 = Ptr RawLayeredCrossMinModule -> Ptr (Raw a) forall a b. Ptr a -> Ptr b castPtr Ptr (Raw LayeredCrossMinModule) Ptr RawLayeredCrossMinModule fh in Ptr (Raw a) -> a forall a. FPtr a => Ptr (Raw a) -> a cast_fptr_to_obj Ptr (Raw a) fh2