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

class (IDeletable a) => IRankingModule a where

upcastRankingModule ::
                    forall a . (FPtr a, IRankingModule a) => a -> RankingModule
upcastRankingModule h
  = let fh = get_fptr h
        fh2 :: Ptr RawRankingModule = castPtr fh
      in cast_fptr_to_obj fh2

downcastRankingModule ::
                      forall a . (FPtr a, IRankingModule a) => RankingModule -> a
downcastRankingModule h
  = let fh = get_fptr h
        fh2 = castPtr fh
      in cast_fptr_to_obj fh2
