OpenTTD Source 20261112-master-gbcbec5e63f
DemandHandler Class Reference

Stateless, thread safe demand handler. More...

#include <demands.h>

Inheritance diagram for DemandHandler:
ComponentHandler

Public Member Functions

void Run (LinkGraphJob &job) const override
 Call the demand calculator on the given component.
 ~DemandHandler () override=default
 Virtual destructor has to be defined because of virtual Run().
Public Member Functions inherited from ComponentHandler
virtual ~ComponentHandler ()=default
 Ensure the destructor of the sub classes are called as well.

Detailed Description

Stateless, thread safe demand handler.

Doesn't do anything but call DemandCalculator.

Definition at line 36 of file demands.h.

Member Function Documentation

◆ Run()

void DemandHandler::Run ( LinkGraphJob & job) const
inlineoverridevirtual

Call the demand calculator on the given component.

Parameters
jobComponent to calculate the demands for.

Implements ComponentHandler.

Definition at line 43 of file demands.h.


The documentation for this class was generated from the following file: