shapedecorator.hpp

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

HPP
31
字号
// ShapeDecorator.hpp
//
// Base class for shape decorators
//
// (C) Datasim Education BV 1998

#ifndef ShapeDecorator_hpp
#define ShapeDecorator_hpp

#include "Shape.hpp"

class ShapeDecorator: public Shape
{
private:
	Shape* shape;

public:
	// Constructors and destructors
	ShapeDecorator();								// Default constructor
	ShapeDecorator(const Shape& s);					// Normal constructor
	ShapeDecorator(const ShapeDecorator& source);	// Copy constructor
	virtual ~ShapeDecorator();						// Destructor

	// Selectors
	Shape* getShape() const;						// Get the contained shape
	
	// Operators
	ShapeDecorator& operator = (const ShapeDecorator& source);
};

#endif // ShapeDecorator_hpp

⌨️ 快捷键说明

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