mclcppclass.h 123 KB
Newer Older
Maxime Perrotin's avatar
Maxime Perrotin committed
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* Copyright 2004-2007 The MathWorks, Inc.
 *
 * ATTENTION! ATTENTION! ATTENTION! 
 *
 *   1. mwArray MAY NOT directly call any method (including public methods)
 *      of the array_ref class, despite the C++ compiler's willingness to
 *      allow this. Generally speaking, this is only a problem when a
 *      Compiler-generated application is compiled into a binary by a C++
 *      compiler different than the one used to build the MCR (i.e., when
 *      mbuild -setup has been used to choose a compiler other than 
 *      MSVC on the PC).
 *
 *   2. If you add a method to the array_ref interface, make sure that you
 *      provide an extern "C" version of it, and that mwArray calls the
 *      extern "C" version rather than the method itself.
 *
 *   3. Before making any changes here, please read (and understand!) the
 *      "MathWorks Deployment Team: Products and Processes" document, esp.
 *      the mclmcrrt section.
 *
 */

#ifndef _MCLCPPCLASS_H_
#define _MCLCPPCLASS_H_

#ifdef __cplusplus

#include <string>
#include <exception>
#include <iostream>

#include "mclmcr.h"

class mwArray;

template<class T>
class mwArraySharedCopy : public T
{
private:
    mwArraySharedCopy(array_ref* p) : T(p) {
    }

    friend class mwArray;
};

