ClassMetatable& addProperty(const char* name, Ret class_type::* mem) { property_map_[name] = FunctorType(mem); return *this; }
PMACC_NO_NVCC_HDWARNING \ HDINLINE void operator()() const \ { \ FunctorType()(); \ NextCall()(); \ } \
//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; }