WavefunctionStepper.h 1.26 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
// WavefunctionStepper.h
//
////////////////////////////////////////////////////////////////////////////////
Francois Gygi committed
18
// $Id: WavefunctionStepper.h,v 1.10 2008-09-08 15:56:19 fgygi Exp $
Francois Gygi committed
19 20 21

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

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

class WavefunctionStepper
{
  private:
32

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

Francois Gygi committed
37 38
  public:

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

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