/usr/include/osl/progress/progress16.h is in libosl-dev 0.6.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | /* progress16.h
*/
#ifndef PROGRESS_PROGRESS16_H
#define PROGRESS_PROGRESS16_H
#include <cassert>
namespace osl
{
namespace progress
{
/**
* 0-15 の進行度を表現
*/
class Progress16
{
int progress16;
public:
explicit Progress16(int value=0) : progress16(value)
{
assert(isValid());
}
int value() const { return progress16; }
bool isValid() const {
return (progress16 >= 0) && (progress16 < 16);
}
};
inline bool operator==(Progress16 l, Progress16 r)
{
return l.value() == r.value();
}
inline bool operator!=(Progress16 l, Progress16 r)
{
return ! (l == r);
}
inline bool operator<(Progress16 l, Progress16 r)
{
return l.value() < r.value();
}
} // namespace progress
using progress::Progress16;
} // namespace osl
#endif /* PROGRESS_PROGRESS16_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; coding:utf-8
// ;;; End:
|