Skip to main content
GameDev.net gamedev.net
🔒 Locked

Class Speed

Started by Pipo DeClown Dec 26, 2002 at 4:39 PM 1 replies 200+ views
Original Post
Pipo DeClown
Pipo DeClown
I was wondering, if a class contains a class which contains a class..... would that decrease the performance speed? example: class Sentence -> class Word -> class Letter -> class BitmapForLetter .lick
Fruny
Fruny
Not unless you start using convoluted functions to bypass the access restriction you put in place by nesting your types so.


[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.