OpenTTD/src/linkgraph/init.h

23 lines
454 B
C
Raw Permalink Normal View History

/** @file init.h Declaration of initializing link graph handler. */
#ifndef INIT_H
#define INIT_H
#include "linkgraphjob_base.h"
/**
2019-09-29 22:27:32 +02:00
* Stateless, thread safe initialization handler. Initializes node and edge
* annotations.
*/
class InitHandler : public ComponentHandler {
public:
/**
* Initialize the link graph job.
* @param job Job to be initialized.
*/
void Run(LinkGraphJob &job) const override { job.Init(); }
};
#endif /* INIT_H */