ppap4lmp  0.7.2
invoker.h
Go to the documentation of this file.
1 
9 #ifndef INVOKER_H
10 #define INVOKER_H
11 
12 #include <processors/processor.h>
13 
18 class Invoker {
19  protected:
24  virtual void execute_impl(
25  const Vec<ShPtr<Processor>> &procs) = 0;
26  public:
28  Invoker() = default;
29  virtual ~Invoker() = default;
43  void execute(
44  const Vec<ShPtr<Processor>> &procs);
45 };
46 
47 #endif
void execute(const Vec< ShPtr< Processor >> &procs)
Execute analysis programmed in given Processor objects.
Definition: invoker.cpp:16
std::vector< T > Vec
Vec is an alias for vector (same as list in Python).
Definition: std.h:27
Invoker executes analysis programmed in one or more Processor objects.
Definition: invoker.h:18
This file has a definition of Processor class, where an analysis process is programmed.
virtual void execute_impl(const Vec< ShPtr< Processor >> &procs)=0
Implementation how to execute a main part of analysis.
std::shared_ptr< T > ShPtr
ShPtr is an alias for shared pointer.
Definition: std.h:16
Invoker()=default
Constructor of Invoker class (default).