{-# LANGUAGE EmptyDataDecls, ExistentialQuantification,
  FlexibleContexts, FlexibleInstances, ForeignFunctionInterface,
  MultiParamTypeClasses, ScopedTypeVariables, TypeFamilies,
  TypeSynonymInstances #-}
module OGDF.MedianHeuristic.Interface where
import Data.Word
import Data.Int
import Foreign.C
import Foreign.Ptr
import FFICXX.Runtime.Cast
import OGDF.MedianHeuristic.RawType
import STD.Deletable.Interface
import OGDF.LayerByLayerSweep.Interface

class (IDeletable a, ILayerByLayerSweep a) => IMedianHeuristic a
      where

upcastMedianHeuristic ::
                      forall a . (FPtr a, IMedianHeuristic a) => a -> MedianHeuristic
upcastMedianHeuristic h
  = let fh = get_fptr h
        fh2 :: Ptr RawMedianHeuristic = castPtr fh
      in cast_fptr_to_obj fh2

downcastMedianHeuristic ::
                        forall a . (FPtr a, IMedianHeuristic a) => MedianHeuristic -> a
downcastMedianHeuristic h
  = let fh = get_fptr h
        fh2 = castPtr fh
      in cast_fptr_to_obj fh2
