Files @ r22022:571e71b3a177
Branch filter:

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

translators
(svn r27179) -Update from WebTranslator v3.0:
afrikaans - 10 changes by telanus
croatian - 4 changes by VoyagerOne
finnish - 4 changes by jpx_
hebrew - 9 changes by oofnik
italian - 3 changes by lorenzodv
korean - 11 changes by Gimel3830, telk5093
lithuanian - 4 changes by Stabilitronas
polish - 4 changes by wojteks86
romanian - 29 changes by kneekoo
gaelic - 4 changes by GunChleoc
slovak - 17 changes by Milsa
spanish - 4 changes by SilverSurferZzZ
/** @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 */