<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>Loki: Loki::FollowIntoDeath Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.8 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="main.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li> <form action="search.php" method="get"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td><label> <u>S</u>earch for </label></td> <td><input type="text" name="query" value="" size="20" accesskey="s"/></td> </tr> </table> </form> </li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="a00192.html">Loki</a>::<a class="el" href="a00057.html">FollowIntoDeath</a> </div> </div> <div class="contents"> <h1>Loki::FollowIntoDeath Class Reference<br> <small> [<a class="el" href="a00214.html">Lifetime policies</a>]</small> </h1><!-- doxytag: class="Loki::FollowIntoDeath" --><code>#include <Singleton.h></code> <p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Classes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="a00058.html">AfterMaster</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="a00060.html">With</a></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Lifetime policyfor the <a class="el" href="a00124.html">SingletonHolder</a> tempalte. Followers will die after the master dies Followers will not die, if<ul> <li>master never dies (<a class="el" href="a00089.html">NoDestroy</a> policy)</li><li>master never created</li><li>master dies not in the function registered with atexit</li><li>master dies not by a call of a the atexit registerd function (<a class="el" href="a00039.html#626c2dc57146f1aea6bf911682f8e3e9" title="delete singleton object manually">DeletableSingleton::GracefulDelete</a>)</li></ul> <p> <dl class="user" compact><dt><b>Usage:</b></dt><dd></dd></dl> Lifetimes of the master and the follower singletons, e.g. with a M and a F class: <div class="fragment"><pre class="fragment"> SingletonHolder< M , FollowIntoDeath::With<DefaultLifetime>::AsMasterLifetime > MasterSingleton; </pre></div> <div class="fragment"><pre class="fragment"> SingletonHolder< F , CreateUsingNew, FollowIntoDeath::AfterMaster< MasterSingleton >::IsDestroyed > FollowerSingleton </pre></div> <hr>The documentation for this class was generated from the following file:<ul> <li>Singleton.h</ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 29 18:51:44 2009 for Loki by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> </body> </html>