originpoint.cpp
来自「financal instrument pricing using c」· C++ 代码 · 共 35 行
CPP
35 行
// OriginPoint.cpp
//
// Singleton origin point. Operations involving the origin point use this
// origin point. Herefore we can use origin point that are not (0,0)
//
// 15 september 1998 RD Started
//
// (C) Datasim Education BV 1998
#include "OriginPoint.hpp"
#include "Point.hpp"
OriginPoint::OriginPoint(): Singleton<Point>()
{ // Default constructor
}
OriginPoint::OriginPoint(const OriginPoint& source): Singleton<Point>(source)
{ // Copy constructor
}
OriginPoint::~OriginPoint()
{ // Destructor
}
OriginPoint& OriginPoint::operator = (const OriginPoint& source)
{ // Assignment
// Exit if same object
if (this==&source) return *this;
Singleton<Point>::operator = (source);
return *this;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?