genesis-3d_engine/Engine/foundation/jobs/tp/tpjobslice.h
zhongdaohuan 6e8fbca745 genesis-3d engine version 1.3.
match the genesis editor version 1.3.0.653.
2014-05-05 14:50:33 +08:00

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
//------------------------------------------------------------------------------