Util--  1.1
use.hh
Go to the documentation of this file.
1 /* -*- C++ -*-
2  * $Id: use.hh 957 2005-03-07 16:01:20Z sjoyeux $
3  */
4 #ifndef UTILMM_SINGLETON_USE_HEADER
5 # define UTILMM_SINGLETON_USE_HEADER
6 #include "utilmm/config/config.h"
7 
8 namespace utilmm {
16  namespace singleton {
17 
29  template<typename Ty>
30  struct use {
39  use();
45  use(use const &other);
46 
53  ~use();
54 
59  Ty &instance() const;
60 
64  Ty &operator* () const;
72  Ty *operator->() const;
73  }; // struct utilmm::singleton::use<>
74 
75  } // namespace utilmm::singleton
76 } // namespace utilmm
77 
78 # define IN_UTILMM_SINGLETON_USE_HEADER
79 #include "utilmm/singleton/bits/use.tcc"
80 # undef IN_UTILMM_SINGLETON_USE_HEADER
81 #endif // UTILMM_SINGLETON_USE_HEADER
82 
Access point to singleton.
Definition: use.hh:30
Ty & instance() const
Access to singleton.
use()
Constructor.
Ty * operator->() const
Access to singleton.
Definition: auto_flag.hh:6
Ty & operator*() const
Access to singleton.

Generated on Mon Sep 24 2018 17:06:40 for Util-- by doxygen 1.8.13
SourceForge.net Project Page