stdcxx-0.7.0.1: Binding to Standard Template Library C++
Safe HaskellSafe-Inferred
LanguageHaskell2010

STD.UniquePtr.Template

Documentation

data RawUniquePtr tp1 Source #

Instances

Instances details
Castable (UniquePtr tp1) (Ptr (RawUniquePtr tp1)) Source # 
Instance details

Defined in STD.UniquePtr.Template

Methods

cast :: UniquePtr tp1 -> (Ptr (RawUniquePtr tp1) -> IO r) -> IO r #

uncast :: Ptr (RawUniquePtr tp1) -> (UniquePtr tp1 -> IO r) -> IO r #

newtype UniquePtr tp1 Source #

Constructors

UniquePtr (Ptr (RawUniquePtr tp1)) 

Instances

Instances details
FPtr (UniquePtr tp1) Source # 
Instance details

Defined in STD.UniquePtr.Template

Associated Types

type Raw (UniquePtr tp1) #

Methods

get_fptr :: UniquePtr tp1 -> Ptr (Raw (UniquePtr tp1)) #

cast_fptr_to_obj :: Ptr (Raw (UniquePtr tp1)) -> UniquePtr tp1 #

Castable (UniquePtr tp1) (Ptr (RawUniquePtr tp1)) Source # 
Instance details

Defined in STD.UniquePtr.Template

Methods

cast :: UniquePtr tp1 -> (Ptr (RawUniquePtr tp1) -> IO r) -> IO r #

uncast :: Ptr (RawUniquePtr tp1) -> (UniquePtr tp1 -> IO r) -> IO r #

type Raw (UniquePtr tp1) Source # 
Instance details

Defined in STD.UniquePtr.Template

type Raw (UniquePtr tp1) = RawUniquePtr tp1

class IUniquePtr tp1 where Source #

Methods

newUniquePtr0 :: IO (UniquePtr tp1) Source #

newUniquePtr :: tp1 -> IO (UniquePtr tp1) Source #

get :: UniquePtr tp1 -> IO tp1 Source #

release :: UniquePtr tp1 -> IO tp1 Source #

reset :: UniquePtr tp1 -> IO () Source #

deleteUniquePtr :: UniquePtr tp1 -> IO () Source #