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

STD.Pair.Template

Documentation

data RawPair tp1 tp2 Source #

Instances

Instances details
Castable (Pair tp1 tp2) (Ptr (RawPair tp1 tp2)) Source # 
Instance details

Defined in STD.Pair.Template

Methods

cast :: Pair tp1 tp2 -> (Ptr (RawPair tp1 tp2) -> IO r) -> IO r #

uncast :: Ptr (RawPair tp1 tp2) -> (Pair tp1 tp2 -> IO r) -> IO r #

newtype Pair tp1 tp2 Source #

Constructors

Pair (Ptr (RawPair tp1 tp2)) 

Instances

Instances details
FPtr (Pair tp1 tp2) Source # 
Instance details

Defined in STD.Pair.Template

Associated Types

type Raw (Pair tp1 tp2) #

Methods

get_fptr :: Pair tp1 tp2 -> Ptr (Raw (Pair tp1 tp2)) #

cast_fptr_to_obj :: Ptr (Raw (Pair tp1 tp2)) -> Pair tp1 tp2 #

Castable (Pair tp1 tp2) (Ptr (RawPair tp1 tp2)) Source # 
Instance details

Defined in STD.Pair.Template

Methods

cast :: Pair tp1 tp2 -> (Ptr (RawPair tp1 tp2) -> IO r) -> IO r #

uncast :: Ptr (RawPair tp1 tp2) -> (Pair tp1 tp2 -> IO r) -> IO r #

type Raw (Pair tp1 tp2) Source # 
Instance details

Defined in STD.Pair.Template

type Raw (Pair tp1 tp2) = RawPair tp1 tp2

class IPair tp1 tp2 where Source #

Methods

newPair :: tp1 -> tp2 -> IO (Pair tp1 tp2) Source #

deletePair :: Pair tp1 tp2 -> IO () Source #

first_get :: Pair tp1 tp2 -> IO tp1 Source #

first_set :: Pair tp1 tp2 -> tp1 -> IO () Source #

second_get :: Pair tp1 tp2 -> IO tp2 Source #

second_set :: Pair tp1 tp2 -> tp2 -> IO () Source #