#include "Signature.h"

ACE_RCSID(src, Signature, "$Id: Signature.cpp 80826 2008-03-04 14:51:23Z wotte $")

//-----------------------------------------------------------------------------

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;
}

