Scheduled dispatch: Mark read accessers as const
This commit is contained in:
@@ -728,7 +728,7 @@ public:
|
||||
* Get the vector of all scheduled dispatch slot
|
||||
* @return first scheduled dispatch
|
||||
*/
|
||||
inline const std::vector<uint32> &GetScheduledDispatch() { return this->scheduled_dispatch; }
|
||||
inline const std::vector<uint32> &GetScheduledDispatch() const { return this->scheduled_dispatch; }
|
||||
|
||||
void AddScheduledDispatch(uint32 offset);
|
||||
void RemoveScheduledDispatch(uint32 offset);
|
||||
@@ -745,7 +745,7 @@ public:
|
||||
* Get the scheduled dispatch duration, in scaled tick
|
||||
* @return scheduled dispatch duration
|
||||
*/
|
||||
inline uint32 GetScheduledDispatchDuration() { return this->scheduled_dispatch_duration; }
|
||||
inline uint32 GetScheduledDispatchDuration() const { return this->scheduled_dispatch_duration; }
|
||||
|
||||
/**
|
||||
* Set the scheduled dispatch start
|
||||
@@ -762,13 +762,13 @@ public:
|
||||
* Get the scheduled dispatch start date, in absolute scaled tick
|
||||
* @return scheduled dispatch start date
|
||||
*/
|
||||
inline DateTicksScaled GetScheduledDispatchStartTick() { return SchdispatchConvertToScaledTick(this->scheduled_dispatch_start_date, this->scheduled_dispatch_start_full_date_fract); }
|
||||
inline DateTicksScaled GetScheduledDispatchStartTick() const { return SchdispatchConvertToScaledTick(this->scheduled_dispatch_start_date, this->scheduled_dispatch_start_full_date_fract); }
|
||||
|
||||
/**
|
||||
* Whether the scheduled dispatch setting is valid
|
||||
* @return scheduled dispatch start date fraction
|
||||
*/
|
||||
inline bool IsScheduledDispatchValid() { return this->scheduled_dispatch_start_date >= 0 && this->scheduled_dispatch_duration > 0; }
|
||||
inline bool IsScheduledDispatchValid() const { return this->scheduled_dispatch_start_date >= 0 && this->scheduled_dispatch_duration > 0; }
|
||||
|
||||
/**
|
||||
* Set the scheduled dispatch last dispatch offset, in scaled tick
|
||||
@@ -780,7 +780,7 @@ public:
|
||||
* Get the scheduled dispatch last dispatch offset, in scaled tick
|
||||
* @return scheduled dispatch last dispatch
|
||||
*/
|
||||
inline int32 GetScheduledDispatchLastDispatch() { return this->scheduled_dispatch_last_dispatch; }
|
||||
inline int32 GetScheduledDispatchLastDispatch() const { return this->scheduled_dispatch_last_dispatch; }
|
||||
|
||||
/**
|
||||
* Set the scheduled dispatch maximum allowed delay, in scaled tick
|
||||
@@ -792,7 +792,7 @@ public:
|
||||
* Get the scheduled dispatch maximum alowed delay, in scaled tick
|
||||
* @return scheduled dispatch last dispatch
|
||||
*/
|
||||
inline int32 GetScheduledDispatchDelay() { return this->scheduled_dispatch_max_delay; }
|
||||
inline int32 GetScheduledDispatchDelay() const { return this->scheduled_dispatch_max_delay; }
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user