class mwArray
{
    friend void mclcppMlfFeval(HMCRINSTANCE inst, const char* name, int nargout, int fnout, int fnin, ...);
public:
    mwArray() : m_pa(0)
    {
        if (mclGetEmptyArray((void**)&m_pa, mxDOUBLE_CLASS) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }

    mwArray(mxClassID mxID) : m_pa(0)
    {
        if (mclGetEmptyArray((void**)&m_pa, mxID) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    mwArray(mwSize num_rows, mwSize num_cols, mxClassID mxID, mxComplexity cmplx = mxREAL) : m_pa(0)
    {
        if (mclGetMatrix((void**)&m_pa, num_rows, num_cols, mxID, cmplx) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    mwArray(mwSize num_dims, const mwSize* dims, mxClassID mxID, mxComplexity cmplx = mxREAL) : m_pa(0)
    {
        if (mclGetArray((void**)&m_pa, num_dims, dims, mxID, cmplx) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    mwArray(const char* str) : m_pa(0)
    {
        if (mclGetString((void**)&m_pa, str) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    mwArray(mwSize num_strings, const char** str) : m_pa(0)
    {
        if (mclGetCharMatrixFromStrings((void**)&m_pa, num_strings, str) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    mwArray(mwSize num_rows, mwSize num_cols, int num_fields, const char** fieldnames) : m_pa(0)
    {
        if (mclGetStructMatrix((void**)&m_pa, num_rows, num_cols, num_fields, fieldnames) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    mwArray(mwSize num_dims, const mwSize* dims, int num_fields, const char** fieldnames) : m_pa(0)
    {
        if (mclGetStructArray((void**)&m_pa, num_dims, dims, num_fields, fieldnames) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    explicit mwArray(mxDouble re) : m_pa(0)
    {
        if (mclGetScalarDouble((void**)&m_pa, re, 0, mxREAL) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    mwArray(mxDouble re, mxDouble im) : m_pa(0)
    {
        if (mclGetScalarDouble((void**)&m_pa, re, im, mxCOMPLEX) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    explicit mwArray(mxSingle re) : m_pa(0)
    {
        if (mclGetScalarSingle((void**)&m_pa, re, 0, mxREAL) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    mwArray(mxSingle re, mxSingle im) : m_pa(0)
    {
        if (mclGetScalarSingle((void**)&m_pa, re, im, mxCOMPLEX) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    explicit mwArray(mxInt8 re) : m_pa(0)
    {
        if (mclGetScalarInt8((void**)&m_pa, re, 0, mxREAL) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    mwArray(mxInt8 re, mxInt8 im) : m_pa(0)
    {
        if (mclGetScalarInt8((void**)&m_pa, re, im, mxCOMPLEX) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    explicit mwArray(mxUint8 re) : m_pa(0)
    {
        if (mclGetScalarUint8((void**)&m_pa, re, 0, mxREAL) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    mwArray(mxUint8 re, mxUint8 im) : m_pa(0)
    {
        if (mclGetScalarUint8((void**)&m_pa, re, im, mxCOMPLEX) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    explicit mwArray(mxInt16 re) : m_pa(0)
    {
        if (mclGetScalarInt16((void**)&m_pa, re, 0, mxREAL) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    mwArray(mxInt16 re, mxInt16 im) : m_pa(0)
    {
        if (mclGetScalarInt16((void**)&m_pa, re, im, mxCOMPLEX) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    explicit mwArray(mxUint16 re) : m_pa(0)
    {
        if (mclGetScalarUint16((void**)&m_pa, re, 0, mxREAL) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    mwArray(mxUint16 re, mxUint16 im) : m_pa(0)
    {
        if (mclGetScalarUint16((void**)&m_pa, re, im, mxCOMPLEX) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    explicit mwArray(mxInt32 re) : m_pa(0)
    {
        if (mclGetScalarInt32((void**)&m_pa, re, 0, mxREAL) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    mwArray(mxInt32 re, mxInt32 im) : m_pa(0)
    {
        if (mclGetScalarInt32((void**)&m_pa, re, im, mxCOMPLEX) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    explicit mwArray(mxUint32 re) : m_pa(0)
    {
        if (mclGetScalarUint32((void**)&m_pa, re, 0, mxREAL) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    mwArray(mxUint32 re, mxUint32 im) : m_pa(0)
    {
        if (mclGetScalarUint32((void**)&m_pa, re, im, mxCOMPLEX) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    explicit mwArray(mxInt64 re) : m_pa(0)
    {
        if (mclGetScalarInt64((void**)&m_pa, re, 0, mxREAL) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    mwArray(mxInt64 re, mxInt64 im) : m_pa(0)
    {
        if (mclGetScalarInt64((void**)&m_pa, re, im, mxCOMPLEX) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    explicit mwArray(mxUint64 re) : m_pa(0)
    {
        if (mclGetScalarUint64((void**)&m_pa, re, 0, mxREAL) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
    mwArray(mxUint64 re, mxUint64 im) : m_pa(0)
    {
        if (mclGetScalarUint64((void**)&m_pa, re, im, mxCOMPLEX) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
#if !defined(__APPLE_CC__)
    explicit mwArray(mxLogical re) : m_pa(0)
    {
        if (mclGetScalarLogical((void**)&m_pa, re) == MCLCPP_ERR)
            mwException::raise_error();
        validate();
    }
#endif
    mwArray(const mwArray& arr) : m_pa(0)
    {
        m_pa = array_ref_deep_copy(arr.m_pa);
        if (!m_pa)
            mwException::raise_error();
    }
    mwArray(const mwArraySharedCopy<mwArray>& sharedCopy)
    {
        m_pa = array_ref_shared_copy(sharedCopy.m_pa);
    }
    virtual ~mwArray()
    {
        ref_count_obj_release(m_pa);
    }
protected:
    mwArray(array_ref* pa, bool incref = false) : m_pa(pa)
    {
        if (!m_pa)
            throw mwException("Internal Error");
        if (incref)
            ref_count_obj_addref(m_pa);
    }
    virtual void validate()
    {
        if (!m_pa)
            throw mwException("Internal Error");
    }
    array_ref* get_ptr() const
    {
        return m_pa;
    }
    void set_ptr(array_ref* pa)
    {
        if (!pa)
            throw mwException("Null pointer");
        ref_count_obj_release(m_pa);
        m_pa = pa;
        ref_count_obj_addref(m_pa);
    }
public:
    mwArray Clone() const
    {
        array_ref* p = array_ref_deep_copy(m_pa);
        if (!p)
            mwException::raise_error();
        return mwArray(p);
    }
    mwArraySharedCopy<mwArray> SharedCopy() const
    {
        array_ref* p = array_ref_shared_copy(m_pa);
        if (!p)
            mwException::raise_error();
        return mwArraySharedCopy<mwArray>(p);
    }
    mwArray Serialize() const
    {
        array_ref* p = array_ref_serialize(m_pa);
        if (!p)
            mwException::raise_error();
        return mwArray(p);
    }
    mxClassID ClassID() const
    {
        return array_ref_classID(m_pa);
    }
    size_t ElementSize() const
    {
        return array_ref_element_size(m_pa);
    }
    mwSize NumberOfElements() const
    {
        return array_ref_number_of_elements(m_pa);
    }
    mwSize NumberOfNonZeros() const
    {
        return array_ref_number_of_nonzeros(m_pa);
    }
    mwSize MaximumNonZeros() const
    {
        return array_ref_maximum_nonzeros(m_pa);
    }
    mwSize NumberOfDimensions() const
    {
        return array_ref_number_of_dimensions(m_pa);
    }
    int NumberOfFields() const
    {
        return array_ref_number_of_fields(m_pa);
    }
    mwString GetFieldName(int i)
    {
        char_buffer* p = array_ref_get_field_name(m_pa, i);
        if (!p)
            mwException::raise_error();
        return mwString(p, false);
    }
    mwArray GetDimensions() const
    {
        array_ref* p = array_ref_get_dimensions(m_pa);
        if (!p)
            mwException::raise_error();
        return mwArray(p);
    }
    bool IsEmpty() const
    {
        return array_ref_is_empty(m_pa);
    }
    bool IsSparse() const
    {
        return array_ref_is_sparse(m_pa);
    }
    bool IsNumeric() const
    {
        return array_ref_is_numeric(m_pa);
    }
    bool IsComplex() const
    {
        return array_ref_is_complex(m_pa);
    }
    bool Equals(const mwArray& arr) const
    {
        return array_ref_equals(m_pa, arr.m_pa);
    }
    int CompareTo(const mwArray& arr) const
    {
        return array_ref_compare_to(m_pa, arr.m_pa);
    }
    int HashCode() const
    {
        return array_ref_hash_code(m_pa);
    }
    mwString ToString() const
    {
        char_buffer* p = array_ref_to_string(m_pa);
        if (!p)
            mwException::raise_error();
        return mwString(p, false);
    }
    mwArray RowIndex() const
    {
        array_ref* p = array_ref_row_index(m_pa);
        if (!p)
            mwException::raise_error();
        return mwArray(p);
    }
    mwArray ColumnIndex() const
    {
        array_ref* p = array_ref_column_index(m_pa);
        if (!p)
            mwException::raise_error();
        return mwArray(p);
    }
    void MakeComplex()
    {
        if (array_ref_make_complex(m_pa) == MCLCPP_ERR)
            mwException::raise_error();
    }

    bool operator==(const mwArray& arr) const
    {
        return Equals(arr);
    }
    bool operator!=(const mwArray& arr) const
    {
        return !Equals(arr);
    }
    bool operator<(const mwArray& arr) const
    {
        return (CompareTo(arr) < 0);
    }
    bool operator>(const mwArray& arr) const
    {
        return (CompareTo(arr) > 0);
    }
    bool operator<=(const mwArray& arr) const
    {
        return (CompareTo(arr) <= 0);
    }
    bool operator>=(const mwArray& arr) const
    {
        return (CompareTo(arr) >= 0);
    }
    friend std::ostream& operator<<(std::ostream& os, const mwArray& arr)
    {
        os << arr.ToString();
        return os;
    }
    mwArray GetA(mwSize num_indices, const mwIndex* index)
    {
        array_ref* p = array_ref_get_int(m_pa, num_indices, index);
        if (!p)
            mwException::raise_error();
        return mwArray(p);
    }
    const mwArray GetA(mwSize num_indices, const mwIndex* index) const
    {
        array_ref* p = array_ref_get_int(m_pa, num_indices, index);
        if (!p)
            mwException::raise_error();
        return mwArray(p);
    }
    mwArray GetA(const char* name, mwIndex index)
    {
        array_ref* p = array_ref_get_const_char(m_pa, name, 1, &index);
        if (!p)
            mwException::raise_error();
        return mwArray(p);
    }
    const mwArray GetA(const char* name, mwIndex index) const
    {
        array_ref* p = array_ref_get_const_char(m_pa, name, 1, &index);
        if (!p)
            mwException::raise_error();
        return mwArray(p);
    }
    mwArray GetA(const char* name, mwSize num_indices, const mwIndex* index)
    {
        array_ref* p = array_ref_get_const_char(m_pa, name, num_indices,
						index);
        if (!p)
            mwException::raise_error();
        return mwArray(p);
    }
    const mwArray GetA(const char* name, mwSize num_indices, const mwIndex* index) const
    {
        array_ref* p = array_ref_get_const_char(m_pa, name, num_indices,
						index);
        if (!p)
            mwException::raise_error();
        return mwArray(p);
    }
    mwArray Get(mwSize num_indices, mwIndex i1)
    {
        return GetPromoted( 1, i1); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2)
    {
        return GetPromoted( 2, i1,  i2); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3)
    {
        return GetPromoted( 3, i1,  i2,  i3); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4)
    {
        return GetPromoted( 4, i1,  i2,  i3,  i4); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5)
    { 
        return GetPromoted( 5, i1,  i2,  i3,  i4,  i5); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6)
    {
        return GetPromoted( 6, i1,  i2,  i3,  i4,  i5,  i6); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7)
    {
        return GetPromoted( 7, i1,  i2,  i3,  i4,  i5,  i6,  i7); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8)
    {
        return GetPromoted( 8, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9)
    {
        return GetPromoted( 9, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10)
    {
        return GetPromoted( 10, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11)
    {
        return GetPromoted( 11, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12)
    {
        return GetPromoted( 12, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13)
    {
        return GetPromoted( 13, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14)
    {
        return GetPromoted( 14, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15)
    {
        return GetPromoted( 15, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16)
    {
        return GetPromoted( 16, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17)
    {
        return GetPromoted( 17, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18)
    {
        return GetPromoted( 18, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19)
    {
        return GetPromoted( 19, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20)
    {
        return GetPromoted( 20, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21)
    {
        return GetPromoted( 21, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22)
    {
        return GetPromoted( 22, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23)
    {
        return GetPromoted( 23, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24)
    {
        return GetPromoted( 24, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25)
    {
        return GetPromoted( 25, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26)
    {
        return GetPromoted( 26, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27)
    {
        return GetPromoted( 27, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27, mwIndex i28)
    {
        return GetPromoted( 28, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27, i28); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27, mwIndex i28, mwIndex i29)
    {
        return GetPromoted( 29, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27, i28, i29); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27, mwIndex i28, mwIndex i29, mwIndex i30)
    {
        return GetPromoted( 30, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27, i28, i29, i30); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27, mwIndex i28, mwIndex i29, mwIndex i30, mwIndex i31)
    {
        return GetPromoted( 31, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27, i28, i29, i30, i31); 
    }
    mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27, mwIndex i28, mwIndex i29, mwIndex i30, mwIndex i31, mwIndex i32)
    {
        return GetPromoted( 32, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27, i28, i29, i30, i31, i32); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1) const
    {
        return GetPromoted( 1, i1); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2) const
    {
        return GetPromoted( 2, i1,  i2); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3) const
    {
        return GetPromoted( 3, i1,  i2,  i3); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4) const
    {
        return GetPromoted( 4, i1,  i2,  i3,  i4); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5) const
    {
        return GetPromoted( 5, i1,  i2,  i3,  i4,  i5); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6) const
    {
        return GetPromoted( 6, i1,  i2,  i3,  i4,  i5,  i6); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7) const
    {
        return GetPromoted( 7, i1,  i2,  i3,  i4,  i5,  i6,  i7); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8) const
    {
        return GetPromoted( 8, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9) const
    {
        return GetPromoted( 9, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10) const
    {
        return GetPromoted( 10, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11) const
    {
        return GetPromoted( 11, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12) const
    {
        return GetPromoted( 12, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13) const
    {
        return GetPromoted( 13, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14) const
    {
        return GetPromoted( 14, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15) const
    {
        return GetPromoted( 15, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16) const
    {
        return GetPromoted( 16, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17) const
    {
        return GetPromoted( 17, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18) const
    {
        return GetPromoted( 18, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19) const
    {
        return GetPromoted( 19, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20) const
    {
        return GetPromoted( 20, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21) const
    {
        return GetPromoted( 21, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22) const
    {
        return GetPromoted( 22, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23) const
    {
        return GetPromoted( 23, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24) const
    {
        return GetPromoted( 24, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25) const
    {
        return GetPromoted( 25, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26) const
    {
        return GetPromoted( 26, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27) const
    {
        return GetPromoted( 27, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27, mwIndex i28) const
    {
        return GetPromoted( 28, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27, i28); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27, mwIndex i28, mwIndex i29) const
    {
        return GetPromoted( 29, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27, i28, i29); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27, mwIndex i28, mwIndex i29, mwIndex i30) const
    {
        return GetPromoted( 30, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27, i28, i29, i30); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27, mwIndex i28, mwIndex i29, mwIndex i30, mwIndex i31) const
    {
        return GetPromoted( 31, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27, i28, i29, i30, i31); 
    }
    const mwArray Get(mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27, mwIndex i28, mwIndex i29, mwIndex i30, mwIndex i31, mwIndex i32) const
    {
        return GetPromoted( 32, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27, i28, i29, i30, i31, i32); 
    }
    mwArray GetPromoted(mwSize num_indices, ...)
    {
        va_list vargs;
        va_start(vargs, num_indices);
        array_ref* p = array_ref_getV_int(m_pa, num_indices, vargs);
        va_end(vargs);
        if (!p)
            mwException::raise_error();
        return mwArray(p);
    }
    const mwArray GetPromoted(mwSize num_indices, ...) const
    {
        va_list vargs;
        va_start(vargs, num_indices);
        array_ref* p = array_ref_getV_int(m_pa, num_indices, vargs);
        va_end(vargs);
        if (!p)
            mwException::raise_error();
        return mwArray(p);
    }
    mwArray Get(const char* name, mwSize num_indices, mwIndex i1)
    {
        return GetPromoted( name, 1, i1); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2)
    {
        return GetPromoted( name, 2, i1,  i2); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3)
    {
        return GetPromoted( name, 3, i1,  i2,  i3); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4)
    {
        return GetPromoted( name, 4, i1,  i2,  i3,  i4); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5)
    { 
        return GetPromoted( name, 5, i1,  i2,  i3,  i4,  i5); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6)
    {
        return GetPromoted( name, 6, i1,  i2,  i3,  i4,  i5,  i6); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7)
    {
        return GetPromoted( name, 7, i1,  i2,  i3,  i4,  i5,  i6,  i7); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8)
    {
        return GetPromoted( name, 8, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9)
    {
        return GetPromoted( name, 9, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10)
    {
        return GetPromoted( name, 10, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11)
    {
        return GetPromoted( name, 11, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12)
    {
        return GetPromoted( name, 12, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13)
    {
        return GetPromoted( name, 13, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14)
    {
        return GetPromoted( name, 14, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15)
    {
        return GetPromoted( name, 15, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16)
    {
        return GetPromoted( name, 16, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17)
    {
        return GetPromoted( name, 17, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18)
    {
        return GetPromoted( name, 18, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19)
    {
        return GetPromoted( name, 19, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20)
    {
        return GetPromoted( name, 20, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21)
    {
        return GetPromoted( name, 21, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22)
    {
        return GetPromoted( name, 22, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23)
    {
        return GetPromoted( name, 23, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24)
    {
        return GetPromoted( name, 24, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25)
    {
        return GetPromoted( name, 25, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26)
    {
        return GetPromoted( name, 26, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27)
    {
        return GetPromoted( name, 27, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27, mwIndex i28)
    {
        return GetPromoted( name, 28, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27, i28); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27, mwIndex i28, mwIndex i29)
    {
        return GetPromoted( name, 29, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27, i28, i29); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27, mwIndex i28, mwIndex i29, mwIndex i30)
    {
        return GetPromoted( name, 30, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27, i28, i29, i30); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27, mwIndex i28, mwIndex i29, mwIndex i30, mwIndex i31)
    {
        return GetPromoted( name, 31, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27, i28, i29, i30, i31); 
    }
    mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27, mwIndex i28, mwIndex i29, mwIndex i30, mwIndex i31, mwIndex i32)
    {
        return GetPromoted( name, 32, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27, i28, i29, i30, i31, i32); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1) const
    {
        return GetPromoted( name, 1, i1); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2) const
    {
        return GetPromoted( name, 2, i1,  i2); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3) const
    {
        return GetPromoted( name, 3, i1,  i2,  i3); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4) const
    {
        return GetPromoted( name, 4, i1,  i2,  i3,  i4); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5) const
    {
        return GetPromoted( name, 5, i1,  i2,  i3,  i4,  i5); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6) const
    {
        return GetPromoted( name, 6, i1,  i2,  i3,  i4,  i5,  i6); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7) const
    {
        return GetPromoted( name, 7, i1,  i2,  i3,  i4,  i5,  i6,  i7); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8) const
    {
        return GetPromoted( name, 8, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9) const
    {
        return GetPromoted( name, 9, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10) const
    {
        return GetPromoted( name, 10, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11) const
    {
        return GetPromoted( name, 11, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12) const
    {
        return GetPromoted( name, 12, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13) const
    {
        return GetPromoted( name, 13, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14) const
    {
        return GetPromoted( name, 14, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15) const
    {
        return GetPromoted( name, 15, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16) const
    {
        return GetPromoted( name, 16, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17) const
    {
        return GetPromoted( name, 17, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18) const
    {
        return GetPromoted( name, 18, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19) const
    {
        return GetPromoted( name, 19, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20) const
    {
        return GetPromoted( name, 20, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21) const
    {
        return GetPromoted( name, 21, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22) const
    {
        return GetPromoted( name, 22, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23) const
    {
        return GetPromoted( name, 23, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24) const
    {
        return GetPromoted( name, 24, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25) const
    {
        return GetPromoted( name, 25, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26) const
    {
        return GetPromoted( name, 26, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27) const
    {
        return GetPromoted( name, 27, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27, mwIndex i28) const
    {
        return GetPromoted( name, 28, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27, i28); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27, mwIndex i28, mwIndex i29) const
    {
        return GetPromoted( name, 29, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27, i28, i29); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27, mwIndex i28, mwIndex i29, mwIndex i30) const
    {
        return GetPromoted( name, 30, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27, i28, i29, i30); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27, mwIndex i28, mwIndex i29, mwIndex i30, mwIndex i31) const
    {
        return GetPromoted( name, 31, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27, i28, i29, i30, i31); 
    }
    const mwArray Get(const char *name, mwSize num_indices, mwIndex i1, mwIndex i2, mwIndex i3, mwIndex i4, mwIndex i5, mwIndex i6, mwIndex i7, mwIndex i8, mwIndex i9, mwIndex i10, mwIndex i11, mwIndex i12, mwIndex i13, mwIndex i14, mwIndex i15, mwIndex i16, mwIndex i17, mwIndex i18, mwIndex i19, mwIndex i20, mwIndex i21, mwIndex i22, mwIndex i23, mwIndex i24, mwIndex i25, mwIndex i26, mwIndex i27, mwIndex i28, mwIndex i29, mwIndex i30, mwIndex i31, mwIndex i32) const
    {
        return GetPromoted( name, 32, i1,  i2,  i3,  i4,  i5,  i6,  i7,  i8,  i9,  i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, i21, i22, i23, i24, i25,  i26, i27, i28, i29, i30, i31, i32); 
    }
    mwArray GetPromoted(const char* name, mwSize num_indices, ...)
    {
        va_list vargs;
        va_start(vargs, num_indices);
        array_ref* p = array_ref_getV_const_char(m_pa, name, num_indices,
						 vargs);
        va_end(vargs);
        if (!p)
            mwException::raise_error();
        return mwArray(p);
    }
For faster browsing, not all history is shown. View entire blame