Resource.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
// Copyright (c) 1994 James Clark
// See the file COPYING for copying permission.
#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef Resource_INCLUDED
#define Resource_INCLUDED 1
#ifdef SP_NAMESPACE
#endif
Resource();
int unref(); // return 1 if it should be deleted
void ref();
int count() const;
int count_;
};
inline
: count_(0)
{
}
inline
: count_(0)
{
}
inline
{
return count_;
}
inline
{
return --count_ <= 0;
}
inline
{
++count_;
}
#ifdef SP_NAMESPACE
}
#endif
#endif /* not Resource_INCLUDED */