示例#1
0
		ClassMetatable& addProperty(const char* name, Ret class_type::* mem)
		{
			property_map_[name] = FunctorType(mem);
			return *this;
		}
示例#2
0
 PMACC_NO_NVCC_HDWARNING                                                    \
 HDINLINE void operator()() const                                           \
 {                                                                          \
     FunctorType()();                                                       \
     NextCall()();                                                          \
 }                                                                          \
示例#3
0
			//variadic arguments constructor(receive const std::vector<LuaRef>&)
	//		template<>ClassMetatable& addConstructor(types::typetag<VariadicArgType>* )
			ClassMetatable& addConstructorVariadicArg()
		{
			typedef typename nativefunction::constructor_signature_type<class_type, VariadicArgType> cons;
			function_map_["new"].push_back(FunctorType(cons()));
			return *this;
		}