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

Safe HaskellNone
LanguageHaskell2010

Foreign.Hoppy.Generator.Std.List

Description

Bindings for std::list.

Synopsis

Documentation

data Options Source

Options for instantiating the list classes.

Constructors

Options 

Fields

optListClassFeatures :: [ClassFeature]

Additional features to add to the std::list class. Lists are always Assignable and Copyable, but you may want to add Equatable and Comparable if your value type supports those.

optValueConversion :: Maybe ValueConversion
 

defaultOptions :: Options Source

The default options have no additional ClassFeatures.

data Contents Source

A set of instantiated list classes.

Constructors

Contents 

Fields

c_list :: Class
std::list<T>
c_iterator :: Class
std::list<T>::iterator
c_constIterator :: Class
std::list<T>::const_iterator

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

instantiate className t tReqs creates a set of bindings for an instantiation of std::list and associated types (e.g. iterators). In the result, the c_list class has an external name of className, and the iterator classes are further suffixed with "Iterator" and "ConstIterator" respectively.

instantiate' :: String -> 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.