In C/C++ context, you are retrieving the address of the variable gt. However, in HTML context, ">" is a representation for '>' character on the browser.
Originally posted by Kheun
In C/C++ context, you are retrieving the address of the variable gt. However, in HTML context, ">" is a representation for '>' character on the browser.
Hopes that I answer your question.
I know I am a newb and my questions are really very newb's, but it s true, I have seen it declared in the #include headers, I dont understand why, so I made questions...
Ah... I think I got what it is trying to do. Actually, my previous reply indirectly answer your question. The code you are displaying, uses the Pimpl idiom where certain implementation of the original class is extracted into a separate implementation class. When we want to invoke a function in the original class, it is usually redirected to invoke the function in the implementation class.
BTW, please don't take it too hard on my previous reply. As many other has pointed out, it usually helps to understand your question if you can show us some codes.
Code:
class MyClassImpl;
class MyClass
{
public:
MyClass();
int Method1();
// Public methods, etc.
private:
MyClassImpl* pimpl;
};
// MyClass.cpp
#include "MyClassImpl.h"
MyClass::MyClass() : pimpl(new MyClassImpl)
{
}
int MyClass::Method1()
{
// Due to some html formatting, you see "pimpl->Method1()".
return pimpl->Method1();
}
Last edited by Kheun; January 14th, 2004 at 10:34 PM.
Bookmarks