{-# LANGUAGE DataKinds #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleInstances #-}

module Torch.Internal.Managed.Type.C10Tuple where


import Foreign.C.String
import Foreign.C.Types
import Foreign
import Torch.Internal.Type
import Torch.Internal.Class
import Torch.Internal.Cast
import Torch.Internal.Objects

import qualified Torch.Internal.Unmanaged.Type.C10Tuple as Unmanaged



newC10Tuple
  :: IO (ForeignPtr (C10Ptr IVTuple))
newC10Tuple :: IO (ForeignPtr (C10Ptr IVTuple))
newC10Tuple = forall a ca. Castable a ca => IO ca -> IO a
_cast0 IO (Ptr (C10Ptr IVTuple))
Unmanaged.newC10Tuple

newC10Tuple_tuple
  :: ForeignPtr IValueList
  -> IO (ForeignPtr (C10Ptr IVTuple))
newC10Tuple_tuple :: ForeignPtr IValueList -> IO (ForeignPtr (C10Ptr IVTuple))
newC10Tuple_tuple  = forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
_cast1 Ptr IValueList -> IO (Ptr (C10Ptr IVTuple))
Unmanaged.newC10Tuple_tuple

c10Tuple_empty
  :: ForeignPtr (C10Ptr IVTuple)
  -> IO (CBool)
c10Tuple_empty :: ForeignPtr (C10Ptr IVTuple) -> IO CBool
c10Tuple_empty = forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
_cast1 Ptr (C10Ptr IVTuple) -> IO CBool
Unmanaged.c10Tuple_empty

c10Tuple_size
  :: ForeignPtr (C10Ptr IVTuple)
  -> IO (CSize)
c10Tuple_size :: ForeignPtr (C10Ptr IVTuple) -> IO CSize
c10Tuple_size = forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
_cast1 Ptr (C10Ptr IVTuple) -> IO CSize
Unmanaged.c10Tuple_size

c10Tuple_at
  :: ForeignPtr (C10Ptr IVTuple)
  -> CSize
  -> IO (ForeignPtr IValue)
c10Tuple_at :: ForeignPtr (C10Ptr IVTuple) -> CSize -> IO (ForeignPtr IValue)
c10Tuple_at = forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
_cast2 Ptr (C10Ptr IVTuple) -> CSize -> IO (Ptr IValue)
Unmanaged.c10Tuple_at