I
Immortal Nephi
The programmer uses procedural programming like C style as an example
below.
int Func_Count = 0;
void Run() { Func_Run[Func_Count++](); }
They decide to move to OOP using class. Most OOP programmers never
use pointer to function array. Sometimes, they use switch keyword
instead. Switch may not be good to hold hundreds or thousands of
member functions.
Do you know the example how OOP class can be used with pointer to
function array in different way? Ordinary pointer to function is
faster than pointer to member function.
Please advise.
below.
int Func_Count = 0;
void Run() { Func_Run[Func_Count++](); }
They decide to move to OOP using class. Most OOP programmers never
use pointer to function array. Sometimes, they use switch keyword
instead. Switch may not be good to hold hundreds or thousands of
member functions.
Do you know the example how OOP class can be used with pointer to
function array in different way? Ordinary pointer to function is
faster than pointer to member function.
Please advise.