Rice  3.0.0
Static Public Member Functions | List of all members
Rice::Constructor< T, Arg_T > Class Template Reference

Define a Type's Constructor and it's arguments. More...

#include <Constructor.hpp>

Static Public Member Functions

static void construct (Object self, Arg_T... args)
 

Detailed Description

template<typename T, typename ... Arg_T>
class Rice::Constructor< T, Arg_T >

Define a Type's Constructor and it's arguments.

E.g. for the default constructor on a Type:

define_class<Test>()
.define_constructor(Constructor<Test>());

The first template type must be the type being wrapped. Afterwards any extra types must match the appropriate constructor to be used in C++ when constructing the object.

For more information, see Rice::Data_Type::define_constructor.


The documentation for this class was generated from the following file: