Rice  1.5.2
 All Classes Files Functions Variables Typedefs Friends Pages
Rice::Constructor< T, ArgTypes, > Class Template Reference

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

#include <Constructor.hpp>

Detailed Description

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

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.

Examples:
inheritance/animals.cpp, and map/map.cpp.

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