Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : */
9 :
10 : #ifndef SC_OPENCL_OP_FINANCIAL_HXX
11 : #define SC_OPENCL_OP_FINANCIAL_HXX
12 :
13 : #include "opbase.hxx"
14 :
15 : namespace sc { namespace opencl {
16 :
17 0 : class RRI: public SlidingFunctionBase
18 : {
19 : public:
20 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
21 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
22 0 : virtual bool takeString() const SAL_OVERRIDE { return false; }
23 0 : virtual bool takeNumeric() const SAL_OVERRIDE { return true; }
24 : };
25 :
26 0 : class OpRRI:public RRI
27 : {
28 : public:
29 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0"; }
30 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "RRI"; }
31 : };
32 :
33 0 : class OpNominal: public Normal
34 : {
35 : public:
36 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
37 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
38 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "NOMINAL_ADD"; }
39 : };
40 :
41 0 : class OpDollarde:public Normal
42 : {
43 : public:
44 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0"; }
45 :
46 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
47 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
48 :
49 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Dollarde"; }
50 :
51 : };
52 :
53 0 : class OpDollarfr:public Normal
54 : {
55 : public:
56 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0"; }
57 :
58 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
59 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
60 :
61 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Dollarfr"; }
62 :
63 : };
64 :
65 0 : class OpDISC: public Normal
66 : {
67 : public:
68 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0"; }
69 :
70 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
71 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
72 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& ) SAL_OVERRIDE;
73 :
74 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "DISC"; }
75 : };
76 :
77 0 : class OpINTRATE: public Normal
78 : {
79 : public:
80 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0"; }
81 :
82 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
83 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
84 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& ) SAL_OVERRIDE;
85 :
86 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "INTRATE"; }
87 : };
88 :
89 0 : class OpFV: public Normal
90 : {
91 : public:
92 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0"; }
93 :
94 : virtual void GenSlidingWindowFunction(std::stringstream& ss,
95 : const std::string &sSymName, SubArguments& vSubArguments) SAL_OVERRIDE;
96 : virtual void BinInlineFun(std::set<std::string>& ,
97 : std::set<std::string>& ) SAL_OVERRIDE;
98 :
99 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE {
100 0 : return "FV"; }
101 : };
102 :
103 0 : class OpIPMT: public Normal
104 : {
105 : public:
106 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0"; }
107 :
108 : virtual void GenSlidingWindowFunction(std::stringstream& ss,
109 : const std::string &sSymName, SubArguments& vSubArguments) SAL_OVERRIDE;
110 : virtual void BinInlineFun(std::set<std::string>& ,
111 : std::set<std::string>& ) SAL_OVERRIDE;
112 :
113 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE {
114 0 : return "IPMT"; }
115 : };
116 :
117 0 : class OpISPMT: public Normal
118 : {
119 : public:
120 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0"; }
121 :
122 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
123 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
124 :
125 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "ISPMT"; }
126 : };
127 :
128 0 : class OpDuration: public Normal
129 : {
130 : public:
131 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0"; }
132 :
133 : virtual void GenSlidingWindowFunction(std::stringstream& ss,
134 : const std::string &sSymName, SubArguments& vSubArguments) SAL_OVERRIDE;
135 :
136 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Duration"; }
137 : };
138 :
139 0 : class OpDuration_ADD: public Normal
140 : {
141 : public:
142 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0"; }
143 :
144 : virtual void GenSlidingWindowFunction(std::stringstream& ss,
145 : const std::string &sSymName, SubArguments& vSubArguments) SAL_OVERRIDE;
146 : virtual void BinInlineFun(std::set<std::string>& ,
147 : std::set<std::string>& ) SAL_OVERRIDE;
148 :
149 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE {
150 0 : return "Duration_ADD"; }
151 : };
152 0 : class OpMDuration: public Normal
153 : {
154 : public:
155 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0"; }
156 :
157 : virtual void GenSlidingWindowFunction(std::stringstream& ss,
158 : const std::string &sSymName, SubArguments& vSubArguments) SAL_OVERRIDE;
159 : virtual void BinInlineFun(std::set<std::string>& ,
160 : std::set<std::string>& ) SAL_OVERRIDE;
161 :
162 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE {return "MDuration"; }
163 : };
164 :
165 0 : class Fvschedule: public Normal
166 : {
167 : public:
168 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
169 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
170 : };
171 :
172 0 : class Cumipmt: public Normal
173 : {
174 : public:
175 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
176 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
177 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& ) SAL_OVERRIDE;
178 : };
179 :
180 0 : class IRR: public Normal
181 : {
182 : public:
183 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
184 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
185 : };
186 :
187 0 : class OpIRR: public IRR
188 : {
189 : public:
190 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0"; }
191 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "IRR"; }
192 : };
193 :
194 0 : class XNPV: public Normal
195 : {
196 : public:
197 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
198 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
199 : };
200 :
201 0 : class PriceMat: public Normal
202 : {
203 : public:
204 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
205 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
206 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& ) SAL_OVERRIDE;
207 : };
208 0 : class OpSYD: public Normal
209 : {
210 : public:
211 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
212 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
213 :
214 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "SYD"; }
215 : };
216 :
217 0 : class MIRR: public Normal
218 : {
219 : public:
220 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
221 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
222 : };
223 :
224 0 : class OpEffective:public Normal
225 : {
226 : public:
227 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0"; }
228 :
229 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
230 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
231 :
232 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Effect_Add"; }
233 : };
234 :
235 0 : class OpCumipmt: public Cumipmt
236 : {
237 : public:
238 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0"; }
239 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Cumipmt"; }
240 : };
241 :
242 0 : class OpXNPV: public XNPV
243 : {
244 : public:
245 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0"; }
246 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "XNPV"; }
247 :
248 : };
249 :
250 0 : class OpTbilleq: public Normal
251 : {
252 : public:
253 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
254 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
255 :
256 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "fTbilleq"; }
257 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& ) SAL_OVERRIDE;
258 : };
259 :
260 0 : class OpCumprinc: public Normal
261 : {
262 : public:
263 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0"; }
264 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
265 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
266 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& ) SAL_OVERRIDE;
267 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "cumprinc"; }
268 : };
269 :
270 0 : class OpAccrintm: public Normal
271 : {
272 : public:
273 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0"; }
274 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& ) SAL_OVERRIDE;
275 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
276 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
277 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Accrintm"; }
278 : };
279 0 : class OpAccrint: public Normal
280 : {
281 : public:
282 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&) SAL_OVERRIDE;
283 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
284 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
285 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Accrint"; }
286 : };
287 :
288 0 : class OpYield: public Normal
289 : {
290 : public:
291 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
292 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
293 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Yield"; }
294 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& ) SAL_OVERRIDE;
295 : };
296 :
297 :
298 0 : class OpSLN: public Normal
299 : {
300 : public:
301 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
302 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
303 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "SLN"; }
304 : };
305 :
306 0 : class OpFvschedule: public Fvschedule
307 : {
308 : public:
309 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0"; }
310 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Fvschedule"; }
311 : };
312 :
313 0 : class OpYieldmat: public Normal
314 : {
315 : public:
316 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
317 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
318 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Yieldmat"; }
319 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& ) SAL_OVERRIDE;
320 : };
321 :
322 0 : class OpPMT: public Normal
323 : {
324 : public:
325 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
326 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
327 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "PMT"; }
328 : };
329 0 : class OpNPV: public Normal
330 : {
331 : public:
332 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
333 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
334 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "NPV"; }
335 : };
336 :
337 0 : class OpPrice: public Normal
338 : {
339 : public:
340 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
341 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
342 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& ) SAL_OVERRIDE;
343 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Price"; }
344 : };
345 :
346 0 : class OpNper: public Normal
347 : {
348 : public:
349 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
350 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
351 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "NPER"; }
352 : };
353 0 : class OpOddlprice: public Normal
354 : {
355 : public:
356 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
357 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
358 : virtual void BinInlineFun(std::set<std::string>&,
359 : std::set<std::string>& ) SAL_OVERRIDE;
360 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Oddlprice"; }
361 : };
362 0 : class OpOddlyield: public Normal
363 : {
364 : public:
365 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
366 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
367 : virtual void BinInlineFun(std::set<std::string>& ,
368 : std::set<std::string>& ) SAL_OVERRIDE;
369 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Oddlyield"; }
370 : };
371 0 : class OpPriceDisc: public Normal
372 : {
373 : public:
374 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
375 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
376 : virtual void BinInlineFun(std::set<std::string>&,
377 : std::set<std::string>& ) SAL_OVERRIDE;
378 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "PriceDisc"; }
379 : };
380 0 : class OpPPMT: public Normal
381 : {
382 : public:
383 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
384 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
385 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& ) SAL_OVERRIDE;
386 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "PPMT"; }
387 : };
388 :
389 0 : class OpCoupdaybs:public Normal
390 : {
391 : public:
392 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0";}
393 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
394 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
395 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& ) SAL_OVERRIDE;
396 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Coupdaybs"; }
397 :
398 : };
399 :
400 0 : class OpCoupdays:public Normal
401 : {
402 : public:
403 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0";}
404 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
405 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
406 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& ) SAL_OVERRIDE;
407 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Coupdays";}
408 :
409 : };
410 :
411 0 : class OpCoupdaysnc:public Normal
412 : {
413 : public:
414 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0";}
415 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
416 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
417 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& ) SAL_OVERRIDE;
418 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Coupdaysnc"; }
419 :
420 : };
421 :
422 0 : class OpCouppcd:public Normal
423 : {
424 : public:
425 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
426 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
427 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& ) SAL_OVERRIDE;
428 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Couppcd"; }
429 :
430 : };
431 :
432 0 : class OpCoupncd:public Normal
433 : {
434 : public:
435 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
436 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
437 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&) SAL_OVERRIDE;
438 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Coupncd"; }
439 :
440 : };
441 :
442 0 : class OpCoupnum:public Normal
443 : {
444 : public:
445 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0";}
446 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
447 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
448 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&) SAL_OVERRIDE;
449 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Coupnum"; }
450 :
451 : };
452 0 : class OpDDB:public Normal
453 : {
454 : public:
455 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
456 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
457 :
458 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "DDB"; }
459 : };
460 0 : class OpDB:public Normal
461 : {
462 : public:
463 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
464 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
465 :
466 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "DB"; }
467 : };
468 0 : class OpAmordegrc:public Normal
469 : {
470 : public:
471 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0";}
472 : virtual void GenSlidingWindowFunction(std::stringstream& ss,
473 : const std::string &sSymName, SubArguments& vSubArguments) SAL_OVERRIDE;
474 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&) SAL_OVERRIDE;
475 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Amordegrc"; }
476 : };
477 0 : class OpAmorlinc:public Normal
478 : {
479 : public:
480 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0";}
481 : virtual void GenSlidingWindowFunction(std::stringstream& ss,
482 : const std::string &sSymName, SubArguments& vSubArguments) SAL_OVERRIDE;
483 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&) SAL_OVERRIDE;
484 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Amorlinc"; }
485 : };
486 :
487 0 : class OpReceived:public Normal
488 : {
489 : public:
490 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0"; }
491 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
492 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
493 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Received"; }
494 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& ) SAL_OVERRIDE;
495 : };
496 :
497 0 : class OpYielddisc: public Normal
498 : {
499 : public:
500 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
501 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
502 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Yielddisc"; }
503 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& ) SAL_OVERRIDE;
504 : };
505 :
506 0 : class OpTbillprice: public CheckVariables
507 : {
508 : public:
509 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
510 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
511 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "fTbillprice"; }
512 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& ) SAL_OVERRIDE;
513 : };
514 :
515 0 : class OpPriceMat:public PriceMat
516 : {
517 : public:
518 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0"; }
519 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "PriceMat"; }
520 : };
521 :
522 0 : class RATE: public Normal
523 : {
524 : public:
525 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
526 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
527 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& ) SAL_OVERRIDE;
528 : };
529 0 : class OpIntrate: public RATE {
530 : public:
531 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0"; }
532 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "rate"; }
533 : };
534 :
535 0 : class OpTbillyield: public Normal
536 : {
537 : public:
538 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
539 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
540 :
541 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "fTbillyield"; }
542 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& ) SAL_OVERRIDE;
543 : };
544 :
545 0 : class OpMIRR: public MIRR
546 : {
547 : public:
548 0 : virtual std::string GetBottom(void) SAL_OVERRIDE { return "0"; }
549 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "MIRR"; }
550 : };
551 :
552 0 : class OpPV: public Normal
553 : {
554 : public:
555 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
556 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
557 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "PV"; }
558 : };
559 :
560 0 : class OpVDB: public CheckVariables
561 : {
562 : public:
563 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
564 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
565 :
566 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "VDB"; }
567 : virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& ) SAL_OVERRIDE;
568 : };
569 :
570 0 : class OpXirr: public CheckVariables
571 : {
572 : public:
573 : virtual void GenSlidingWindowFunction(std::stringstream &ss,
574 : const std::string &sSymName, SubArguments &vSubArguments) SAL_OVERRIDE;
575 :
576 0 : virtual std::string BinFuncName(void) const SAL_OVERRIDE { return "Xirr"; }
577 : };
578 :
579 : }}
580 :
581 : #endif
582 :
583 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|