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

class (IDeletable a) => IHierarchyLayoutModule a where

upcastHierarchyLayoutModule ::
                            forall a . (FPtr a, IHierarchyLayoutModule a) =>
                              a -> HierarchyLayoutModule
upcastHierarchyLayoutModule h
  = let fh = get_fptr h
        fh2 :: Ptr RawHierarchyLayoutModule = castPtr fh
      in cast_fptr_to_obj fh2

downcastHierarchyLayoutModule ::
                              forall a . (FPtr a, IHierarchyLayoutModule a) =>
                                HierarchyLayoutModule -> a
downcastHierarchyLayoutModule h
  = let fh = get_fptr h
        fh2 = castPtr fh
      in cast_fptr_to_obj fh2
