product.hpp

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

HPP
30
字号
// Product.hpp
//
// Base class for Products.
//
// (C) Datasim Education BV 1998

#ifndef Product_hpp
#define Product_hpp

//class CDOVisitor;

class Product
{
public:
	// Constructors and destructor
	Product();							// Default constructor
	Product(const Product& source);			// Copy constructor
	virtual ~Product();					// Destructor
	
	// Special copy function to create a copy of a Product when you only have a Product pointer
	virtual Product* Clone() const=0;		// Create a copy of the Product

	// Operator overloading
	Product& operator = (const Product& source);	// Assignment operator

	// Visitor functionality
//	virtual void Accept(CDOVisitor& v) = 0;	// Accept a visitor
};

#endif // Product_hpp

⌨️ 快捷键说明

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