MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / get_class_names

Function get_class_names

Source/Misc/luabind/src/class_info.cpp:105–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 }
104
105 LUABIND_API object get_class_names(lua_State* L)
106 {
107 detail::class_registry* reg = detail::class_registry::get_registry(L);
108
109 std::map<type_id, detail::class_rep*> const& classes = reg->get_classes();
110
111 object result = newtable(L);
112 std::size_t index = 1;
113
114 for (std::map<type_id, detail::class_rep*>::const_iterator iter = classes.begin();
115 iter != classes.end(); ++iter)
116 {
117 result[index++] = iter->second->name();
118 }
119
120 return result;
121 }
122
123 LUABIND_API void bind_class_info(lua_State* L)
124 {

Callers

nothing calls this directly

Calls 4

newtableFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected