C++ Goodies
Reference Counting Smart Pointer
Installation Instructions
Just save it in a common folder of your project. To use it, simply do this - cSmartPtr< type > varNamePtr
To learn more about smart pointers, go to http://www.stridesdev.org/forum/viewtopic.php?t=7
BBLib Collection Template Library
Download BBLib’s Collection Template Implementation
Updates
So sorry if the previous downloads did not work without tweaking. I’ve removed all the unnecessary headers and made it completely standalone. The only thing remains is that you have to define Export prior to using the templates.
Installation Instructions
Just save it in a common folder of your project. To use it, simply include the header file into your codes. All are taken as it is, there is no assumption made for collections.
For cHashMap, you’ll have to supply a class K that has a method getHashValue() and K should not be a pointer or reference type.
As for the rest, just use it as you like. They’re as far as I know, exception safe, leak safe and bug free. For some classes, there are insert and add methods. This simply meant that insertion does it from the head, additional does it from the tail.
Prerequisites
- You’ll need to unzip the collection archive into a “collection” folder”
- Next, let’s say you unzipped into “c:\mySrc\collection”, “c:\mySrc” must be in the additional include path or -I in your build options
- Please define Export manually. For Visual Studio users, you can do so in project settings > C/C++ > Preprocessor > Preprocessor Definitions - Add Export into it. For GCC or others, use -DExport in your make files.
- Use of BBLib Collections require you to use a namespace. For example: using namespace BBLibCollection
Taking note of these pre-requisites will help you through in using the libraries.
- Permalink
- Admin
- 20 Dec 2008 3:32 PM
- Comments (0)