change: change code style to Linux style except indent.
This commit is contained in:
@@ -25,45 +25,49 @@
|
||||
|
||||
#include "common/jobtime.h"
|
||||
|
||||
namespace olive {
|
||||
namespace olive
|
||||
{
|
||||
|
||||
using namespace core;
|
||||
|
||||
class RenderJobTracker
|
||||
{
|
||||
class RenderJobTracker {
|
||||
public:
|
||||
RenderJobTracker() = default;
|
||||
RenderJobTracker() = default;
|
||||
|
||||
void insert(const TimeRange &range, JobTime job_time);
|
||||
void insert(const TimeRangeList &ranges, JobTime job_time);
|
||||
void insert(const TimeRange &range, JobTime job_time);
|
||||
void insert(const TimeRangeList &ranges, JobTime job_time);
|
||||
|
||||
void clear();
|
||||
void clear();
|
||||
|
||||
bool isCurrent(const rational &time, JobTime job_time) const;
|
||||
bool isCurrent(const rational &time, JobTime job_time) const;
|
||||
|
||||
TimeRangeList getCurrentSubRanges(const TimeRange &range, const JobTime &job_time) const;
|
||||
TimeRangeList getCurrentSubRanges(const TimeRange &range,
|
||||
const JobTime &job_time) const;
|
||||
|
||||
private:
|
||||
class TimeRangeWithJob : public TimeRange
|
||||
{
|
||||
public:
|
||||
TimeRangeWithJob() = default;
|
||||
TimeRangeWithJob(const TimeRange &range, const JobTime &job_time)
|
||||
{
|
||||
set_range(range.in(), range.out());
|
||||
job_time_ = job_time;
|
||||
}
|
||||
class TimeRangeWithJob : public TimeRange {
|
||||
public:
|
||||
TimeRangeWithJob() = default;
|
||||
TimeRangeWithJob(const TimeRange &range, const JobTime &job_time)
|
||||
{
|
||||
set_range(range.in(), range.out());
|
||||
job_time_ = job_time;
|
||||
}
|
||||
|
||||
JobTime GetJobTime() const {return job_time_;}
|
||||
void SetJobTime(JobTime jt) {job_time_ = jt;}
|
||||
JobTime GetJobTime() const
|
||||
{
|
||||
return job_time_;
|
||||
}
|
||||
void SetJobTime(JobTime jt)
|
||||
{
|
||||
job_time_ = jt;
|
||||
}
|
||||
|
||||
private:
|
||||
JobTime job_time_;
|
||||
|
||||
};
|
||||
|
||||
std::vector<TimeRangeWithJob> jobs_;
|
||||
private:
|
||||
JobTime job_time_;
|
||||
};
|
||||
|
||||
std::vector<TimeRangeWithJob> jobs_;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user