Counter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00012 #ifndef ZYPP_BASE_COUNTER_H
00013 #define ZYPP_BASE_COUNTER_H
00014
00015 #include <iosfwd>
00016
00018 namespace zypp
00019 {
00020
00022
00023
00024
00027 template<class _IntT>
00028 class Counter
00029 {
00030 public:
00031 Counter( _IntT value_r = _IntT(0) )
00032 : _value( _IntT( value_r ) )
00033 {}
00034
00035 operator _IntT &()
00036 { return _value; }
00037
00038 operator const _IntT &() const
00039 { return _value; }
00040
00041 public:
00042 _IntT _value;
00043 };
00045
00047 }
00049 #endif // ZYPP_BASE_COUNTER_H