File: ACE_Unmanaged_Singleton.3

package info (click to toggle)
ace 5.2.1-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 26,856 kB
  • ctags: 18,677
  • sloc: cpp: 171,831; makefile: 48,840; sh: 10,192; perl: 8,582; exp: 787; yacc: 387; lex: 140; csh: 20
file content (99 lines) | stat: -rw-r--r-- 3,276 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
.TH ACE_Unmanaged_Singleton 3 "1 Dec 2001" "ACE" \" -*- nroff -*-
.ad l
.nh
.SH NAME
ACE_Unmanaged_Singleton \- Same as , except does _not_ register with  for destruction. 
.SH SYNOPSIS
.br
.PP
\fC#include <Singleton.h>\fR
.PP
Inherits \fBACE_Singleton< TYPE,ACE_LOCK >\fR.
.PP
.SS Static Public Methods

.in +1c
.ti -1c
.RI "TYPE* \fBinstance\fR (void)"
.br
.RI "\fIGlobal access point to the Singleton.\fR"
.ti -1c
.RI "void \fBclose\fR (void)"
.br
.RI "\fIExplicitly delete the Singleton instance.\fR"
.ti -1c
.RI "void \fBdump\fR (void)"
.br
.RI "\fIDump the state of the object.\fR"
.in -1c
.SS Protected Methods

.in +1c
.ti -1c
.RI "\fBACE_Unmanaged_Singleton\fR (void)"
.br
.RI "\fIDefault constructor.\fR"
.in -1c
.SS Static Protected Methods

.in +1c
.ti -1c
.RI "ACE_Unmanaged_Singleton<TYPE, ACE_LOCK>*& \fBinstance_i\fR (void)"
.br
.RI "\fIGet pointer to the Singleton instance.\fR"
.in -1c
.SS Static Protected Attributes

.in +1c
.ti -1c
.RI "ACE_Unmanaged_Singleton<TYPE, ACE_LOCK>* \fBsingleton_\fR"
.br
.RI "\fIPointer to the Singleton (\fBACE_Cleanup\fR) instance.\fR"
.in -1c
.SH DETAILED DESCRIPTION
.PP 

.SS template<class TYPE, class ACE_LOCK>  template class ACE_Unmanaged_Singleton
Same as , except does _not_ register with  for destruction.
.PP
.PP
 This version of  can be used if, for example, its DLL will be unloaded before the  destroys the instance. Unlike with , the application is responsible for explicitly destroying the instance after it is no longer needed (if it wants to avoid memory leaks, at least). The <close> static member function must be used to explicitly destroy the Singleton. Usage is the same as for \fBACE_Singleton\fR, but note that if you you declare a friend, the friend class must still be an *\fBACE_Singleton\fR*<T, [ACE_LOCK]>, not an ACE_Unmanaged_Singleton. 
.PP
.SH CONSTRUCTOR & DESTRUCTOR DOCUMENTATION
.PP 
.SS template<classTYPE, classACE_LOCK> ACE_Unmanaged_Singleton<TYPE, ACE_LOCK>::ACE_Unmanaged_Singleton<TYPE, ACE_LOCK> (void)\fC [protected]\fR
.PP
Default constructor.
.PP
.SH MEMBER FUNCTION DOCUMENTATION
.PP 
.SS template<classTYPE, classACE_LOCK> void ACE_Unmanaged_Singleton<TYPE, ACE_LOCK>::close (void)\fC [static]\fR
.PP
Explicitly delete the Singleton instance.
.PP
.SS template<classTYPE, classACE_LOCK> void ACE_Unmanaged_Singleton<TYPE, ACE_LOCK>::dump (void)\fC [static]\fR
.PP
Dump the state of the object.
.PP
Reimplemented from \fBACE_Singleton\fR.
.SS template<classTYPE, classACE_LOCK> TYPE * ACE_Unmanaged_Singleton<TYPE, ACE_LOCK>::instance (void)\fC [static]\fR
.PP
Global access point to the Singleton.
.PP
Reimplemented from \fBACE_Singleton\fR.
.SS template<classTYPE, classACE_LOCK> ACE_Unmanaged_Singleton< TYPE,ACE_LOCK >*& ACE_Unmanaged_Singleton<TYPE, ACE_LOCK>::instance_i (void)\fC [static, protected]\fR
.PP
Get pointer to the Singleton instance.
.PP
Reimplemented from \fBACE_Singleton\fR.
.SH MEMBER DATA DOCUMENTATION
.PP 
.SS template<classTYPE, classACE_LOCK> ACE_Unmanaged_Singleton< TYPE,ACE_LOCK >* ACE_Unmanaged_Singleton<TYPE, ACE_LOCK>::singleton_\fC [static, protected]\fR
.PP
Pointer to the Singleton (\fBACE_Cleanup\fR) instance.
.PP
Reimplemented from \fBACE_Singleton\fR.

.SH AUTHOR
.PP 
Generated automatically by Doxygen for ACE from the source code.