/usr/include/osl/progress/progress32.h is in libosl-dev 0.6.0-3.1.
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 | /* progress32.h
*/
#ifndef PROGRESS_PROGRESS32_H
#define PROGRESS_PROGRESS32_H
#include <cassert>
namespace osl
{
namespace progress
{
/**
* 0-31 の進行度を表現
*/
class Progress32
{
int progress32;
public:
explicit Progress32(int value) : progress32(value)
{
assert(isValid());
}
int value() const { return progress32; }
bool isValid() const {
return (progress32 >= 0) && (progress32 < 32);
}
};
inline bool operator==(Progress32 l, Progress32 r)
{
return l.value() == r.value();
}
inline bool operator!=(Progress32 l, Progress32 r)
{
return ! (l == r);
}
inline bool operator<(Progress32 l, Progress32 r)
{
return l.value() < r.value();
}
} // namespace progress
using progress::Progress32;
} // namespace osl
#endif /* PROGRESS_PROGRESS32_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
|