(svn r27950) -Merge: Documentation updates from 1.7 branch
[openttd.git] / src / linkgraph / init.h
bloba39a0f8205a9da846df02023ac9b57632da7f0d0
1 /** @file init.h Declaration of initializing link graph handler. */
3 #ifndef INIT_H
4 #define INIT_H
6 #include "linkgraphjob_base.h"
8 /**
9 * Stateless, thread safe initialization hander. Initializes node and edge
10 * annotations.
12 class InitHandler : public ComponentHandler {
13 public:
15 /**
16 * Initialize the link graph job.
17 * @param job Job to be initialized.
19 virtual void Run(LinkGraphJob &job) const { job.Init(); }
21 /**
22 * Virtual destructor has to be defined because of virtual Run().
24 virtual ~InitHandler() {}
27 #endif /* INIT_H */