Get the list of methods of a class

No this is not possible in a general way. C++ does not have the same metadata infrastructure that .Net posses.

Could you provide us with a scenario where you want to use this information? There may be a better approach you can use with C++


There is no way.

In fact, even at the object code level, a static class member function cannot be distinguished from a stand-alone function, nor a class instance function from a stand-alone function passing a pointer to an object.

If you know your compilers name-mangling scheme, and had access to the pre-linked object code, you might be able to decode it, but that's a lot of work for iffy results.


Make a copy of the .h file and hack away with it in an editor.

No, there's no way to do it automatically.

Tags:

C++