-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathQuantity.h
More file actions
30 lines (26 loc) · 698 Bytes
/
Copy pathQuantity.h
File metadata and controls
30 lines (26 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef _QUANTITY_H
#define _QUANTITY_H
#include <string>
class Stepper;
class FileManager;
/*! \brief Base class for quantities to be measured.
*
*/
class Quantity {
//for operators that are diagonal in real spin space.
public:
Quantity(const Stepper* stepper, FileManager* fm, std::string basename);
virtual ~Quantity();
virtual void init();
virtual void measure();
virtual void save() const=0;
int GetNmeas() const {return m_meas;}
protected:
int m_comm_size;
int m_comm_rank;
int m_meas;
const Stepper* m_stepper;
FileManager* m_fm;
std::string m_basename;
};
#endif//_QUANTITY_H