Logo  0.95.0-final
Finite Element Embedded Library and Language in C++
Feel++ Feel++ on Github Feel++ community
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Feel::Singleton< T > Class Template Reference

#include <singleton.hpp>

Detailed Description

template<typename T>
class Feel::Singleton< T >

implement the Singleton pattern

A Singleton pattern implementation using the ideas from Alexandrescu's book "modern C++ design" http://www.moderncppdesign.com/

Author
Christophe Prud'homme chris.nosp@m.toph.nosp@m.e.pru.nosp@m.dhom.nosp@m.me@fe.nosp@m.elpp.nosp@m..org

Public Types

typedef PolicyCreationUsingNew
< singleton_type > 
creation_policy
 
typedef PolicyFeelTimeDefault
< singleton_type > 
feeltime_policy
 
typedef T singleton_type
 

Static Public Member Functions

static singleton_type & instance ()
 

Member Function Documentation

template<class T >
T & Feel::Singleton< T >::instance ( )
inlinestatic

return the instance of the singleton


The documentation for this class was generated from the following file:

Generated on Sun Oct 20 2013 08:25:09 for Feel++ by doxygen 1.8.4