blob: 94063127e4e05b2de81d9c70031b6beebf41788d (
plain)
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
|
#include "Signature.h"
Signature::Signature (const ACE_CString &name)
:name_(name),
ref_count_ (1),
used_ (0)
{
}
void
Signature::used ()
{
used_++;
}
int
Signature::used_count() const
{
return used_;
}
const ACE_CString &
Signature::name() const
{
return name_;
}
Signature *
Signature::dup()
{
ref_count_++;
return this;
}
void
Signature::release()
{
if (--ref_count_ == 0)
delete this;
}
|