Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
projects:singleton_template [2015/12/21] – [History] terenceprojects:singleton_template [2016/07/05] (current) – July 5, 2016 terence
Line 37: Line 37:
  
 <code c++> <code c++>
-#include "singleton.h"+#include "tSingleton.h"
 </code> </code>
  
   * Create your own singleton class, ensuring that:   * Create your own singleton class, ensuring that:
  
-  - You inherit from **''tjgrant::singleton<MyClass>''**, where **''MyClass''** is the name of your class+  - You inherit from **''tSingleton<MyClass>''**, where **''MyClass''** is the name of your class
   - Your **constructor**'s access method is **''protected''**   - Your **constructor**'s access method is **''protected''**
   - Your **destructor** is **''virtual''**   - Your **destructor** is **''virtual''**
Line 49: Line 49:
 <code c++> <code c++>
 class MyClass class MyClass
-: public tjgrant::singleton<MyClass>+: public tSingleton<MyClass>
 { {
 protected: protected:
Line 62: Line 62:
     //Methods go here     //Methods go here
  
-    friend class tjgrant::singleton<MyClass>;+    friend class tSingleton<MyClass>;
 }; };
 </code> </code>
Line 109: Line 109:
 class MyClass class MyClass
 : public MyBase, : public MyBase,
-  public tjgrant::singleton<MyClass>+  public tSingleton<MyClass>
 </code> </code>
  
Line 122: Line 122:
 If you've found this project useful, [[:donate|please donate today!]] :-) If you've found this project useful, [[:donate|please donate today!]] :-)
 ===== History ===== ===== History =====
 +
 +**July 5, 2016**
 +
 +  * Removed the namespace, renamed class from "singleton" to "tSingleton" like it originally was
  
 **December 21, 2015** **December 21, 2015**
  
   * Added GitHub link to download section   * Added GitHub link to download section
 +  * First public release
  
 **November 15, 2015** **November 15, 2015**
  
-  * First public release +  * Created project page
Print/export
QR Code
QR Code Singleton Template (C++) (generated for current page)