Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get the list of methods of a class

Tags:

c++

Is there a way to create a list (e.g. an array) of pointers to each method of a C++ class?

Something like Type.GetMethods() in the .NET framework, but using only standard C++.

like image 228
Federico klez Culloca Avatar asked Aug 19 '10 21:08

Federico klez Culloca


1 Answers

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++

like image 79
JaredPar Avatar answered Sep 30 '22 01:09

JaredPar