Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > bfea28f33e7373c31a33dc7387b2a0be > files > 196

loki-lib-doc-0.1.7-2.fc12.noarch.rpm

<!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::SingletonHolder&lt; T, CreationPolicy, LifetimePolicy, ThreadingModel, MutexPolicy &gt; Class Template 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&nbsp;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>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</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&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="a00192.html">Loki</a>::<a class="el" href="a00124.html">SingletonHolder</a>
  </div>
</div>
<div class="contents">
<h1>Loki::SingletonHolder&lt; T, CreationPolicy, LifetimePolicy, ThreadingModel, MutexPolicy &gt; Class Template Reference<br>
<small>
[<a class="el" href="a00212.html">Singleton</a>]</small>
</h1><!-- doxytag: class="Loki::SingletonHolder" --><code>#include &lt;Singleton.h&gt;</code>
<p>

<p>
<a href="a00390.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="90400cb32897f9942958bece12165136"></a><!-- doxytag: member="Loki::SingletonHolder::ObjectType" ref="90400cb32897f9942958bece12165136" args="" -->
typedef T&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00124.html#90400cb32897f9942958bece12165136">ObjectType</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Type of the singleton object. <br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="43e4ea5cb6291a8bb14eb7cdc2bcb7bf"></a><!-- doxytag: member="Loki::SingletonHolder::Instance" ref="43e4ea5cb6291a8bb14eb7cdc2bcb7bf" args="()" -->
static T &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00124.html#43e4ea5cb6291a8bb14eb7cdc2bcb7bf">Instance</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a reference to singleton object. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;typename T, template&lt; class &gt; class CreationPolicy = CreateUsingNew, template&lt; class &gt; class LifetimePolicy = DefaultLifetime, template&lt; class, class &gt; class ThreadingModel = ::Loki::SingleThreaded, class MutexPolicy = ::Loki::Mutex&gt;<br>
 class Loki::SingletonHolder&lt; T, CreationPolicy, LifetimePolicy, ThreadingModel, MutexPolicy &gt;</h3>

Provides <a class="el" href="a00122.html">Singleton</a> amenities for a type T To protect that type from spurious instantiations, you have to protect it yourself.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>CreationPolicy</em>&nbsp;</td><td>Creation policy, default: <a class="el" href="a00033.html">CreateUsingNew</a> </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>LifetimePolicy</em>&nbsp;</td><td>Lifetime policy, default: <a class="el" href="a00037.html">DefaultLifetime</a>, </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>ThreadingModel</em>&nbsp;</td><td>Threading policy, default: LOKI_DEFAULT_THREADING_NO_OBJ_LEVEL </td></tr>
  </table>
</dl>
<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&nbsp;
<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>