{-# LANGUAGE EmptyDataDecls, ExistentialQuantification, FlexibleContexts, FlexibleInstances, ForeignFunctionInterface, MultiParamTypeClasses, ScopedTypeVariables, TypeFamilies, TypeSynonymInstances #-} module HROOT.Hist.TGraphAsymmErrors.Interface where import Data.Word import Data.Int import Foreign.C import Foreign.Ptr import FFICXX.Runtime.Cast import HROOT.Hist.TGraphAsymmErrors.RawType import HROOT.Hist.TGraph.Interface class (ITGraph a) => ITGraphAsymmErrors a where setPointErrorA :: () => a -> CInt -> CDouble -> CDouble -> CDouble -> CDouble -> IO () upcastTGraphAsymmErrors :: forall a . (FPtr a, ITGraphAsymmErrors a) => a -> TGraphAsymmErrors upcastTGraphAsymmErrors :: forall a. (FPtr a, ITGraphAsymmErrors a) => a -> TGraphAsymmErrors upcastTGraphAsymmErrors a h = let fh :: Ptr (Raw a) fh = a -> Ptr (Raw a) forall a. FPtr a => a -> Ptr (Raw a) get_fptr a h Ptr RawTGraphAsymmErrors fh2 :: Ptr RawTGraphAsymmErrors = Ptr (Raw a) -> Ptr RawTGraphAsymmErrors forall a b. Ptr a -> Ptr b castPtr Ptr (Raw a) fh in Ptr (Raw TGraphAsymmErrors) -> TGraphAsymmErrors forall a. FPtr a => Ptr (Raw a) -> a cast_fptr_to_obj Ptr (Raw TGraphAsymmErrors) Ptr RawTGraphAsymmErrors fh2 downcastTGraphAsymmErrors :: forall a . (FPtr a, ITGraphAsymmErrors a) => TGraphAsymmErrors -> a downcastTGraphAsymmErrors :: forall a. (FPtr a, ITGraphAsymmErrors a) => TGraphAsymmErrors -> a downcastTGraphAsymmErrors TGraphAsymmErrors h = let fh :: Ptr (Raw TGraphAsymmErrors) fh = TGraphAsymmErrors -> Ptr (Raw TGraphAsymmErrors) forall a. FPtr a => a -> Ptr (Raw a) get_fptr TGraphAsymmErrors h fh2 :: Ptr (Raw a) fh2 = Ptr RawTGraphAsymmErrors -> Ptr (Raw a) forall a b. Ptr a -> Ptr b castPtr Ptr (Raw TGraphAsymmErrors) Ptr RawTGraphAsymmErrors fh in Ptr (Raw a) -> a forall a. FPtr a => Ptr (Raw a) -> a cast_fptr_to_obj Ptr (Raw a) fh2