The title, likely doesn't do much justice to what my question is, and i'll try to be as a descriptive as I possibly can be.
My issue, is not more on misunderstanding Smart Pointers, but rather, a small glitch in trying to get my head around them. I know smart pointers are used for dynamically creating objects, and that they manage the destruction of these objects, and keep a reference to them using reference counting. But, what I struggle to understand is when I should use these, should I, for example use the std::tr1::shared_ponter<>, for everything.. or just large game sub-systems that need to be referenced by other systems in my game? Such as my graphics rendering system that will need to be used by other parts of my game.. or scene management, etc.. (These are just examples).
Also, where do weak pointers fit into this, when should a weak pointer be used instead of a shared pointer?
I hope my question makes sense, i'll try to clarify anything that doesn't.
Regards
and thanks.
- Viewing Profile: Topics: thedevsykes
Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics
About Me
Hello, and welcome to my GameDev.net profile. My name is Rob, but I prefer to go by the alias of "THE ARK", which has no meaning.
I have been a gamer since as long as I can remember, my first console was a Sega Saturn, which I remember at a young age playing, as time grew on I was introduced to more gaming platforms, but it wasn't until late in my teens when I was introduced to PC gaming and Programming.
I've been programming games for around 2 and a Half Years now, I first learnt to create text based games in PHP, and thus gained alot of experience in web development. I moved into C++ pretty quickly after that and have since gained experience in Java/C# aswell. I'm a very fast learner, and have been self taught in most aspects of game development up until now.
I have a Level 3 Diploma in Games Design and Development in which I achieved overall (DDD* = AAA*), and will be studying Bsc in Computer Games Programming Honors at University this September, so it should be exciting times.
I'm here to learn, advance my knowledge and share what I know. I hope to make alot of friends, and persue my career as a game developer. So hook me a message any time, i'm quite a friendly individual.
I have been a gamer since as long as I can remember, my first console was a Sega Saturn, which I remember at a young age playing, as time grew on I was introduced to more gaming platforms, but it wasn't until late in my teens when I was introduced to PC gaming and Programming.
I've been programming games for around 2 and a Half Years now, I first learnt to create text based games in PHP, and thus gained alot of experience in web development. I moved into C++ pretty quickly after that and have since gained experience in Java/C# aswell. I'm a very fast learner, and have been self taught in most aspects of game development up until now.
I have a Level 3 Diploma in Games Design and Development in which I achieved overall (DDD* = AAA*), and will be studying Bsc in Computer Games Programming Honors at University this September, so it should be exciting times.
I'm here to learn, advance my knowledge and share what I know. I hope to make alot of friends, and persue my career as a game developer. So hook me a message any time, i'm quite a friendly individual.
Community Stats
- Group Members
- Active Posts 23
- Profile Views 926
- Member Title Member
- Age 21 years old
- Birthday December 1, 1991
-
Gender
Male
-
Location
West Yorkshire / UK
-
Interests
Gaming, obviously. Studying Computer Science and Mathematics, Linear Algebra all the important stuff. Computer Games Programming, and Tools Development. Generally just enjoying what computers can do and offer, but also getting out, socialising, I'm becoming a pretty avid fan of Airsoft, so lets see how that plays out...
336
Good
User Tools
Contacts
thedevsykes hasn't added any contacts yet.
Latest Visitors
Topics I've Started
Understanding the concept of Smart Pointers
04 November 2012 - 11:40 AM
- Home
- » Viewing Profile: Topics: thedevsykes

Find content