(svn r25354) -Add: link graph schedule and typedefs for LinkGraph and related classes
This commit is contained in:
27
src/linkgraph/init.h
Normal file
27
src/linkgraph/init.h
Normal file
@@ -0,0 +1,27 @@
|
||||
/** @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 */
|
Reference in New Issue
Block a user