Scine::Sparrow  5.1.0
Library for fast and agile quantum chemical calculations with semiempirical methods.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Observers.h
Go to the documentation of this file.
1 
7 #ifndef SPARROW_OBSERVERS_H
8 #define SPARROW_OBSERVERS_H
9 
10 #include <Utils/Typenames.h>
11 
12 namespace Scine {
13 namespace Sparrow {
14 namespace RealTimeSpectroscopy {
15 
17  public:
18  void notifyGradient(const Utils::GradientCollection& gradient);
19 
20  private:
21  virtual void notifyGradientImpl(const Utils::GradientCollection& gradient) = 0;
22 };
23 
24 inline void GradientObserver::notifyGradient(const Utils::GradientCollection& gradient) {
25  notifyGradientImpl(gradient);
26 }
27 
28 } // namespace RealTimeSpectroscopy
29 } // namespace Sparrow
30 } // namespace Scine
31 
32 #endif // SPARROW_OBSERVERS_H