/* * Copyright 2009-2010, Andrea Anzani. All rights reserved. * Copyright 2009-2010, Pier Luigi Fiorini. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * Andrea Anzani, andrea.anzani@gmail.com * Pier Luigi Fiorini, pierluigi.fiorini@gmail.com */ #include "Singleton.h" template T* Singleton::fInstance = 0; template Singleton::Singleton() { } template T* Singleton::Get() { if (!fInstance) fInstance = new T(); return fInstance; }