6e8fbca745
match the genesis editor version 1.3.0.653.
57 lines
1.1 KiB
Objective-C
57 lines
1.1 KiB
Objective-C
#pragma once
|
|
//------------------------------------------------------------------------------
|
|
/**
|
|
@class Jobs::TPJobSlice
|
|
|
|
A "mini job" which works on a single job slice.
|
|
|
|
(C) 2009 Radon Labs GmbH
|
|
*/
|
|
#include "core/types.h"
|
|
|
|
//------------------------------------------------------------------------------
|
|
namespace Jobs
|
|
{
|
|
class TPJob;
|
|
|
|
class TPJobSlice
|
|
{
|
|
public:
|
|
/// constructor
|
|
TPJobSlice();
|
|
/// destructor
|
|
~TPJobSlice();
|
|
|
|
/// setup the job slice
|
|
void Setup(TPJob* job, IndexT sliceIndex);
|
|
/// get pointer to job
|
|
TPJob* GetJob() const;
|
|
/// get slice index
|
|
IndexT GetSliceIndex() const;
|
|
|
|
private:
|
|
TPJob* job;
|
|
IndexT sliceIndex;
|
|
};
|
|
|
|
//------------------------------------------------------------------------------
|
|
/**
|
|
*/
|
|
inline TPJob*
|
|
TPJobSlice::GetJob() const
|
|
{
|
|
return this->job;
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
/**
|
|
*/
|
|
inline IndexT
|
|
TPJobSlice::GetSliceIndex() const
|
|
{
|
|
return this->sliceIndex;
|
|
}
|
|
|
|
} // namespace Jobs
|
|
//------------------------------------------------------------------------------
|