-
January 14th, 2004, 01:42 PM
#1
What is this ?
>
Thanks and Regards
homestead
-
January 14th, 2004, 02:39 PM
#2
A larger-then-sign
-
January 14th, 2004, 02:49 PM
#3
A larger-than sign actually.
All the buzzt
CornedBee
-
January 14th, 2004, 02:50 PM
#4
oops, typo ...
-
January 14th, 2004, 04:56 PM
#5
'larger-than'? uh....
> Greater-Than
< Less-Than
>= Greater-Than-Or-Equal-To
<= Less-Than-Or-Equal-To
I'm sure they can be overloaded, so if you seen it somewhere and you don't know why, it may not neccessarily mean what I just said.
-
January 14th, 2004, 07:33 PM
#6
I am really sorry for not reading my post again. I didnt know that because VB code changed when directly writing I meant that gt...
Really sorry, I know it is an easy question to you, so please help...
Thanks a lot,
Regards,
Fiona
-
January 14th, 2004, 07:46 PM
#7
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.
-
January 14th, 2004, 10:23 PM
#8
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...
Regards,
homestead
-
January 14th, 2004, 10:37 PM
#9
PHP Code:
class MyClassImpl;
class MyClass
{
public:
int Method1();
// Public methods, etc.
private:
MyClassImpl* pimpl;
};
// MyClass.cpp
#include "MyClassImpl.h"
MyClass::MyClass : pimpl(new MyClassImpl)
{
}
int MyClass::Method1()
{
return pimpl->Method1();
}
it was used without even declaration ?
-
January 14th, 2004, 11:31 PM
#10
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 11:34 PM.
-
January 15th, 2004, 04:54 AM
#11
I am sorry I didnt know that
I mean pimpl->Method1();. I just went there, copied and pasted it here.
Thanks Kheun very much for your explanation,
Regards,
Fiona
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|