Files @ r21336:6222d0b5e244
Branch filter:

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

translators
(svn r26431) -Update from WebTranslator v3.0:
english_AU - 2 changes by mrtux
italian - 1 changes by lorenzodv
japanese - 10 changes by guppy
lithuanian - 1 changes by Stabilitronas
polish - 21 changes by Kilian
/** @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 */