26 #ifndef __TERRALIB_COMMON_INTERNAL_SINGLETON_H
27 #define __TERRALIB_COMMON_INTERNAL_SINGLETON_H
33 #include <boost/noncopyable.hpp>
100 template<
class T>
class Singleton :
public boost::noncopyable
128 static T m_singleton;
Template support for singleton pattern.
Singleton & operator=(const Singleton &other)
virtual ~Singleton()
This will avoid clients trying to release pointers to base class.
Singleton(const Singleton &other)
Singleton()
The singleton constructor is protected.
static T & getInstance()
It returns a reference to the singleton instance.
Proxy configuration file for TerraView (see terraview_config.h).