Files @ r20383:e018bf74a6f1
Branch filter:

Location: cpp/openttd-patchpack/source/src/linkgraph/init.h

translators
(svn r25396) -Update from WebTranslator v3.0:
english_AU - 25 changes by mrtux
korean - 60 changes by telk5093
russian - 3 changes by Lone_Wolf
gaelic - 6 changes by GunChleoc
spanish - 2 changes by Terkhen
/** @file init.h Declaration of initializing link graph handler. */

#ifndef INIT_H
#define INIT_H

#include "linkgraphjob_base.h"

/**
 * Stateless, thread safe initialization hander. Initializes node and edge
 * annotations.
 */
class InitHandler : public ComponentHandler {
public:

	/**
	 * Initialize the link graph job.
	 * @param job Job to be initialized.
	 */
	virtual void Run(LinkGraphJob &job) const { job.Init(); }

	/**
	 * Virtual destructor has to be defined because of virtual Run().
	 */
	virtual ~InitHandler() {}
};

#endif /* INIT_H */