counter.hpp

来自「financal instrument pricing using c」· HPP 代码 · 共 29 行

HPP
29
字号
// Counter.hpp
//
// (C) Datasim Education BV 2001

#ifndef COUNTER_HPP
#define COUNTER_HPP

#include "Observable.hpp"

class Counter : public Observable
{
private:
	long CounterValue;

	Counter(const Counter& orig);	// Copy constructor
	Counter& operator=(const Counter& orig);	// Assignment operator
public:
	Counter();	// Default constructor
	~Counter();	// Destructor

	// Selectors
	long GetCounter() const;	// Return the counter value
	// Increase the internal counter
	void IncreaseCounter();
	// Decrease the internal counter
	void DecreaseCounter();
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?