WavefunctionStepper.h 1.19 KB
Newer Older
Francois Gygi committed
1 2
////////////////////////////////////////////////////////////////////////////////
//
Francois Gygi committed
3 4 5 6
// Copyright (c) 2008 The Regents of the University of California
//
// This file is part of Qbox
//
Francois Gygi committed
7 8
// Qbox is distributed under the terms of the GNU General Public License
// as published by the Free Software Foundation, either version 2 of
Francois Gygi committed
9 10 11 12 13 14
// the License, or (at your option) any later version.
// See the file COPYING in the root directory of this distribution
// or <http://www.gnu.org/licenses/>.
//
////////////////////////////////////////////////////////////////////////////////
//
Francois Gygi committed
15 16 17 18 19 20
// WavefunctionStepper.h
//
////////////////////////////////////////////////////////////////////////////////

#ifndef WAVEFUNCTIONSTEPPER_H
#define WAVEFUNCTIONSTEPPER_H
21 22 23 24
#include "Timer.h"
#include <map>
#include <string>

25
typedef std::map<std::string,Timer> TimerMap;
26
class Wavefunction;
Francois Gygi committed
27 28 29 30

class WavefunctionStepper
{
  private:
31

32 33 34
  protected:
  Wavefunction& wf_;
  TimerMap& tmap_;
35

Francois Gygi committed
36 37
  public:

38
  virtual void update(Wavefunction& dwf) = 0;
39 40
  virtual void preprocess(void) {}
  virtual void postprocess(void) {}
Francois Gygi committed
41

42
  WavefunctionStepper(Wavefunction& wf, TimerMap& tmap) :
43
  wf_(wf), tmap_(tmap)
44
  {}
45
  virtual ~WavefunctionStepper() {}
Francois Gygi committed
46 47
};
#endif