Re: [QuantLib-svn] SF.net SVN: quantlib: [12538] trunk/QuantLib/ql/cashflows

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [QuantLib-svn] SF.net SVN: quantlib: [12538] trunk/QuantLib/ql/cashflows

Luigi Ballabio
On Thu, 2007-09-06 at 07:53 -0700, [hidden email] wrote:
> Revision: 12538
>           http://quantlib.svn.sourceforge.net/quantlib/?rev=12538&view=rev
> Author:   nando
> Date:     2007-09-06 07:53:16 -0700 (Thu, 06 Sep 2007)
>
> Log Message:
> -----------
> moved Duration::Type enumeration in its own file. std::ostream&
> operator<< to be implemented

Any particular reason to separate the enumeration from where the
duration calculation is implemented?

Luigi


--

A child of five would understand this. Send someone to fetch a child of
five.
-- Groucho Marx



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: [QuantLib-svn] SF.net SVN: quantlib: [12538] trunk/QuantLib/ql/cashflows

Ferdinando M. Ametrano-3
Hi Luigi

> Any particular reason to separate the enumeration from where the
> duration calculation is implemented?

I'm trying to use forward declaration in order to avoid early hpp
inclusion. The point is that when Duration::Type is included in any
input parameters list you need to import its definition even if you
don't need all the rest of ql/cashflows/cashflows.hpp

The same has been done for most enumerative types
(BusinessDayConvention, Time Unit, etc)

ciao -- Nando

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: [QuantLib-svn] SF.net SVN: quantlib: [12538] trunk/QuantLib/ql/cashflows

Luigi Ballabio
On Fri, 2007-09-07 at 10:44 +0200, Ferdinando Ametrano wrote:
> > Any particular reason to separate the enumeration from where the
> > duration calculation is implemented?
>
> I'm trying to use forward declaration in order to avoid early hpp
> inclusion. The point is that when Duration::Type is included in any
> input parameters list you need to import its definition even if you
> don't need all the rest of ql/cashflows/cashflows.hpp

Yes, but where is Duration::Type used other than for passing it to the
functions in cashflows.hpp?

Luigi


--

Quote me as saying I was misquoted.
-- Groucho Marx



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev