HROOT-0.7: src/HROOT/Class/TGraphAsymmErrors/Interface.hs
{-# LANGUAGE ForeignFunctionInterface, TypeFamilies, MultiParamTypeClasses,
FlexibleInstances, TypeSynonymInstances,
EmptyDataDecls, ExistentialQuantification, ScopedTypeVariables #-}
-- module HROOT.Class.Interface where
module HROOT.Class.TGraphAsymmErrors.Interface where
import Data.Word
import Foreign.ForeignPtr
import HROOT.TypeCast
import HROOT.Class.TGraphAsymmErrors.RawType
import HROOT.Class.TGraph.Interface
class (ITGraph a) => ITGraphAsymmErrors a where
instance Existable TGraphAsymmErrors where
data Exist TGraphAsymmErrors = forall a. (FPtr a, ITGraphAsymmErrors a) => ETGraphAsymmErrors a
upcastTGraphAsymmErrors :: (FPtr a, ITGraphAsymmErrors a) => a -> TGraphAsymmErrors
upcastTGraphAsymmErrors h = let fh = get_fptr h
fh2 :: ForeignPtr RawTGraphAsymmErrors = castForeignPtr fh
in cast_fptr_to_obj fh2