hoppy-std-0.1.0: C++ FFI generator - Standard library bindings

Safe HaskellNone
LanguageHaskell2010

Foreign.Hoppy.Generator.Std.Pair

Description

Bindings for std::pair.

Synopsis

Documentation

data Options Source

Options for instantiating pair.

Constructors

Options 

Fields

optPairClassFeatures :: [ClassFeature]

Additional features to add to the std::pair class. Pairs are always Assignable and Copyable.

defaultOptions :: Options Source

The default options have no additional ClassFeatures.

data Contents Source

A set of instantiated pair classes.

Constructors

Contents 

Fields

c_pair :: Class
std::pair<A, B>

instantiate :: String -> Type -> Type -> Reqs -> Contents Source

instantiate className a b reqs creates a set of bindings for an instantiation of std::pair<a, b>. In the result, the c_pair class has an external name of className.

instantiate' :: String -> Type -> Type -> Reqs -> Options -> Contents Source

instantiate with additional options.

toExports :: Contents -> [Export] Source

Converts an instantiation into a list of exports to be included in a module.