Loki::FollowIntoDeath Class Reference
[Lifetime policies]

#include <Singleton.h>


struct  AfterMaster
struct  With

Detailed Description

Lifetime policyfor the SingletonHolder tempalte. Followers will die after the master dies Followers will not die, if

Lifetimes of the master and the follower singletons, e.g. with a M and a F class:
 SingletonHolder< M , FollowIntoDeath::With<DefaultLifetime>::AsMasterLifetime > MasterSingleton; 
 SingletonHolder< F , CreateUsingNew, FollowIntoDeath::AfterMaster< MasterSingleton >::IsDestroyed > FollowerSingleton 

Definition at line 606 of file Singleton.h.

The documentation for this class was generated from the following file:
Generated on Sun Feb 25 16:52:46 2007 for Loki by  doxygen 1.5.1-p1