{-# 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 h
  = let fh = get_fptr h
        fh2 :: Ptr RawLayeredCrossMinModule = castPtr fh
      in cast_fptr_to_obj fh2

downcastLayeredCrossMinModule ::
                              forall a . (FPtr a, ILayeredCrossMinModule a) =>
                                LayeredCrossMinModule -> a
downcastLayeredCrossMinModule h
  = let fh = get_fptr h
        fh2 = castPtr fh
      in cast_fptr_to_obj fh2
