#include <OTC/refcnt/count.hh> class OTC_Count : public OTC_MPObject {
public:
static os_typespec* get_os_typespec();
~OTC_Count();
inline OTC_Count();
inline OTC_Count(OTC_Count const& theCtr);
inline OTC_Count& operator=(OTC_Count const& theCtr);
inline void inc();
inline void dec();
inline void set(u_int theCount);
inline u_int count() const;
};
OTC_Count
contains an integer count. It has a lower
bound of 0
and an upper bound of the largest number which
can be held in a u_int
. When created, the count is set
to the lower bound of 0
.
inline OTC_Count();
0
.
inline OTC_Count(OTC_Count const& theCtr);
theCtr
.
inline OTC_Count& operator=(OTC_Count const& theCtr);
theCtr
.
inline void inc();
inline void dec();
0
, the
value is unchanged.
inline void set(u_int theCount);
theCount
.
inline u_int count() const;
0
.