repo.or.cz
/
ACE_TAO.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git]
/
ACE
/
apps
/
soreduce
/
Signature.cpp
blob
94063127e4e05b2de81d9c70031b6beebf41788d
1
#include
"Signature.h"
2
3
Signature
::
Signature
(
const
ACE_CString
&
name
)
4
:
name_
(
name
),
5
ref_count_
(
1
),
6
used_
(
0
)
7
{
8
}
9
10
void
11
Signature
::
used
()
12
{
13
used_
++;
14
}
15
16
int
17
Signature
::
used_count
()
const
18
{
19
return
used_
;
20
}
21
22
const
ACE_CString
&
23
Signature
::
name
()
const
24
{
25
return
name_
;
26
}
27
28
Signature
*
29
Signature
::
dup
()
30
{
31
ref_count_
++;
32
return this
;
33
}
34
35
void
36
Signature
::
release
()
37
{
38
if
(--
ref_count_
==
0
)
39
delete this
;
40
}
41