hmbdc
simplify-high-performance-messaging-programming
List of all members
hmbdc::pattern::SingletonGuardian< Singleton > Class Template Reference

RAII representing the lifespan of the underlying Singleton which also ganrantees the singularity of underlying Singleton. More...

#include <GuardedSingleton.hpp>

Detailed Description

template<typename Singleton>
class hmbdc::pattern::SingletonGuardian< Singleton >

RAII representing the lifespan of the underlying Singleton which also ganrantees the singularity of underlying Singleton.

when the SingletonGuardian is constructored, the underlying Singleton is created; when the SingletonGuardian goes out of scope the dtor of the Singleton is called.

Template Parameters
Singletonthe underlying type, which needs to be derived from GuardedSingleton
Examples:
chat.cpp, client-server-netmap.cpp, hmbdc-log.cpp, mcast-sniff.cpp, ping-pong-mcast.cpp, ping-pong-tcpcast.cpp, rmcast-cp.cpp, and server-cluster.cpp.

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