Is this a data type?

In my class called GameEgnine it has:

GameEngine* m_pGameEngine;

Is "GameEngine*" a data type? Which is a pointer to the class?
GameEngine* is a pointer to GameEngine
is the class declaration like this?
1
2
3
4
5
6
7
8
class GameEngine
{
private:
    GameEngine* m_pGameEngine;
    //other private members
public:
    //other declarations
};

m=member, p=pointer -> Hungarian notation.
Yes. Do we still refer to pointers as variables, or are they there own things?
They are variables, of course. The same rules that apply to variables apply to pointers as well.
Topic archived. No new replies allowed.