listing "Excerpt of the Instrument class"에서 왜 setupArguments함수가 pure virtual 함수로 선언되지 않고 exception을 throw하도록 정의가 되었는지 궁금할 것이다.
이것은 새로운 instrument의 개발자에게 의미없는 함수를 구현하는 것을 강요하지 않도록하기 위해서이고 개발자는 그들의 클래스중에 몇몇은 간단히 performCalculation 함수를 override하면 될것이라고 결정하게 될 것이다.

'quantlib > Implementation' 카테고리의 다른 글

Template Method pattern  (0) 2011.06.15
class template & Function Template  (0) 2011.06.15
Aside: handles and shared pointers  (0) 2011.06.11
Aside: Const or not const?  (0) 2011.06.09
2. Financial instruments and pricing engines  (0) 2011.06.06
Posted by karlsen

블로그 이미지
Pricing, hedging, risk-managing a complex derivative product
karlsen

태그목록

공지사항

Yesterday
Today
Total

달력

 « |  » 2024.9
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

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함