OpenTTD Source: src/linkgraph/init.h Source File

OpenTTD Source 15.0-beta1

init.h
Go to the documentation of this file.
1
3#ifndef INIT_H
4#define INIT_H
5
6#include "linkgraphjob_base.h"
7
12 class InitHandler : public ComponentHandler {
13public:
14
19 void Run(LinkGraphJob &job) const override { job.Init(); }
20};
21
22#endif /* INIT_H */
ComponentHandler
A handler doing "something" on a link graph component.
Definition linkgraphschedule.h:21
InitHandler
Stateless, thread safe initialization handler.
Definition init.h:12
InitHandler::Run
void Run(LinkGraphJob &job) const override
Initialize the link graph job.
Definition init.h:19
LinkGraphJob
Class for calculation jobs to be run on link graphs.
Definition linkgraphjob.h:29
LinkGraphJob::Init
void Init()
Initialize the link graph job: Resize nodes and edges and populate them.
Definition linkgraphjob.cpp:182
linkgraphjob_base.h
Some typedefs for component handlers.