Util--
1.1
utilmm
singleton
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
utilmm::singleton::use
Access point to singleton.
Definition:
use.hh:30
utilmm::singleton::use::instance
Ty & instance() const
Access to singleton.
utilmm::singleton::use::use
use()
Constructor.
utilmm::singleton::use::operator->
Ty * operator->() const
Access to singleton.
utilmm
Definition:
auto_flag.hh:6
utilmm::singleton::use::operator*
Ty & operator*() const
Access to singleton.
utilmm::singleton::use::~use
~use()
Destructor.
Generated on Wed Oct 17 2018 09:34:19 for Util-- by
1.8.13