473,326 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

class <name>;

I came across this line in a lib I am studing, it simply has
class cSceneNode;
all by itself. what is that line doing? I am used to seeing a
declaration: MyClass test;
or definition: class MyClass{ public: foo();};
but never just: class <name>;

Thanx,
Christopher
Jul 22 '05 #1
3 1833
Christopher wrote:
I came across this line in a lib I am studing, it simply has
class cSceneNode;
all by itself. what is that line doing? I am used to seeing a
declaration: MyClass test;
or definition: class MyClass{ public: foo();};
but never just: class <name>;

Thanx,
Christopher

this is a forward declaration ; this is used for example when A uses a B
and B uses an A ...
this just means that the implementation of this class is somewhere else,
but you can use it.
Jul 22 '05 #2
Christopher wrote:

I came across this line in a lib I am studing, it simply has
class cSceneNode;
all by itself. what is that line doing? I am used to seeing a
declaration: MyClass test;
or definition: class MyClass{ public: foo();};
but never just: class <name>;

Just the FAQs, Jack.
http://www.parashift.com/c++-faq-lit...html#faq-38.11


Brian Rodenborn
Jul 22 '05 #3
Christopher wrote:
I came across this line in a lib I am studing, it simply has
class cSceneNode;
all by itself. what is that line doing?
It (forward-)declares a class.
I am used to seeing a
declaration: MyClass test;
That's a definition. It defines an object of class MyClass.
or definition: class MyClass{ public: foo();};
That defines a class.
but never just: class <name>;


That declares a class.
Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: SteveK | last post by:
I'm getting the error: "Cannot implicitly convert type 'MovesDBMigrate.MotionNameElementTypes' to 'int'" for this line of code: m_nameElementTableNames = "Tbl_NameCharacters"; Of course if...
0
by: Doug | last post by:
I got this as soon as I installed Vis Studio 2003, which either requires different permissions to inetpub\wwwroot or changed them during installation. I couldn't open an existing solution or...
3
by: noreponse1 | last post by:
Hello, I have a solution that contains two projects. I have 2 dlls that these projects use. Here's how it's set up: Solution -ProjectA --References ---DLLA -ProjectB
1
by: MAILTONRK | last post by:
Hi, I am a Mainframe guy. I am working with MS access(maintaining a application) for the last 2 weeks. I had one master database and four replicas. One of my replica had trouble in...
0
by: sphinney | last post by:
I have a complex Access 2002 database with multimple tables, queries, forms, and reports. The database is used by miltiple users that have one of four different levels of security. The databae uses...
1
by: inteladu | last post by:
I have created an object TF_T.....and I seem to be stuck at this error....please need some suggestions to overcome this.....please....very very urgent!!! thanks!!!
3
by: MLH | last post by:
The specified file is currently being used by another user or session. Wait for the other user or session to finish working with the file, and then try the operation again. So, I've got db1.mdb...
4
by: Tex08 | last post by:
I did it again... after trashing the old code and trying to start simple, I receive the following error at compile (with g++, required)" g++ main.cc Undefined first...
4
by: smadadi | last post by:
When iam trying to save changes to some of the reports i am getting the error message as 'Couldn't save currently locked by user admin on machine <name>' happening with only some of the reports not...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.