I did a lot of research on the internet. There are many discussions.
The discussion states that writing class with pointer to member function in
C++ language is the wrong language. Some say to use C language or assembly
language if programmers want high performance for CPU emulator. They need
to make a choice to use switch table or pointer to function table. The
pointer to function table is the fastest performance, but switch table is
little slower.
If I want to use C++ language to write CPU emulator, I am told to use
namespace with data member and function member. The traditional pointer to
function outside of class is faster than pointer to member function inside
class. The object oriental programming is less use if you use namespace.
If I truly want to use class instead of namespace, the option is to use
switch table with member function list inside class.
Can you please advise me which namespace or class is chosen? I did find
out that pointer to member function is rarely used.