Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / ACE / apps / soreduce / Signature.cpp
blob94063127e4e05b2de81d9c70031b6beebf41788d
1 #include "Signature.h"
3 Signature::Signature (const ACE_CString &name)
4 :name_(name),
5 ref_count_ (1),
6 used_ (0)
10 void
11 Signature::used ()
13 used_++;
16 int
17 Signature::used_count() const
19 return used_;
22 const ACE_CString &
23 Signature::name() const
25 return name_;
28 Signature *
29 Signature::dup()
31 ref_count_++;
32 return this;
35 void
36 Signature::release()
38 if (--ref_count_ == 0)
39 delete this;