dal-python 0.1.3__py3-py3-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
dal/dal.py ADDED
@@ -0,0 +1,1866 @@
1
+ # This file was automatically generated by SWIG (http://www.swig.org).
2
+ # Version 4.0.2
3
+ #
4
+ # Do not make changes to this file unless you know what you are doing--modify
5
+ # the SWIG interface file instead.
6
+
7
+ from sys import version_info as _swig_python_version_info
8
+ if _swig_python_version_info < (2, 7, 0):
9
+ raise RuntimeError("Python 2.7 or later required")
10
+
11
+ # Import the low-level C/C++ module
12
+ if __package__ or "." in __name__:
13
+ from . import _dal
14
+ else:
15
+ import _dal
16
+
17
+ try:
18
+ import builtins as __builtin__
19
+ except ImportError:
20
+ import __builtin__
21
+
22
+ def _swig_repr(self):
23
+ try:
24
+ strthis = "proxy of " + self.this.__repr__()
25
+ except __builtin__.Exception:
26
+ strthis = ""
27
+ return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
28
+
29
+
30
+ def _swig_setattr_nondynamic_instance_variable(set):
31
+ def set_instance_attr(self, name, value):
32
+ if name == "thisown":
33
+ self.this.own(value)
34
+ elif name == "this":
35
+ set(self, name, value)
36
+ elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
37
+ set(self, name, value)
38
+ else:
39
+ raise AttributeError("You cannot add instance attributes to %s" % self)
40
+ return set_instance_attr
41
+
42
+
43
+ def _swig_setattr_nondynamic_class_variable(set):
44
+ def set_class_attr(cls, name, value):
45
+ if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
46
+ set(cls, name, value)
47
+ else:
48
+ raise AttributeError("You cannot add class attributes to %s" % cls)
49
+ return set_class_attr
50
+
51
+
52
+ def _swig_add_metaclass(metaclass):
53
+ """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
54
+ def wrapper(cls):
55
+ return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
56
+ return wrapper
57
+
58
+
59
+ class _SwigNonDynamicMeta(type):
60
+ """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61
+ __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
62
+
63
+
64
+ class SwigPyIterator(object):
65
+ r"""Proxy of C++ swig::SwigPyIterator class."""
66
+
67
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
68
+
69
+ def __init__(self, *args, **kwargs):
70
+ raise AttributeError("No constructor defined - class is abstract")
71
+ __repr__ = _swig_repr
72
+ __swig_destroy__ = _dal.delete_SwigPyIterator
73
+
74
+ def value(self) -> "PyObject *":
75
+ r"""value(self) -> PyObject *"""
76
+ return _dal.SwigPyIterator_value(self)
77
+
78
+ def incr(self, n: "size_t"=1) -> "swig::SwigPyIterator *":
79
+ r"""
80
+ incr(self, n=1) -> SwigPyIterator
81
+
82
+ Parameters
83
+ ----------
84
+ n: size_t
85
+
86
+ """
87
+ return _dal.SwigPyIterator_incr(self, n)
88
+
89
+ def decr(self, n: "size_t"=1) -> "swig::SwigPyIterator *":
90
+ r"""
91
+ decr(self, n=1) -> SwigPyIterator
92
+
93
+ Parameters
94
+ ----------
95
+ n: size_t
96
+
97
+ """
98
+ return _dal.SwigPyIterator_decr(self, n)
99
+
100
+ def distance(self, x: "SwigPyIterator") -> "ptrdiff_t":
101
+ r"""
102
+ distance(self, x) -> ptrdiff_t
103
+
104
+ Parameters
105
+ ----------
106
+ x: swig::SwigPyIterator const &
107
+
108
+ """
109
+ return _dal.SwigPyIterator_distance(self, x)
110
+
111
+ def equal(self, x: "SwigPyIterator") -> "bool":
112
+ r"""
113
+ equal(self, x) -> bool
114
+
115
+ Parameters
116
+ ----------
117
+ x: swig::SwigPyIterator const &
118
+
119
+ """
120
+ return _dal.SwigPyIterator_equal(self, x)
121
+
122
+ def copy(self) -> "swig::SwigPyIterator *":
123
+ r"""copy(self) -> SwigPyIterator"""
124
+ return _dal.SwigPyIterator_copy(self)
125
+
126
+ def next(self) -> "PyObject *":
127
+ r"""next(self) -> PyObject *"""
128
+ return _dal.SwigPyIterator_next(self)
129
+
130
+ def __next__(self) -> "PyObject *":
131
+ r"""__next__(self) -> PyObject *"""
132
+ return _dal.SwigPyIterator___next__(self)
133
+
134
+ def previous(self) -> "PyObject *":
135
+ r"""previous(self) -> PyObject *"""
136
+ return _dal.SwigPyIterator_previous(self)
137
+
138
+ def advance(self, n: "ptrdiff_t") -> "swig::SwigPyIterator *":
139
+ r"""
140
+ advance(self, n) -> SwigPyIterator
141
+
142
+ Parameters
143
+ ----------
144
+ n: ptrdiff_t
145
+
146
+ """
147
+ return _dal.SwigPyIterator_advance(self, n)
148
+
149
+ def __eq__(self, x: "SwigPyIterator") -> "bool":
150
+ r"""
151
+ __eq__(self, x) -> bool
152
+
153
+ Parameters
154
+ ----------
155
+ x: swig::SwigPyIterator const &
156
+
157
+ """
158
+ return _dal.SwigPyIterator___eq__(self, x)
159
+
160
+ def __ne__(self, x: "SwigPyIterator") -> "bool":
161
+ r"""
162
+ __ne__(self, x) -> bool
163
+
164
+ Parameters
165
+ ----------
166
+ x: swig::SwigPyIterator const &
167
+
168
+ """
169
+ return _dal.SwigPyIterator___ne__(self, x)
170
+
171
+ def __iadd__(self, n: "ptrdiff_t") -> "swig::SwigPyIterator &":
172
+ r"""
173
+ __iadd__(self, n) -> SwigPyIterator
174
+
175
+ Parameters
176
+ ----------
177
+ n: ptrdiff_t
178
+
179
+ """
180
+ return _dal.SwigPyIterator___iadd__(self, n)
181
+
182
+ def __isub__(self, n: "ptrdiff_t") -> "swig::SwigPyIterator &":
183
+ r"""
184
+ __isub__(self, n) -> SwigPyIterator
185
+
186
+ Parameters
187
+ ----------
188
+ n: ptrdiff_t
189
+
190
+ """
191
+ return _dal.SwigPyIterator___isub__(self, n)
192
+
193
+ def __add__(self, n: "ptrdiff_t") -> "swig::SwigPyIterator *":
194
+ r"""
195
+ __add__(self, n) -> SwigPyIterator
196
+
197
+ Parameters
198
+ ----------
199
+ n: ptrdiff_t
200
+
201
+ """
202
+ return _dal.SwigPyIterator___add__(self, n)
203
+
204
+ def __sub__(self, *args) -> "ptrdiff_t":
205
+ r"""
206
+ __sub__(self, n) -> SwigPyIterator
207
+
208
+ Parameters
209
+ ----------
210
+ n: ptrdiff_t
211
+
212
+ __sub__(self, x) -> ptrdiff_t
213
+
214
+ Parameters
215
+ ----------
216
+ x: swig::SwigPyIterator const &
217
+
218
+ """
219
+ return _dal.SwigPyIterator___sub__(self, *args)
220
+ def __iter__(self):
221
+ return self
222
+
223
+ # Register SwigPyIterator in _dal:
224
+ _dal.SwigPyIterator_swigregister(SwigPyIterator)
225
+
226
+ class DoubleVector(object):
227
+ r"""Proxy of C++ std::vector< double > class."""
228
+
229
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
230
+ __repr__ = _swig_repr
231
+
232
+ def iterator(self) -> "swig::SwigPyIterator *":
233
+ r"""iterator(self) -> SwigPyIterator"""
234
+ return _dal.DoubleVector_iterator(self)
235
+ def __iter__(self):
236
+ return self.iterator()
237
+
238
+ def __nonzero__(self) -> "bool":
239
+ r"""__nonzero__(self) -> bool"""
240
+ return _dal.DoubleVector___nonzero__(self)
241
+
242
+ def __bool__(self) -> "bool":
243
+ r"""__bool__(self) -> bool"""
244
+ return _dal.DoubleVector___bool__(self)
245
+
246
+ def __len__(self) -> "std::vector< double >::size_type":
247
+ r"""__len__(self) -> std::vector< double >::size_type"""
248
+ return _dal.DoubleVector___len__(self)
249
+
250
+ def __getslice__(self, i: "std::vector< double >::difference_type", j: "std::vector< double >::difference_type") -> "std::vector< double,std::allocator< double > > *":
251
+ r"""
252
+ __getslice__(self, i, j) -> DoubleVector
253
+
254
+ Parameters
255
+ ----------
256
+ i: std::vector< double >::difference_type
257
+ j: std::vector< double >::difference_type
258
+
259
+ """
260
+ return _dal.DoubleVector___getslice__(self, i, j)
261
+
262
+ def __setslice__(self, *args) -> "void":
263
+ r"""
264
+ __setslice__(self, i, j)
265
+
266
+ Parameters
267
+ ----------
268
+ i: std::vector< double >::difference_type
269
+ j: std::vector< double >::difference_type
270
+
271
+ __setslice__(self, i, j, v)
272
+
273
+ Parameters
274
+ ----------
275
+ i: std::vector< double >::difference_type
276
+ j: std::vector< double >::difference_type
277
+ v: std::vector< double,std::allocator< double > > const &
278
+
279
+ """
280
+ return _dal.DoubleVector___setslice__(self, *args)
281
+
282
+ def __delslice__(self, i: "std::vector< double >::difference_type", j: "std::vector< double >::difference_type") -> "void":
283
+ r"""
284
+ __delslice__(self, i, j)
285
+
286
+ Parameters
287
+ ----------
288
+ i: std::vector< double >::difference_type
289
+ j: std::vector< double >::difference_type
290
+
291
+ """
292
+ return _dal.DoubleVector___delslice__(self, i, j)
293
+
294
+ def __delitem__(self, *args) -> "void":
295
+ r"""
296
+ __delitem__(self, i)
297
+
298
+ Parameters
299
+ ----------
300
+ i: std::vector< double >::difference_type
301
+
302
+ __delitem__(self, slice)
303
+
304
+ Parameters
305
+ ----------
306
+ slice: PySliceObject *
307
+
308
+ """
309
+ return _dal.DoubleVector___delitem__(self, *args)
310
+
311
+ def __getitem__(self, *args) -> "std::vector< double >::value_type const &":
312
+ r"""
313
+ __getitem__(self, slice) -> DoubleVector
314
+
315
+ Parameters
316
+ ----------
317
+ slice: PySliceObject *
318
+
319
+ __getitem__(self, i) -> std::vector< double >::value_type const &
320
+
321
+ Parameters
322
+ ----------
323
+ i: std::vector< double >::difference_type
324
+
325
+ """
326
+ return _dal.DoubleVector___getitem__(self, *args)
327
+
328
+ def __setitem__(self, *args) -> "void":
329
+ r"""
330
+ __setitem__(self, slice, v)
331
+
332
+ Parameters
333
+ ----------
334
+ slice: PySliceObject *
335
+ v: std::vector< double,std::allocator< double > > const &
336
+
337
+ __setitem__(self, slice)
338
+
339
+ Parameters
340
+ ----------
341
+ slice: PySliceObject *
342
+
343
+ __setitem__(self, i, x)
344
+
345
+ Parameters
346
+ ----------
347
+ i: std::vector< double >::difference_type
348
+ x: std::vector< double >::value_type const &
349
+
350
+ """
351
+ return _dal.DoubleVector___setitem__(self, *args)
352
+
353
+ def pop(self) -> "std::vector< double >::value_type":
354
+ r"""pop(self) -> std::vector< double >::value_type"""
355
+ return _dal.DoubleVector_pop(self)
356
+
357
+ def append(self, x: "std::vector< double >::value_type const &") -> "void":
358
+ r"""
359
+ append(self, x)
360
+
361
+ Parameters
362
+ ----------
363
+ x: std::vector< double >::value_type const &
364
+
365
+ """
366
+ return _dal.DoubleVector_append(self, x)
367
+
368
+ def empty(self) -> "bool":
369
+ r"""empty(self) -> bool"""
370
+ return _dal.DoubleVector_empty(self)
371
+
372
+ def size(self) -> "std::vector< double >::size_type":
373
+ r"""size(self) -> std::vector< double >::size_type"""
374
+ return _dal.DoubleVector_size(self)
375
+
376
+ def swap(self, v: "DoubleVector") -> "void":
377
+ r"""
378
+ swap(self, v)
379
+
380
+ Parameters
381
+ ----------
382
+ v: std::vector< double > &
383
+
384
+ """
385
+ return _dal.DoubleVector_swap(self, v)
386
+
387
+ def begin(self) -> "std::vector< double >::iterator":
388
+ r"""begin(self) -> std::vector< double >::iterator"""
389
+ return _dal.DoubleVector_begin(self)
390
+
391
+ def end(self) -> "std::vector< double >::iterator":
392
+ r"""end(self) -> std::vector< double >::iterator"""
393
+ return _dal.DoubleVector_end(self)
394
+
395
+ def rbegin(self) -> "std::vector< double >::reverse_iterator":
396
+ r"""rbegin(self) -> std::vector< double >::reverse_iterator"""
397
+ return _dal.DoubleVector_rbegin(self)
398
+
399
+ def rend(self) -> "std::vector< double >::reverse_iterator":
400
+ r"""rend(self) -> std::vector< double >::reverse_iterator"""
401
+ return _dal.DoubleVector_rend(self)
402
+
403
+ def clear(self) -> "void":
404
+ r"""clear(self)"""
405
+ return _dal.DoubleVector_clear(self)
406
+
407
+ def get_allocator(self) -> "std::vector< double >::allocator_type":
408
+ r"""get_allocator(self) -> std::vector< double >::allocator_type"""
409
+ return _dal.DoubleVector_get_allocator(self)
410
+
411
+ def pop_back(self) -> "void":
412
+ r"""pop_back(self)"""
413
+ return _dal.DoubleVector_pop_back(self)
414
+
415
+ def erase(self, *args) -> "std::vector< double >::iterator":
416
+ r"""
417
+ erase(self, pos) -> std::vector< double >::iterator
418
+
419
+ Parameters
420
+ ----------
421
+ pos: std::vector< double >::iterator
422
+
423
+ erase(self, first, last) -> std::vector< double >::iterator
424
+
425
+ Parameters
426
+ ----------
427
+ first: std::vector< double >::iterator
428
+ last: std::vector< double >::iterator
429
+
430
+ """
431
+ return _dal.DoubleVector_erase(self, *args)
432
+
433
+ def __init__(self, *args):
434
+ r"""
435
+ __init__(self) -> DoubleVector
436
+ __init__(self, other) -> DoubleVector
437
+
438
+ Parameters
439
+ ----------
440
+ other: std::vector< double > const &
441
+
442
+ __init__(self, size) -> DoubleVector
443
+
444
+ Parameters
445
+ ----------
446
+ size: std::vector< double >::size_type
447
+
448
+ __init__(self, size, value) -> DoubleVector
449
+
450
+ Parameters
451
+ ----------
452
+ size: std::vector< double >::size_type
453
+ value: std::vector< double >::value_type const &
454
+
455
+ """
456
+ _dal.DoubleVector_swiginit(self, _dal.new_DoubleVector(*args))
457
+
458
+ def push_back(self, x: "std::vector< double >::value_type const &") -> "void":
459
+ r"""
460
+ push_back(self, x)
461
+
462
+ Parameters
463
+ ----------
464
+ x: std::vector< double >::value_type const &
465
+
466
+ """
467
+ return _dal.DoubleVector_push_back(self, x)
468
+
469
+ def front(self) -> "std::vector< double >::value_type const &":
470
+ r"""front(self) -> std::vector< double >::value_type const &"""
471
+ return _dal.DoubleVector_front(self)
472
+
473
+ def back(self) -> "std::vector< double >::value_type const &":
474
+ r"""back(self) -> std::vector< double >::value_type const &"""
475
+ return _dal.DoubleVector_back(self)
476
+
477
+ def assign(self, n: "std::vector< double >::size_type", x: "std::vector< double >::value_type const &") -> "void":
478
+ r"""
479
+ assign(self, n, x)
480
+
481
+ Parameters
482
+ ----------
483
+ n: std::vector< double >::size_type
484
+ x: std::vector< double >::value_type const &
485
+
486
+ """
487
+ return _dal.DoubleVector_assign(self, n, x)
488
+
489
+ def resize(self, *args) -> "void":
490
+ r"""
491
+ resize(self, new_size)
492
+
493
+ Parameters
494
+ ----------
495
+ new_size: std::vector< double >::size_type
496
+
497
+ resize(self, new_size, x)
498
+
499
+ Parameters
500
+ ----------
501
+ new_size: std::vector< double >::size_type
502
+ x: std::vector< double >::value_type const &
503
+
504
+ """
505
+ return _dal.DoubleVector_resize(self, *args)
506
+
507
+ def insert(self, *args) -> "void":
508
+ r"""
509
+ insert(self, pos, x) -> std::vector< double >::iterator
510
+
511
+ Parameters
512
+ ----------
513
+ pos: std::vector< double >::iterator
514
+ x: std::vector< double >::value_type const &
515
+
516
+ insert(self, pos, n, x)
517
+
518
+ Parameters
519
+ ----------
520
+ pos: std::vector< double >::iterator
521
+ n: std::vector< double >::size_type
522
+ x: std::vector< double >::value_type const &
523
+
524
+ """
525
+ return _dal.DoubleVector_insert(self, *args)
526
+
527
+ def reserve(self, n: "std::vector< double >::size_type") -> "void":
528
+ r"""
529
+ reserve(self, n)
530
+
531
+ Parameters
532
+ ----------
533
+ n: std::vector< double >::size_type
534
+
535
+ """
536
+ return _dal.DoubleVector_reserve(self, n)
537
+
538
+ def capacity(self) -> "std::vector< double >::size_type":
539
+ r"""capacity(self) -> std::vector< double >::size_type"""
540
+ return _dal.DoubleVector_capacity(self)
541
+ __swig_destroy__ = _dal.delete_DoubleVector
542
+
543
+ # Register DoubleVector in _dal:
544
+ _dal.DoubleVector_swigregister(DoubleVector)
545
+
546
+ class Storable_(object):
547
+ r"""Proxy of C++ Handle_< Storable_ > class."""
548
+
549
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
550
+ __repr__ = _swig_repr
551
+
552
+ def __init__(self):
553
+ r"""__init__(self) -> Storable_"""
554
+ _dal.Storable__swiginit(self, _dal.new_Storable_())
555
+ __swig_destroy__ = _dal.delete_Storable_
556
+
557
+ # Register Storable_ in _dal:
558
+ _dal.Storable__swigregister(Storable_)
559
+
560
+ class Date_(object):
561
+ r"""Proxy of C++ Date_ class."""
562
+
563
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
564
+
565
+ def __init__(self, yyyy: "int", mm: "int", dd: "int"):
566
+ r"""
567
+ __init__(self, yyyy, mm, dd) -> Date_
568
+
569
+ Parameters
570
+ ----------
571
+ yyyy: int
572
+ mm: int
573
+ dd: int
574
+
575
+ """
576
+ _dal.Date__swiginit(self, _dal.new_Date_(yyyy, mm, dd))
577
+
578
+ def AddDays(self, days: "int") -> "Date_":
579
+ r"""
580
+ AddDays(self, days) -> Date_
581
+
582
+ Parameters
583
+ ----------
584
+ days: int
585
+
586
+ """
587
+ return _dal.Date__AddDays(self, days)
588
+
589
+ def __repr__(self) -> "std::string":
590
+ r"""__repr__(self) -> std::string"""
591
+ return _dal.Date____repr__(self)
592
+
593
+ def __lt__(self, other: "Date_") -> "bool":
594
+ r"""
595
+ __lt__(self, other) -> bool
596
+
597
+ Parameters
598
+ ----------
599
+ other: Date_ *
600
+
601
+ """
602
+ return _dal.Date____lt__(self, other)
603
+
604
+ def __le__(self, other: "Date_") -> "bool":
605
+ r"""
606
+ __le__(self, other) -> bool
607
+
608
+ Parameters
609
+ ----------
610
+ other: Date_ *
611
+
612
+ """
613
+ return _dal.Date____le__(self, other)
614
+
615
+ def __gt__(self, other: "Date_") -> "bool":
616
+ r"""
617
+ __gt__(self, other) -> bool
618
+
619
+ Parameters
620
+ ----------
621
+ other: Date_ *
622
+
623
+ """
624
+ return _dal.Date____gt__(self, other)
625
+
626
+ def __ge__(self, other: "Date_") -> "bool":
627
+ r"""
628
+ __ge__(self, other) -> bool
629
+
630
+ Parameters
631
+ ----------
632
+ other: Date_ *
633
+
634
+ """
635
+ return _dal.Date____ge__(self, other)
636
+
637
+ def __eq__(self, other: "Date_") -> "bool":
638
+ r"""
639
+ __eq__(self, other) -> bool
640
+
641
+ Parameters
642
+ ----------
643
+ other: Date_ *
644
+
645
+ """
646
+ return _dal.Date____eq__(self, other)
647
+
648
+ def __sub__(self, other: "Date_") -> "int":
649
+ r"""
650
+ __sub__(self, other) -> int
651
+
652
+ Parameters
653
+ ----------
654
+ other: Date_ *
655
+
656
+ """
657
+ return _dal.Date____sub__(self, other)
658
+ __swig_destroy__ = _dal.delete_Date_
659
+
660
+ # Register Date_ in _dal:
661
+ _dal.Date__swigregister(Date_)
662
+
663
+
664
+ def Year(dt: "Date_") -> "short":
665
+ r"""
666
+ Year(dt) -> short
667
+
668
+ Parameters
669
+ ----------
670
+ dt: Date_ const &
671
+
672
+ """
673
+ return _dal.Year(dt)
674
+
675
+ def Month(dt: "Date_") -> "short":
676
+ r"""
677
+ Month(dt) -> short
678
+
679
+ Parameters
680
+ ----------
681
+ dt: Date_ const &
682
+
683
+ """
684
+ return _dal.Month(dt)
685
+
686
+ def Day(dt: "Date_") -> "short":
687
+ r"""
688
+ Day(dt) -> short
689
+
690
+ Parameters
691
+ ----------
692
+ dt: Date_ const &
693
+
694
+ """
695
+ return _dal.Day(dt)
696
+ class DateVector(object):
697
+ r"""Proxy of C++ std::vector< Date_ > class."""
698
+
699
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
700
+ __repr__ = _swig_repr
701
+
702
+ def iterator(self) -> "swig::SwigPyIterator *":
703
+ r"""iterator(self) -> SwigPyIterator"""
704
+ return _dal.DateVector_iterator(self)
705
+ def __iter__(self):
706
+ return self.iterator()
707
+
708
+ def __nonzero__(self) -> "bool":
709
+ r"""__nonzero__(self) -> bool"""
710
+ return _dal.DateVector___nonzero__(self)
711
+
712
+ def __bool__(self) -> "bool":
713
+ r"""__bool__(self) -> bool"""
714
+ return _dal.DateVector___bool__(self)
715
+
716
+ def __len__(self) -> "std::vector< Date_ >::size_type":
717
+ r"""__len__(self) -> std::vector< Date_ >::size_type"""
718
+ return _dal.DateVector___len__(self)
719
+
720
+ def __getslice__(self, i: "std::vector< Date_ >::difference_type", j: "std::vector< Date_ >::difference_type") -> "std::vector< Date_,std::allocator< Date_ > > *":
721
+ r"""
722
+ __getslice__(self, i, j) -> DateVector
723
+
724
+ Parameters
725
+ ----------
726
+ i: std::vector< Date_ >::difference_type
727
+ j: std::vector< Date_ >::difference_type
728
+
729
+ """
730
+ return _dal.DateVector___getslice__(self, i, j)
731
+
732
+ def __setslice__(self, *args) -> "void":
733
+ r"""
734
+ __setslice__(self, i, j)
735
+
736
+ Parameters
737
+ ----------
738
+ i: std::vector< Date_ >::difference_type
739
+ j: std::vector< Date_ >::difference_type
740
+
741
+ __setslice__(self, i, j, v)
742
+
743
+ Parameters
744
+ ----------
745
+ i: std::vector< Date_ >::difference_type
746
+ j: std::vector< Date_ >::difference_type
747
+ v: std::vector< Date_,std::allocator< Date_ > > const &
748
+
749
+ """
750
+ return _dal.DateVector___setslice__(self, *args)
751
+
752
+ def __delslice__(self, i: "std::vector< Date_ >::difference_type", j: "std::vector< Date_ >::difference_type") -> "void":
753
+ r"""
754
+ __delslice__(self, i, j)
755
+
756
+ Parameters
757
+ ----------
758
+ i: std::vector< Date_ >::difference_type
759
+ j: std::vector< Date_ >::difference_type
760
+
761
+ """
762
+ return _dal.DateVector___delslice__(self, i, j)
763
+
764
+ def __delitem__(self, *args) -> "void":
765
+ r"""
766
+ __delitem__(self, i)
767
+
768
+ Parameters
769
+ ----------
770
+ i: std::vector< Date_ >::difference_type
771
+
772
+ __delitem__(self, slice)
773
+
774
+ Parameters
775
+ ----------
776
+ slice: PySliceObject *
777
+
778
+ """
779
+ return _dal.DateVector___delitem__(self, *args)
780
+
781
+ def __getitem__(self, *args) -> "std::vector< Date_ >::value_type const &":
782
+ r"""
783
+ __getitem__(self, slice) -> DateVector
784
+
785
+ Parameters
786
+ ----------
787
+ slice: PySliceObject *
788
+
789
+ __getitem__(self, i) -> Date_
790
+
791
+ Parameters
792
+ ----------
793
+ i: std::vector< Date_ >::difference_type
794
+
795
+ """
796
+ return _dal.DateVector___getitem__(self, *args)
797
+
798
+ def __setitem__(self, *args) -> "void":
799
+ r"""
800
+ __setitem__(self, slice, v)
801
+
802
+ Parameters
803
+ ----------
804
+ slice: PySliceObject *
805
+ v: std::vector< Date_,std::allocator< Date_ > > const &
806
+
807
+ __setitem__(self, slice)
808
+
809
+ Parameters
810
+ ----------
811
+ slice: PySliceObject *
812
+
813
+ __setitem__(self, i, x)
814
+
815
+ Parameters
816
+ ----------
817
+ i: std::vector< Date_ >::difference_type
818
+ x: std::vector< Date_ >::value_type const &
819
+
820
+ """
821
+ return _dal.DateVector___setitem__(self, *args)
822
+
823
+ def pop(self) -> "std::vector< Date_ >::value_type":
824
+ r"""pop(self) -> Date_"""
825
+ return _dal.DateVector_pop(self)
826
+
827
+ def append(self, x: "Date_") -> "void":
828
+ r"""
829
+ append(self, x)
830
+
831
+ Parameters
832
+ ----------
833
+ x: std::vector< Date_ >::value_type const &
834
+
835
+ """
836
+ return _dal.DateVector_append(self, x)
837
+
838
+ def empty(self) -> "bool":
839
+ r"""empty(self) -> bool"""
840
+ return _dal.DateVector_empty(self)
841
+
842
+ def size(self) -> "std::vector< Date_ >::size_type":
843
+ r"""size(self) -> std::vector< Date_ >::size_type"""
844
+ return _dal.DateVector_size(self)
845
+
846
+ def swap(self, v: "DateVector") -> "void":
847
+ r"""
848
+ swap(self, v)
849
+
850
+ Parameters
851
+ ----------
852
+ v: std::vector< Date_ > &
853
+
854
+ """
855
+ return _dal.DateVector_swap(self, v)
856
+
857
+ def begin(self) -> "std::vector< Date_ >::iterator":
858
+ r"""begin(self) -> std::vector< Date_ >::iterator"""
859
+ return _dal.DateVector_begin(self)
860
+
861
+ def end(self) -> "std::vector< Date_ >::iterator":
862
+ r"""end(self) -> std::vector< Date_ >::iterator"""
863
+ return _dal.DateVector_end(self)
864
+
865
+ def rbegin(self) -> "std::vector< Date_ >::reverse_iterator":
866
+ r"""rbegin(self) -> std::vector< Date_ >::reverse_iterator"""
867
+ return _dal.DateVector_rbegin(self)
868
+
869
+ def rend(self) -> "std::vector< Date_ >::reverse_iterator":
870
+ r"""rend(self) -> std::vector< Date_ >::reverse_iterator"""
871
+ return _dal.DateVector_rend(self)
872
+
873
+ def clear(self) -> "void":
874
+ r"""clear(self)"""
875
+ return _dal.DateVector_clear(self)
876
+
877
+ def get_allocator(self) -> "std::vector< Date_ >::allocator_type":
878
+ r"""get_allocator(self) -> std::vector< Date_ >::allocator_type"""
879
+ return _dal.DateVector_get_allocator(self)
880
+
881
+ def pop_back(self) -> "void":
882
+ r"""pop_back(self)"""
883
+ return _dal.DateVector_pop_back(self)
884
+
885
+ def erase(self, *args) -> "std::vector< Date_ >::iterator":
886
+ r"""
887
+ erase(self, pos) -> std::vector< Date_ >::iterator
888
+
889
+ Parameters
890
+ ----------
891
+ pos: std::vector< Date_ >::iterator
892
+
893
+ erase(self, first, last) -> std::vector< Date_ >::iterator
894
+
895
+ Parameters
896
+ ----------
897
+ first: std::vector< Date_ >::iterator
898
+ last: std::vector< Date_ >::iterator
899
+
900
+ """
901
+ return _dal.DateVector_erase(self, *args)
902
+
903
+ def __init__(self, *args):
904
+ r"""
905
+ __init__(self) -> DateVector
906
+ __init__(self, other) -> DateVector
907
+
908
+ Parameters
909
+ ----------
910
+ other: std::vector< Date_ > const &
911
+
912
+ __init__(self, size) -> DateVector
913
+
914
+ Parameters
915
+ ----------
916
+ size: std::vector< Date_ >::size_type
917
+
918
+ __init__(self, size, value) -> DateVector
919
+
920
+ Parameters
921
+ ----------
922
+ size: std::vector< Date_ >::size_type
923
+ value: std::vector< Date_ >::value_type const &
924
+
925
+ """
926
+ _dal.DateVector_swiginit(self, _dal.new_DateVector(*args))
927
+
928
+ def push_back(self, x: "Date_") -> "void":
929
+ r"""
930
+ push_back(self, x)
931
+
932
+ Parameters
933
+ ----------
934
+ x: std::vector< Date_ >::value_type const &
935
+
936
+ """
937
+ return _dal.DateVector_push_back(self, x)
938
+
939
+ def front(self) -> "std::vector< Date_ >::value_type const &":
940
+ r"""front(self) -> Date_"""
941
+ return _dal.DateVector_front(self)
942
+
943
+ def back(self) -> "std::vector< Date_ >::value_type const &":
944
+ r"""back(self) -> Date_"""
945
+ return _dal.DateVector_back(self)
946
+
947
+ def assign(self, n: "std::vector< Date_ >::size_type", x: "Date_") -> "void":
948
+ r"""
949
+ assign(self, n, x)
950
+
951
+ Parameters
952
+ ----------
953
+ n: std::vector< Date_ >::size_type
954
+ x: std::vector< Date_ >::value_type const &
955
+
956
+ """
957
+ return _dal.DateVector_assign(self, n, x)
958
+
959
+ def resize(self, *args) -> "void":
960
+ r"""
961
+ resize(self, new_size)
962
+
963
+ Parameters
964
+ ----------
965
+ new_size: std::vector< Date_ >::size_type
966
+
967
+ resize(self, new_size, x)
968
+
969
+ Parameters
970
+ ----------
971
+ new_size: std::vector< Date_ >::size_type
972
+ x: std::vector< Date_ >::value_type const &
973
+
974
+ """
975
+ return _dal.DateVector_resize(self, *args)
976
+
977
+ def insert(self, *args) -> "void":
978
+ r"""
979
+ insert(self, pos, x) -> std::vector< Date_ >::iterator
980
+
981
+ Parameters
982
+ ----------
983
+ pos: std::vector< Date_ >::iterator
984
+ x: std::vector< Date_ >::value_type const &
985
+
986
+ insert(self, pos, n, x)
987
+
988
+ Parameters
989
+ ----------
990
+ pos: std::vector< Date_ >::iterator
991
+ n: std::vector< Date_ >::size_type
992
+ x: std::vector< Date_ >::value_type const &
993
+
994
+ """
995
+ return _dal.DateVector_insert(self, *args)
996
+
997
+ def reserve(self, n: "std::vector< Date_ >::size_type") -> "void":
998
+ r"""
999
+ reserve(self, n)
1000
+
1001
+ Parameters
1002
+ ----------
1003
+ n: std::vector< Date_ >::size_type
1004
+
1005
+ """
1006
+ return _dal.DateVector_reserve(self, n)
1007
+
1008
+ def capacity(self) -> "std::vector< Date_ >::size_type":
1009
+ r"""capacity(self) -> std::vector< Date_ >::size_type"""
1010
+ return _dal.DateVector_capacity(self)
1011
+ __swig_destroy__ = _dal.delete_DateVector
1012
+
1013
+ # Register DateVector in _dal:
1014
+ _dal.DateVector_swigregister(DateVector)
1015
+
1016
+
1017
+ def EvaluationDate_Get() -> "Date_":
1018
+ r"""EvaluationDate_Get() -> Date_"""
1019
+ return _dal.EvaluationDate_Get()
1020
+
1021
+ def EvaluationDate_Set(d: "Date_") -> "void":
1022
+ r"""
1023
+ EvaluationDate_Set(d)
1024
+
1025
+ Parameters
1026
+ ----------
1027
+ d: Date_ const &
1028
+
1029
+ """
1030
+ return _dal.EvaluationDate_Set(d)
1031
+ class String_(object):
1032
+ r"""Proxy of C++ String_ class."""
1033
+
1034
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1035
+
1036
+ def __init__(self, *args):
1037
+ r"""
1038
+ __init__(self, src) -> String_
1039
+
1040
+ Parameters
1041
+ ----------
1042
+ src: char const *
1043
+
1044
+ __init__(self, src) -> String_
1045
+
1046
+ Parameters
1047
+ ----------
1048
+ src: std::string const &
1049
+
1050
+ """
1051
+ _dal.String__swiginit(self, _dal.new_String_(*args))
1052
+
1053
+ def __repr__(self) -> "std::string":
1054
+ r"""__repr__(self) -> std::string"""
1055
+ return _dal.String____repr__(self)
1056
+ __swig_destroy__ = _dal.delete_String_
1057
+
1058
+ # Register String_ in _dal:
1059
+ _dal.String__swigregister(String_)
1060
+
1061
+ class StrVector(object):
1062
+ r"""Proxy of C++ std::vector< std::string > class."""
1063
+
1064
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1065
+ __repr__ = _swig_repr
1066
+
1067
+ def iterator(self) -> "swig::SwigPyIterator *":
1068
+ r"""iterator(self) -> SwigPyIterator"""
1069
+ return _dal.StrVector_iterator(self)
1070
+ def __iter__(self):
1071
+ return self.iterator()
1072
+
1073
+ def __nonzero__(self) -> "bool":
1074
+ r"""__nonzero__(self) -> bool"""
1075
+ return _dal.StrVector___nonzero__(self)
1076
+
1077
+ def __bool__(self) -> "bool":
1078
+ r"""__bool__(self) -> bool"""
1079
+ return _dal.StrVector___bool__(self)
1080
+
1081
+ def __len__(self) -> "std::vector< std::string >::size_type":
1082
+ r"""__len__(self) -> std::vector< std::string >::size_type"""
1083
+ return _dal.StrVector___len__(self)
1084
+
1085
+ def __getslice__(self, i: "std::vector< std::string >::difference_type", j: "std::vector< std::string >::difference_type") -> "std::vector< std::string,std::allocator< std::string > > *":
1086
+ r"""
1087
+ __getslice__(self, i, j) -> StrVector
1088
+
1089
+ Parameters
1090
+ ----------
1091
+ i: std::vector< std::string >::difference_type
1092
+ j: std::vector< std::string >::difference_type
1093
+
1094
+ """
1095
+ return _dal.StrVector___getslice__(self, i, j)
1096
+
1097
+ def __setslice__(self, *args) -> "void":
1098
+ r"""
1099
+ __setslice__(self, i, j)
1100
+
1101
+ Parameters
1102
+ ----------
1103
+ i: std::vector< std::string >::difference_type
1104
+ j: std::vector< std::string >::difference_type
1105
+
1106
+ __setslice__(self, i, j, v)
1107
+
1108
+ Parameters
1109
+ ----------
1110
+ i: std::vector< std::string >::difference_type
1111
+ j: std::vector< std::string >::difference_type
1112
+ v: std::vector< std::string,std::allocator< std::string > > const &
1113
+
1114
+ """
1115
+ return _dal.StrVector___setslice__(self, *args)
1116
+
1117
+ def __delslice__(self, i: "std::vector< std::string >::difference_type", j: "std::vector< std::string >::difference_type") -> "void":
1118
+ r"""
1119
+ __delslice__(self, i, j)
1120
+
1121
+ Parameters
1122
+ ----------
1123
+ i: std::vector< std::string >::difference_type
1124
+ j: std::vector< std::string >::difference_type
1125
+
1126
+ """
1127
+ return _dal.StrVector___delslice__(self, i, j)
1128
+
1129
+ def __delitem__(self, *args) -> "void":
1130
+ r"""
1131
+ __delitem__(self, i)
1132
+
1133
+ Parameters
1134
+ ----------
1135
+ i: std::vector< std::string >::difference_type
1136
+
1137
+ __delitem__(self, slice)
1138
+
1139
+ Parameters
1140
+ ----------
1141
+ slice: PySliceObject *
1142
+
1143
+ """
1144
+ return _dal.StrVector___delitem__(self, *args)
1145
+
1146
+ def __getitem__(self, *args) -> "std::vector< std::string >::value_type const &":
1147
+ r"""
1148
+ __getitem__(self, slice) -> StrVector
1149
+
1150
+ Parameters
1151
+ ----------
1152
+ slice: PySliceObject *
1153
+
1154
+ __getitem__(self, i) -> std::vector< std::string >::value_type const &
1155
+
1156
+ Parameters
1157
+ ----------
1158
+ i: std::vector< std::string >::difference_type
1159
+
1160
+ """
1161
+ return _dal.StrVector___getitem__(self, *args)
1162
+
1163
+ def __setitem__(self, *args) -> "void":
1164
+ r"""
1165
+ __setitem__(self, slice, v)
1166
+
1167
+ Parameters
1168
+ ----------
1169
+ slice: PySliceObject *
1170
+ v: std::vector< std::string,std::allocator< std::string > > const &
1171
+
1172
+ __setitem__(self, slice)
1173
+
1174
+ Parameters
1175
+ ----------
1176
+ slice: PySliceObject *
1177
+
1178
+ __setitem__(self, i, x)
1179
+
1180
+ Parameters
1181
+ ----------
1182
+ i: std::vector< std::string >::difference_type
1183
+ x: std::vector< std::string >::value_type const &
1184
+
1185
+ """
1186
+ return _dal.StrVector___setitem__(self, *args)
1187
+
1188
+ def pop(self) -> "std::vector< std::string >::value_type":
1189
+ r"""pop(self) -> std::vector< std::string >::value_type"""
1190
+ return _dal.StrVector_pop(self)
1191
+
1192
+ def append(self, x: "std::vector< std::string >::value_type const &") -> "void":
1193
+ r"""
1194
+ append(self, x)
1195
+
1196
+ Parameters
1197
+ ----------
1198
+ x: std::vector< std::string >::value_type const &
1199
+
1200
+ """
1201
+ return _dal.StrVector_append(self, x)
1202
+
1203
+ def empty(self) -> "bool":
1204
+ r"""empty(self) -> bool"""
1205
+ return _dal.StrVector_empty(self)
1206
+
1207
+ def size(self) -> "std::vector< std::string >::size_type":
1208
+ r"""size(self) -> std::vector< std::string >::size_type"""
1209
+ return _dal.StrVector_size(self)
1210
+
1211
+ def swap(self, v: "StrVector") -> "void":
1212
+ r"""
1213
+ swap(self, v)
1214
+
1215
+ Parameters
1216
+ ----------
1217
+ v: std::vector< std::string > &
1218
+
1219
+ """
1220
+ return _dal.StrVector_swap(self, v)
1221
+
1222
+ def begin(self) -> "std::vector< std::string >::iterator":
1223
+ r"""begin(self) -> std::vector< std::string >::iterator"""
1224
+ return _dal.StrVector_begin(self)
1225
+
1226
+ def end(self) -> "std::vector< std::string >::iterator":
1227
+ r"""end(self) -> std::vector< std::string >::iterator"""
1228
+ return _dal.StrVector_end(self)
1229
+
1230
+ def rbegin(self) -> "std::vector< std::string >::reverse_iterator":
1231
+ r"""rbegin(self) -> std::vector< std::string >::reverse_iterator"""
1232
+ return _dal.StrVector_rbegin(self)
1233
+
1234
+ def rend(self) -> "std::vector< std::string >::reverse_iterator":
1235
+ r"""rend(self) -> std::vector< std::string >::reverse_iterator"""
1236
+ return _dal.StrVector_rend(self)
1237
+
1238
+ def clear(self) -> "void":
1239
+ r"""clear(self)"""
1240
+ return _dal.StrVector_clear(self)
1241
+
1242
+ def get_allocator(self) -> "std::vector< std::string >::allocator_type":
1243
+ r"""get_allocator(self) -> std::vector< std::string >::allocator_type"""
1244
+ return _dal.StrVector_get_allocator(self)
1245
+
1246
+ def pop_back(self) -> "void":
1247
+ r"""pop_back(self)"""
1248
+ return _dal.StrVector_pop_back(self)
1249
+
1250
+ def erase(self, *args) -> "std::vector< std::string >::iterator":
1251
+ r"""
1252
+ erase(self, pos) -> std::vector< std::string >::iterator
1253
+
1254
+ Parameters
1255
+ ----------
1256
+ pos: std::vector< std::string >::iterator
1257
+
1258
+ erase(self, first, last) -> std::vector< std::string >::iterator
1259
+
1260
+ Parameters
1261
+ ----------
1262
+ first: std::vector< std::string >::iterator
1263
+ last: std::vector< std::string >::iterator
1264
+
1265
+ """
1266
+ return _dal.StrVector_erase(self, *args)
1267
+
1268
+ def __init__(self, *args):
1269
+ r"""
1270
+ __init__(self) -> StrVector
1271
+ __init__(self, other) -> StrVector
1272
+
1273
+ Parameters
1274
+ ----------
1275
+ other: std::vector< std::string > const &
1276
+
1277
+ __init__(self, size) -> StrVector
1278
+
1279
+ Parameters
1280
+ ----------
1281
+ size: std::vector< std::string >::size_type
1282
+
1283
+ __init__(self, size, value) -> StrVector
1284
+
1285
+ Parameters
1286
+ ----------
1287
+ size: std::vector< std::string >::size_type
1288
+ value: std::vector< std::string >::value_type const &
1289
+
1290
+ """
1291
+ _dal.StrVector_swiginit(self, _dal.new_StrVector(*args))
1292
+
1293
+ def push_back(self, x: "std::vector< std::string >::value_type const &") -> "void":
1294
+ r"""
1295
+ push_back(self, x)
1296
+
1297
+ Parameters
1298
+ ----------
1299
+ x: std::vector< std::string >::value_type const &
1300
+
1301
+ """
1302
+ return _dal.StrVector_push_back(self, x)
1303
+
1304
+ def front(self) -> "std::vector< std::string >::value_type const &":
1305
+ r"""front(self) -> std::vector< std::string >::value_type const &"""
1306
+ return _dal.StrVector_front(self)
1307
+
1308
+ def back(self) -> "std::vector< std::string >::value_type const &":
1309
+ r"""back(self) -> std::vector< std::string >::value_type const &"""
1310
+ return _dal.StrVector_back(self)
1311
+
1312
+ def assign(self, n: "std::vector< std::string >::size_type", x: "std::vector< std::string >::value_type const &") -> "void":
1313
+ r"""
1314
+ assign(self, n, x)
1315
+
1316
+ Parameters
1317
+ ----------
1318
+ n: std::vector< std::string >::size_type
1319
+ x: std::vector< std::string >::value_type const &
1320
+
1321
+ """
1322
+ return _dal.StrVector_assign(self, n, x)
1323
+
1324
+ def resize(self, *args) -> "void":
1325
+ r"""
1326
+ resize(self, new_size)
1327
+
1328
+ Parameters
1329
+ ----------
1330
+ new_size: std::vector< std::string >::size_type
1331
+
1332
+ resize(self, new_size, x)
1333
+
1334
+ Parameters
1335
+ ----------
1336
+ new_size: std::vector< std::string >::size_type
1337
+ x: std::vector< std::string >::value_type const &
1338
+
1339
+ """
1340
+ return _dal.StrVector_resize(self, *args)
1341
+
1342
+ def insert(self, *args) -> "void":
1343
+ r"""
1344
+ insert(self, pos, x) -> std::vector< std::string >::iterator
1345
+
1346
+ Parameters
1347
+ ----------
1348
+ pos: std::vector< std::string >::iterator
1349
+ x: std::vector< std::string >::value_type const &
1350
+
1351
+ insert(self, pos, n, x)
1352
+
1353
+ Parameters
1354
+ ----------
1355
+ pos: std::vector< std::string >::iterator
1356
+ n: std::vector< std::string >::size_type
1357
+ x: std::vector< std::string >::value_type const &
1358
+
1359
+ """
1360
+ return _dal.StrVector_insert(self, *args)
1361
+
1362
+ def reserve(self, n: "std::vector< std::string >::size_type") -> "void":
1363
+ r"""
1364
+ reserve(self, n)
1365
+
1366
+ Parameters
1367
+ ----------
1368
+ n: std::vector< std::string >::size_type
1369
+
1370
+ """
1371
+ return _dal.StrVector_reserve(self, n)
1372
+
1373
+ def capacity(self) -> "std::vector< std::string >::size_type":
1374
+ r"""capacity(self) -> std::vector< std::string >::size_type"""
1375
+ return _dal.StrVector_capacity(self)
1376
+ __swig_destroy__ = _dal.delete_StrVector
1377
+
1378
+ # Register StrVector in _dal:
1379
+ _dal.StrVector_swigregister(StrVector)
1380
+
1381
+ class DoubleMatrix_(object):
1382
+ r"""Proxy of C++ Matrix_< double > class."""
1383
+
1384
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1385
+ __repr__ = _swig_repr
1386
+
1387
+ def __init__(self, *args):
1388
+ r"""
1389
+ __init__(self, row, col, val=double()) -> DoubleMatrix_
1390
+
1391
+ Parameters
1392
+ ----------
1393
+ row: int
1394
+ col: int
1395
+ val: double
1396
+
1397
+ """
1398
+ _dal.DoubleMatrix__swiginit(self, _dal.new_DoubleMatrix_(*args))
1399
+
1400
+ def __call__(self, i: "int", j: "int") -> "double":
1401
+ r"""
1402
+ __call__(self, i, j) -> double
1403
+
1404
+ Parameters
1405
+ ----------
1406
+ i: int
1407
+ j: int
1408
+
1409
+ """
1410
+ return _dal.DoubleMatrix____call__(self, i, j)
1411
+ __swig_destroy__ = _dal.delete_DoubleMatrix_
1412
+
1413
+ # Register DoubleMatrix_ in _dal:
1414
+ _dal.DoubleMatrix__swigregister(DoubleMatrix_)
1415
+
1416
+ class ScriptProductData_(object):
1417
+ r"""Proxy of C++ Handle_< ScriptProductData_ > class."""
1418
+
1419
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1420
+ __repr__ = _swig_repr
1421
+
1422
+ def __init__(self):
1423
+ r"""__init__(self) -> ScriptProductData_"""
1424
+ _dal.ScriptProductData__swiginit(self, _dal.new_ScriptProductData_())
1425
+ __swig_destroy__ = _dal.delete_ScriptProductData_
1426
+
1427
+ # Register ScriptProductData_ in _dal:
1428
+ _dal.ScriptProductData__swigregister(ScriptProductData_)
1429
+
1430
+
1431
+ def Product_New(dates: "DateVector", events: "StrVector") -> "Handle_< ScriptProductData_ >":
1432
+ r"""
1433
+ Product_New(dates, events) -> ScriptProductData_
1434
+
1435
+ Parameters
1436
+ ----------
1437
+ dates: std::vector< Date_,std::allocator< Date_ > > const &
1438
+ events: std::vector< std::string,std::allocator< std::string > > const &
1439
+
1440
+ """
1441
+ return _dal.Product_New(dates, events)
1442
+
1443
+ def Product_Debug(product: "ScriptProductData_") -> "std::string":
1444
+ r"""
1445
+ Product_Debug(product) -> std::string
1446
+
1447
+ Parameters
1448
+ ----------
1449
+ product: Handle_< ScriptProductData_ > const &
1450
+
1451
+ """
1452
+ return _dal.Product_Debug(product)
1453
+ class ModelData_(object):
1454
+ r"""Proxy of C++ Handle_< ModelData_ > class."""
1455
+
1456
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1457
+ __repr__ = _swig_repr
1458
+
1459
+ def __init__(self):
1460
+ r"""__init__(self) -> ModelData_"""
1461
+ _dal.ModelData__swiginit(self, _dal.new_ModelData_())
1462
+ __swig_destroy__ = _dal.delete_ModelData_
1463
+
1464
+ # Register ModelData_ in _dal:
1465
+ _dal.ModelData__swigregister(ModelData_)
1466
+
1467
+
1468
+ def BSModelData_New(spot: "double", vol: "double", rate: "double", div: "double") -> "Handle_< ModelData_ >":
1469
+ r"""
1470
+ BSModelData_New(spot, vol, rate, div) -> ModelData_
1471
+
1472
+ Parameters
1473
+ ----------
1474
+ spot: double
1475
+ vol: double
1476
+ rate: double
1477
+ div: double
1478
+
1479
+ """
1480
+ return _dal.BSModelData_New(spot, vol, rate, div)
1481
+
1482
+ def DupireModelData_New(spot: "double", rate: "double", repo: "double", spots: "DoubleVector", times: "DoubleVector", vols: "DoubleMatrix_") -> "Handle_< ModelData_ >":
1483
+ r"""
1484
+ DupireModelData_New(spot, rate, repo, spots, times, vols) -> ModelData_
1485
+
1486
+ Parameters
1487
+ ----------
1488
+ spot: double
1489
+ rate: double
1490
+ repo: double
1491
+ spots: std::vector< double,std::allocator< double > > const &
1492
+ times: std::vector< double,std::allocator< double > > const &
1493
+ vols: Matrix_< double > const &
1494
+
1495
+ """
1496
+ return _dal.DupireModelData_New(spot, rate, repo, spots, times, vols)
1497
+ class Dictionary(object):
1498
+ r"""Proxy of C++ std::map< std::string,double > class."""
1499
+
1500
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1501
+ __repr__ = _swig_repr
1502
+
1503
+ def iterator(self) -> "swig::SwigPyIterator *":
1504
+ r"""iterator(self) -> SwigPyIterator"""
1505
+ return _dal.Dictionary_iterator(self)
1506
+ def __iter__(self):
1507
+ return self.iterator()
1508
+
1509
+ def __nonzero__(self) -> "bool":
1510
+ r"""__nonzero__(self) -> bool"""
1511
+ return _dal.Dictionary___nonzero__(self)
1512
+
1513
+ def __bool__(self) -> "bool":
1514
+ r"""__bool__(self) -> bool"""
1515
+ return _dal.Dictionary___bool__(self)
1516
+
1517
+ def __len__(self) -> "std::map< std::string,double >::size_type":
1518
+ r"""__len__(self) -> std::map< std::string,double >::size_type"""
1519
+ return _dal.Dictionary___len__(self)
1520
+ def __iter__(self):
1521
+ return self.key_iterator()
1522
+ def iterkeys(self):
1523
+ return self.key_iterator()
1524
+ def itervalues(self):
1525
+ return self.value_iterator()
1526
+ def iteritems(self):
1527
+ return self.iterator()
1528
+
1529
+ def __getitem__(self, key: "std::map< std::string,double >::key_type const &") -> "std::map< std::string,double >::mapped_type const &":
1530
+ r"""
1531
+ __getitem__(self, key) -> std::map< std::string,double >::mapped_type const &
1532
+
1533
+ Parameters
1534
+ ----------
1535
+ key: std::map< std::string,double >::key_type const &
1536
+
1537
+ """
1538
+ return _dal.Dictionary___getitem__(self, key)
1539
+
1540
+ def __delitem__(self, key: "std::map< std::string,double >::key_type const &") -> "void":
1541
+ r"""
1542
+ __delitem__(self, key)
1543
+
1544
+ Parameters
1545
+ ----------
1546
+ key: std::map< std::string,double >::key_type const &
1547
+
1548
+ """
1549
+ return _dal.Dictionary___delitem__(self, key)
1550
+
1551
+ def has_key(self, key: "std::map< std::string,double >::key_type const &") -> "bool":
1552
+ r"""
1553
+ has_key(self, key) -> bool
1554
+
1555
+ Parameters
1556
+ ----------
1557
+ key: std::map< std::string,double >::key_type const &
1558
+
1559
+ """
1560
+ return _dal.Dictionary_has_key(self, key)
1561
+
1562
+ def keys(self) -> "PyObject *":
1563
+ r"""keys(self) -> PyObject *"""
1564
+ return _dal.Dictionary_keys(self)
1565
+
1566
+ def values(self) -> "PyObject *":
1567
+ r"""values(self) -> PyObject *"""
1568
+ return _dal.Dictionary_values(self)
1569
+
1570
+ def items(self) -> "PyObject *":
1571
+ r"""items(self) -> PyObject *"""
1572
+ return _dal.Dictionary_items(self)
1573
+
1574
+ def __contains__(self, key: "std::map< std::string,double >::key_type const &") -> "bool":
1575
+ r"""
1576
+ __contains__(self, key) -> bool
1577
+
1578
+ Parameters
1579
+ ----------
1580
+ key: std::map< std::string,double >::key_type const &
1581
+
1582
+ """
1583
+ return _dal.Dictionary___contains__(self, key)
1584
+
1585
+ def key_iterator(self) -> "swig::SwigPyIterator *":
1586
+ r"""key_iterator(self) -> SwigPyIterator"""
1587
+ return _dal.Dictionary_key_iterator(self)
1588
+
1589
+ def value_iterator(self) -> "swig::SwigPyIterator *":
1590
+ r"""value_iterator(self) -> SwigPyIterator"""
1591
+ return _dal.Dictionary_value_iterator(self)
1592
+
1593
+ def __setitem__(self, *args) -> "void":
1594
+ r"""
1595
+ __setitem__(self, key)
1596
+
1597
+ Parameters
1598
+ ----------
1599
+ key: std::map< std::string,double >::key_type const &
1600
+
1601
+ __setitem__(self, key, x)
1602
+
1603
+ Parameters
1604
+ ----------
1605
+ key: std::map< std::string,double >::key_type const &
1606
+ x: std::map< std::string,double >::mapped_type const &
1607
+
1608
+ """
1609
+ return _dal.Dictionary___setitem__(self, *args)
1610
+
1611
+ def asdict(self) -> "PyObject *":
1612
+ r"""asdict(self) -> PyObject *"""
1613
+ return _dal.Dictionary_asdict(self)
1614
+
1615
+ def __init__(self, *args):
1616
+ r"""
1617
+ __init__(self, other) -> Dictionary
1618
+
1619
+ Parameters
1620
+ ----------
1621
+ other: std::less< std::string > const &
1622
+
1623
+ __init__(self) -> Dictionary
1624
+ __init__(self, other) -> Dictionary
1625
+
1626
+ Parameters
1627
+ ----------
1628
+ other: std::map< std::string,double > const &
1629
+
1630
+ """
1631
+ _dal.Dictionary_swiginit(self, _dal.new_Dictionary(*args))
1632
+
1633
+ def empty(self) -> "bool":
1634
+ r"""empty(self) -> bool"""
1635
+ return _dal.Dictionary_empty(self)
1636
+
1637
+ def size(self) -> "std::map< std::string,double >::size_type":
1638
+ r"""size(self) -> std::map< std::string,double >::size_type"""
1639
+ return _dal.Dictionary_size(self)
1640
+
1641
+ def swap(self, v: "Dictionary") -> "void":
1642
+ r"""
1643
+ swap(self, v)
1644
+
1645
+ Parameters
1646
+ ----------
1647
+ v: std::map< std::string,double > &
1648
+
1649
+ """
1650
+ return _dal.Dictionary_swap(self, v)
1651
+
1652
+ def begin(self) -> "std::map< std::string,double >::iterator":
1653
+ r"""begin(self) -> std::map< std::string,double >::iterator"""
1654
+ return _dal.Dictionary_begin(self)
1655
+
1656
+ def end(self) -> "std::map< std::string,double >::iterator":
1657
+ r"""end(self) -> std::map< std::string,double >::iterator"""
1658
+ return _dal.Dictionary_end(self)
1659
+
1660
+ def rbegin(self) -> "std::map< std::string,double >::reverse_iterator":
1661
+ r"""rbegin(self) -> std::map< std::string,double >::reverse_iterator"""
1662
+ return _dal.Dictionary_rbegin(self)
1663
+
1664
+ def rend(self) -> "std::map< std::string,double >::reverse_iterator":
1665
+ r"""rend(self) -> std::map< std::string,double >::reverse_iterator"""
1666
+ return _dal.Dictionary_rend(self)
1667
+
1668
+ def clear(self) -> "void":
1669
+ r"""clear(self)"""
1670
+ return _dal.Dictionary_clear(self)
1671
+
1672
+ def get_allocator(self) -> "std::map< std::string,double >::allocator_type":
1673
+ r"""get_allocator(self) -> std::map< std::string,double >::allocator_type"""
1674
+ return _dal.Dictionary_get_allocator(self)
1675
+
1676
+ def count(self, x: "std::map< std::string,double >::key_type const &") -> "std::map< std::string,double >::size_type":
1677
+ r"""
1678
+ count(self, x) -> std::map< std::string,double >::size_type
1679
+
1680
+ Parameters
1681
+ ----------
1682
+ x: std::map< std::string,double >::key_type const &
1683
+
1684
+ """
1685
+ return _dal.Dictionary_count(self, x)
1686
+
1687
+ def erase(self, *args) -> "void":
1688
+ r"""
1689
+ erase(self, x) -> std::map< std::string,double >::size_type
1690
+
1691
+ Parameters
1692
+ ----------
1693
+ x: std::map< std::string,double >::key_type const &
1694
+
1695
+ erase(self, position)
1696
+
1697
+ Parameters
1698
+ ----------
1699
+ position: std::map< std::string,double >::iterator
1700
+
1701
+ erase(self, first, last)
1702
+
1703
+ Parameters
1704
+ ----------
1705
+ first: std::map< std::string,double >::iterator
1706
+ last: std::map< std::string,double >::iterator
1707
+
1708
+ """
1709
+ return _dal.Dictionary_erase(self, *args)
1710
+
1711
+ def find(self, x: "std::map< std::string,double >::key_type const &") -> "std::map< std::string,double >::iterator":
1712
+ r"""
1713
+ find(self, x) -> std::map< std::string,double >::iterator
1714
+
1715
+ Parameters
1716
+ ----------
1717
+ x: std::map< std::string,double >::key_type const &
1718
+
1719
+ """
1720
+ return _dal.Dictionary_find(self, x)
1721
+
1722
+ def lower_bound(self, x: "std::map< std::string,double >::key_type const &") -> "std::map< std::string,double >::iterator":
1723
+ r"""
1724
+ lower_bound(self, x) -> std::map< std::string,double >::iterator
1725
+
1726
+ Parameters
1727
+ ----------
1728
+ x: std::map< std::string,double >::key_type const &
1729
+
1730
+ """
1731
+ return _dal.Dictionary_lower_bound(self, x)
1732
+
1733
+ def upper_bound(self, x: "std::map< std::string,double >::key_type const &") -> "std::map< std::string,double >::iterator":
1734
+ r"""
1735
+ upper_bound(self, x) -> std::map< std::string,double >::iterator
1736
+
1737
+ Parameters
1738
+ ----------
1739
+ x: std::map< std::string,double >::key_type const &
1740
+
1741
+ """
1742
+ return _dal.Dictionary_upper_bound(self, x)
1743
+ __swig_destroy__ = _dal.delete_Dictionary
1744
+
1745
+ # Register Dictionary in _dal:
1746
+ _dal.Dictionary_swigregister(Dictionary)
1747
+
1748
+
1749
+ def MonteCarlo_Value(*args) -> "std::map< std::string,double,std::less< std::string >,std::allocator< std::pair< std::string const,double > > >":
1750
+ r"""
1751
+ MonteCarlo_Value(product, modelData, num_path, method="sobol", use_bb=False, enable_aad=False, smooth=0.01) -> Dictionary
1752
+
1753
+ Parameters
1754
+ ----------
1755
+ product: Handle_< ScriptProductData_ > const &
1756
+ modelData: Handle_< ModelData_ > const &
1757
+ num_path: int
1758
+ method: std::string const &
1759
+ use_bb: bool
1760
+ enable_aad: bool
1761
+ smooth: double
1762
+
1763
+ """
1764
+ return _dal.MonteCarlo_Value(*args)
1765
+ class PseudoRSG_(object):
1766
+ r"""Proxy of C++ Handle_< PseudoRSG_ > class."""
1767
+
1768
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1769
+ __repr__ = _swig_repr
1770
+
1771
+ def __init__(self):
1772
+ r"""__init__(self) -> PseudoRSG_"""
1773
+ _dal.PseudoRSG__swiginit(self, _dal.new_PseudoRSG_())
1774
+ __swig_destroy__ = _dal.delete_PseudoRSG_
1775
+
1776
+ # Register PseudoRSG_ in _dal:
1777
+ _dal.PseudoRSG__swigregister(PseudoRSG_)
1778
+
1779
+ class SobolRSG_(object):
1780
+ r"""Proxy of C++ Handle_< SobolRSG_ > class."""
1781
+
1782
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1783
+ __repr__ = _swig_repr
1784
+
1785
+ def __init__(self):
1786
+ r"""__init__(self) -> SobolRSG_"""
1787
+ _dal.SobolRSG__swiginit(self, _dal.new_SobolRSG_())
1788
+ __swig_destroy__ = _dal.delete_SobolRSG_
1789
+
1790
+ # Register SobolRSG_ in _dal:
1791
+ _dal.SobolRSG__swigregister(SobolRSG_)
1792
+
1793
+
1794
+ def PseudoRSG_New(seed: "int", ndim: "int"=1) -> "Handle_< PseudoRSG_ >":
1795
+ r"""
1796
+ PseudoRSG_New(seed, ndim=1) -> PseudoRSG_
1797
+
1798
+ Parameters
1799
+ ----------
1800
+ seed: int
1801
+ ndim: int
1802
+
1803
+ """
1804
+ return _dal.PseudoRSG_New(seed, ndim)
1805
+
1806
+ def PseudoRSG_Get_Uniform(rsg: "PseudoRSG_", num_path: "int") -> "Matrix_< double >":
1807
+ r"""
1808
+ PseudoRSG_Get_Uniform(rsg, num_path) -> DoubleMatrix_
1809
+
1810
+ Parameters
1811
+ ----------
1812
+ rsg: Handle_< PseudoRSG_ > const &
1813
+ num_path: int
1814
+
1815
+ """
1816
+ return _dal.PseudoRSG_Get_Uniform(rsg, num_path)
1817
+
1818
+ def PseudoRSG_Get_Normal(rsg: "PseudoRSG_", num_path: "int") -> "Matrix_< double >":
1819
+ r"""
1820
+ PseudoRSG_Get_Normal(rsg, num_path) -> DoubleMatrix_
1821
+
1822
+ Parameters
1823
+ ----------
1824
+ rsg: Handle_< PseudoRSG_ > const &
1825
+ num_path: int
1826
+
1827
+ """
1828
+ return _dal.PseudoRSG_Get_Normal(rsg, num_path)
1829
+
1830
+ def SobolRSG_New(i_path: "int", ndim: "int"=1) -> "Handle_< SobolRSG_ >":
1831
+ r"""
1832
+ SobolRSG_New(i_path, ndim=1) -> SobolRSG_
1833
+
1834
+ Parameters
1835
+ ----------
1836
+ i_path: int
1837
+ ndim: int
1838
+
1839
+ """
1840
+ return _dal.SobolRSG_New(i_path, ndim)
1841
+
1842
+ def SobolRSG_Get_Uniform(rsg: "SobolRSG_", num_path: "int") -> "Matrix_< double >":
1843
+ r"""
1844
+ SobolRSG_Get_Uniform(rsg, num_path) -> DoubleMatrix_
1845
+
1846
+ Parameters
1847
+ ----------
1848
+ rsg: Handle_< SobolRSG_ > const &
1849
+ num_path: int
1850
+
1851
+ """
1852
+ return _dal.SobolRSG_Get_Uniform(rsg, num_path)
1853
+
1854
+ def SobolRSG_Get_Normal(rsg: "SobolRSG_", num_path: "int") -> "Matrix_< double >":
1855
+ r"""
1856
+ SobolRSG_Get_Normal(rsg, num_path) -> DoubleMatrix_
1857
+
1858
+ Parameters
1859
+ ----------
1860
+ rsg: Handle_< SobolRSG_ > const &
1861
+ num_path: int
1862
+
1863
+ """
1864
+ return _dal.SobolRSG_Get_Normal(rsg, num_path)
1865
+
1866
+