OR-Tools  9.2
knapsack_solver_csharp_wrap.cc
Go to the documentation of this file.
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 4.0.2
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11
12#ifndef SWIGCSHARP
13#define SWIGCSHARP
14#endif
15
16
17
18#ifdef __cplusplus
19/* SwigValueWrapper is described in swig.swg */
20template<typename T> class SwigValueWrapper {
21 struct SwigMovePointer {
22 T *ptr;
23 SwigMovePointer(T *p) : ptr(p) { }
24 ~SwigMovePointer() { delete ptr; }
25 SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
26 } pointer;
27 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
28 SwigValueWrapper(const SwigValueWrapper<T>& rhs);
29public:
30 SwigValueWrapper() : pointer(0) { }
31 SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
32 operator T&() const { return *pointer.ptr; }
33 T *operator&() { return pointer.ptr; }
34};
35
36template <typename T> T SwigValueInit() {
37 return T();
38}
39#endif
40
41/* -----------------------------------------------------------------------------
42 * This section contains generic SWIG labels for method/variable
43 * declarations/attributes, and other compiler dependent labels.
44 * ----------------------------------------------------------------------------- */
45
46/* template workaround for compilers that cannot correctly implement the C++ standard */
47#ifndef SWIGTEMPLATEDISAMBIGUATOR
48# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
49# define SWIGTEMPLATEDISAMBIGUATOR template
50# elif defined(__HP_aCC)
51/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
52/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
53# define SWIGTEMPLATEDISAMBIGUATOR template
54# else
55# define SWIGTEMPLATEDISAMBIGUATOR
56# endif
57#endif
58
59/* inline attribute */
60#ifndef SWIGINLINE
61# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
62# define SWIGINLINE inline
63# else
64# define SWIGINLINE
65# endif
66#endif
67
68/* attribute recognised by some compilers to avoid 'unused' warnings */
69#ifndef SWIGUNUSED
70# if defined(__GNUC__)
71# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
72# define SWIGUNUSED __attribute__ ((__unused__))
73# else
74# define SWIGUNUSED
75# endif
76# elif defined(__ICC)
77# define SWIGUNUSED __attribute__ ((__unused__))
78# else
79# define SWIGUNUSED
80# endif
81#endif
82
83#ifndef SWIG_MSC_UNSUPPRESS_4505
84# if defined(_MSC_VER)
85# pragma warning(disable : 4505) /* unreferenced local function has been removed */
86# endif
87#endif
88
89#ifndef SWIGUNUSEDPARM
90# ifdef __cplusplus
91# define SWIGUNUSEDPARM(p)
92# else
93# define SWIGUNUSEDPARM(p) p SWIGUNUSED
94# endif
95#endif
96
97/* internal SWIG method */
98#ifndef SWIGINTERN
99# define SWIGINTERN static SWIGUNUSED
100#endif
101
102/* internal inline SWIG method */
103#ifndef SWIGINTERNINLINE
104# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
105#endif
106
107/* exporting methods */
108#if defined(__GNUC__)
109# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
110# ifndef GCC_HASCLASSVISIBILITY
111# define GCC_HASCLASSVISIBILITY
112# endif
113# endif
114#endif
115
116#ifndef SWIGEXPORT
117# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
118# if defined(STATIC_LINKED)
119# define SWIGEXPORT
120# else
121# define SWIGEXPORT __declspec(dllexport)
122# endif
123# else
124# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
125# define SWIGEXPORT __attribute__ ((visibility("default")))
126# else
127# define SWIGEXPORT
128# endif
129# endif
130#endif
131
132/* calling conventions for Windows */
133#ifndef SWIGSTDCALL
134# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
135# define SWIGSTDCALL __stdcall
136# else
137# define SWIGSTDCALL
138# endif
139#endif
140
141/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
142#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
143# define _CRT_SECURE_NO_DEPRECATE
144#endif
145
146/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
147#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
148# define _SCL_SECURE_NO_DEPRECATE
149#endif
150
151/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
152#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
153# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
154#endif
155
156/* Intel's compiler complains if a variable which was never initialised is
157 * cast to void, which is a common idiom which we use to indicate that we
158 * are aware a variable isn't used. So we just silence that warning.
159 * See: https://github.com/swig/swig/issues/192 for more discussion.
160 */
161#ifdef __INTEL_COMPILER
162# pragma warning disable 592
163#endif
164
165
166#include <stdlib.h>
167#include <string.h>
168#include <stdio.h>
169
170
171/* Support for throwing C# exceptions from C/C++. There are two types:
172 * Exceptions that take a message and ArgumentExceptions that take a message and a parameter name. */
173typedef enum {
186
187typedef enum {
192
193typedef void (SWIGSTDCALL* SWIG_CSharpExceptionCallback_t)(const char *);
194typedef void (SWIGSTDCALL* SWIG_CSharpExceptionArgumentCallback_t)(const char *, const char *);
195
196typedef struct {
200
201typedef struct {
205
213 { SWIG_CSharpIOException, NULL },
218};
219
224};
225
228 if ((size_t)code < sizeof(SWIG_csharp_exceptions)/sizeof(SWIG_CSharpException_t)) {
230 }
231 callback(msg);
232}
233
234static void SWIGUNUSED SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpExceptionArgumentCodes code, const char *msg, const char *param_name) {
236 if ((size_t)code < sizeof(SWIG_csharp_exceptions_argument)/sizeof(SWIG_CSharpExceptionArgument_t)) {
238 }
239 callback(msg, param_name);
240}
241
242
243#ifdef __cplusplus
244extern "C"
245#endif
247 SWIG_CSharpExceptionCallback_t applicationCallback,
248 SWIG_CSharpExceptionCallback_t arithmeticCallback,
249 SWIG_CSharpExceptionCallback_t divideByZeroCallback,
250 SWIG_CSharpExceptionCallback_t indexOutOfRangeCallback,
251 SWIG_CSharpExceptionCallback_t invalidCastCallback,
252 SWIG_CSharpExceptionCallback_t invalidOperationCallback,
254 SWIG_CSharpExceptionCallback_t nullReferenceCallback,
255 SWIG_CSharpExceptionCallback_t outOfMemoryCallback,
256 SWIG_CSharpExceptionCallback_t overflowCallback,
257 SWIG_CSharpExceptionCallback_t systemCallback) {
269}
270
271#ifdef __cplusplus
272extern "C"
273#endif
276 SWIG_CSharpExceptionArgumentCallback_t argumentNullCallback,
277 SWIG_CSharpExceptionArgumentCallback_t argumentOutOfRangeCallback) {
281}
282
283
284/* Callback for returning strings to C# without leaking memory */
285typedef char * (SWIGSTDCALL* SWIG_CSharpStringHelperCallback)(const char *);
287
288
289#ifdef __cplusplus
290extern "C"
291#endif
294}
295
296
297/* Contract support */
298
299#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, msg, ""); return nullreturn; } else
300
301
302#include <cstdint>
303#include <string>
304#include <vector>
305
307
308
309#include <stdint.h> // Use the C99 official header
310
311
312#include <string>
313
314
315#include <vector>
317
318
319#include <typeinfo>
320#include <stdexcept>
321
322
323#include <vector>
324#include <algorithm>
325#include <stdexcept>
326
328 std::vector< int >* pv = 0;
329 if (capacity >= 0) {
330 pv = new std::vector< int >();
331 pv->reserve(capacity);
332 } else {
333 throw std::out_of_range("capacity");
334 }
335 return pv;
336 }
337SWIGINTERN int std_vector_Sl_int_Sg__getitemcopy(std::vector< int > *self,int index){
338 if (index>=0 && index<(int)self->size())
339 return (*self)[index];
340 else
341 throw std::out_of_range("index");
342 }
343SWIGINTERN std::vector< int >::value_type const &std_vector_Sl_int_Sg__getitem(std::vector< int > *self,int index){
344 if (index>=0 && index<(int)self->size())
345 return (*self)[index];
346 else
347 throw std::out_of_range("index");
348 }
349SWIGINTERN void std_vector_Sl_int_Sg__setitem(std::vector< int > *self,int index,int const &val){
350 if (index>=0 && index<(int)self->size())
351 (*self)[index] = val;
352 else
353 throw std::out_of_range("index");
354 }
355SWIGINTERN void std_vector_Sl_int_Sg__AddRange(std::vector< int > *self,std::vector< int > const &values){
356 self->insert(self->end(), values.begin(), values.end());
357 }
358SWIGINTERN std::vector< int > *std_vector_Sl_int_Sg__GetRange(std::vector< int > *self,int index,int count){
359 if (index < 0)
360 throw std::out_of_range("index");
361 if (count < 0)
362 throw std::out_of_range("count");
363 if (index >= (int)self->size()+1 || index+count > (int)self->size())
364 throw std::invalid_argument("invalid range");
365 return new std::vector< int >(self->begin()+index, self->begin()+index+count);
366 }
367SWIGINTERN void std_vector_Sl_int_Sg__Insert(std::vector< int > *self,int index,int const &x){
368 if (index>=0 && index<(int)self->size()+1)
369 self->insert(self->begin()+index, x);
370 else
371 throw std::out_of_range("index");
372 }
373SWIGINTERN void std_vector_Sl_int_Sg__InsertRange(std::vector< int > *self,int index,std::vector< int > const &values){
374 if (index>=0 && index<(int)self->size()+1)
375 self->insert(self->begin()+index, values.begin(), values.end());
376 else
377 throw std::out_of_range("index");
378 }
379SWIGINTERN void std_vector_Sl_int_Sg__RemoveAt(std::vector< int > *self,int index){
380 if (index>=0 && index<(int)self->size())
381 self->erase(self->begin() + index);
382 else
383 throw std::out_of_range("index");
384 }
385SWIGINTERN void std_vector_Sl_int_Sg__RemoveRange(std::vector< int > *self,int index,int count){
386 if (index < 0)
387 throw std::out_of_range("index");
388 if (count < 0)
389 throw std::out_of_range("count");
390 if (index >= (int)self->size()+1 || index+count > (int)self->size())
391 throw std::invalid_argument("invalid range");
392 self->erase(self->begin()+index, self->begin()+index+count);
393 }
394SWIGINTERN std::vector< int > *std_vector_Sl_int_Sg__Repeat(int const &value,int count){
395 if (count < 0)
396 throw std::out_of_range("count");
397 return new std::vector< int >(count, value);
398 }
400 std::reverse(self->begin(), self->end());
401 }
402SWIGINTERN void std_vector_Sl_int_Sg__Reverse__SWIG_1(std::vector< int > *self,int index,int count){
403 if (index < 0)
404 throw std::out_of_range("index");
405 if (count < 0)
406 throw std::out_of_range("count");
407 if (index >= (int)self->size()+1 || index+count > (int)self->size())
408 throw std::invalid_argument("invalid range");
409 std::reverse(self->begin()+index, self->begin()+index+count);
410 }
411SWIGINTERN void std_vector_Sl_int_Sg__SetRange(std::vector< int > *self,int index,std::vector< int > const &values){
412 if (index < 0)
413 throw std::out_of_range("index");
414 if (index+values.size() > self->size())
415 throw std::out_of_range("index");
416 std::copy(values.begin(), values.end(), self->begin()+index);
417 }
418SWIGINTERN bool std_vector_Sl_int_Sg__Contains(std::vector< int > *self,int const &value){
419 return std::find(self->begin(), self->end(), value) != self->end();
420 }
421SWIGINTERN int std_vector_Sl_int_Sg__IndexOf(std::vector< int > *self,int const &value){
422 int index = -1;
423 std::vector< int >::iterator it = std::find(self->begin(), self->end(), value);
424 if (it != self->end())
425 index = (int)(it - self->begin());
426 return index;
427 }
428SWIGINTERN int std_vector_Sl_int_Sg__LastIndexOf(std::vector< int > *self,int const &value){
429 int index = -1;
430 std::vector< int >::reverse_iterator rit = std::find(self->rbegin(), self->rend(), value);
431 if (rit != self->rend())
432 index = (int)(self->rend() - 1 - rit);
433 return index;
434 }
435SWIGINTERN bool std_vector_Sl_int_Sg__Remove(std::vector< int > *self,int const &value){
436 std::vector< int >::iterator it = std::find(self->begin(), self->end(), value);
437 if (it != self->end()) {
438 self->erase(it);
439 return true;
440 }
441 return false;
442 }
444 std::vector< std::vector< int > >* pv = 0;
445 if (capacity >= 0) {
446 pv = new std::vector< std::vector< int > >();
447 pv->reserve(capacity);
448 } else {
449 throw std::out_of_range("capacity");
450 }
451 return pv;
452 }
453SWIGINTERN std::vector< int > std_vector_Sl_std_vector_Sl_int_Sg__Sg__getitemcopy(std::vector< std::vector< int > > *self,int index){
454 if (index>=0 && index<(int)self->size())
455 return (*self)[index];
456 else
457 throw std::out_of_range("index");
458 }
459SWIGINTERN std::vector< std::vector< int > >::value_type const &std_vector_Sl_std_vector_Sl_int_Sg__Sg__getitem(std::vector< std::vector< int > > *self,int index){
460 if (index>=0 && index<(int)self->size())
461 return (*self)[index];
462 else
463 throw std::out_of_range("index");
464 }
465SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__setitem(std::vector< std::vector< int > > *self,int index,std::vector< int > const &val){
466 if (index>=0 && index<(int)self->size())
467 (*self)[index] = val;
468 else
469 throw std::out_of_range("index");
470 }
471SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__AddRange(std::vector< std::vector< int > > *self,std::vector< std::vector< int > > const &values){
472 self->insert(self->end(), values.begin(), values.end());
473 }
474SWIGINTERN std::vector< std::vector< int > > *std_vector_Sl_std_vector_Sl_int_Sg__Sg__GetRange(std::vector< std::vector< int > > *self,int index,int count){
475 if (index < 0)
476 throw std::out_of_range("index");
477 if (count < 0)
478 throw std::out_of_range("count");
479 if (index >= (int)self->size()+1 || index+count > (int)self->size())
480 throw std::invalid_argument("invalid range");
481 return new std::vector< std::vector< int > >(self->begin()+index, self->begin()+index+count);
482 }
483SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__Insert(std::vector< std::vector< int > > *self,int index,std::vector< int > const &x){
484 if (index>=0 && index<(int)self->size()+1)
485 self->insert(self->begin()+index, x);
486 else
487 throw std::out_of_range("index");
488 }
489SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__InsertRange(std::vector< std::vector< int > > *self,int index,std::vector< std::vector< int > > const &values){
490 if (index>=0 && index<(int)self->size()+1)
491 self->insert(self->begin()+index, values.begin(), values.end());
492 else
493 throw std::out_of_range("index");
494 }
495SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__RemoveAt(std::vector< std::vector< int > > *self,int index){
496 if (index>=0 && index<(int)self->size())
497 self->erase(self->begin() + index);
498 else
499 throw std::out_of_range("index");
500 }
501SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__RemoveRange(std::vector< std::vector< int > > *self,int index,int count){
502 if (index < 0)
503 throw std::out_of_range("index");
504 if (count < 0)
505 throw std::out_of_range("count");
506 if (index >= (int)self->size()+1 || index+count > (int)self->size())
507 throw std::invalid_argument("invalid range");
508 self->erase(self->begin()+index, self->begin()+index+count);
509 }
510SWIGINTERN std::vector< std::vector< int > > *std_vector_Sl_std_vector_Sl_int_Sg__Sg__Repeat(std::vector< int > const &value,int count){
511 if (count < 0)
512 throw std::out_of_range("count");
513 return new std::vector< std::vector< int > >(count, value);
514 }
515SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__Reverse__SWIG_0(std::vector< std::vector< int > > *self){
516 std::reverse(self->begin(), self->end());
517 }
518SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__Reverse__SWIG_1(std::vector< std::vector< int > > *self,int index,int count){
519 if (index < 0)
520 throw std::out_of_range("index");
521 if (count < 0)
522 throw std::out_of_range("count");
523 if (index >= (int)self->size()+1 || index+count > (int)self->size())
524 throw std::invalid_argument("invalid range");
525 std::reverse(self->begin()+index, self->begin()+index+count);
526 }
527SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__SetRange(std::vector< std::vector< int > > *self,int index,std::vector< std::vector< int > > const &values){
528 if (index < 0)
529 throw std::out_of_range("index");
530 if (index+values.size() > self->size())
531 throw std::out_of_range("index");
532 std::copy(values.begin(), values.end(), self->begin()+index);
533 }
535 std::vector< long long >* pv = 0;
536 if (capacity >= 0) {
537 pv = new std::vector< long long >();
538 pv->reserve(capacity);
539 } else {
540 throw std::out_of_range("capacity");
541 }
542 return pv;
543 }
544SWIGINTERN long long std_vector_Sl_int64_t_Sg__getitemcopy(std::vector< int64_t > *self,int index){
545 if (index>=0 && index<(int)self->size())
546 return (*self)[index];
547 else
548 throw std::out_of_range("index");
549 }
550SWIGINTERN std::vector< long long >::value_type const &std_vector_Sl_int64_t_Sg__getitem(std::vector< int64_t > *self,int index){
551 if (index>=0 && index<(int)self->size())
552 return (*self)[index];
553 else
554 throw std::out_of_range("index");
555 }
556SWIGINTERN void std_vector_Sl_int64_t_Sg__setitem(std::vector< int64_t > *self,int index,long long const &val){
557 if (index>=0 && index<(int)self->size())
558 (*self)[index] = val;
559 else
560 throw std::out_of_range("index");
561 }
562SWIGINTERN void std_vector_Sl_int64_t_Sg__AddRange(std::vector< int64_t > *self,std::vector< long long > const &values){
563 self->insert(self->end(), values.begin(), values.end());
564 }
565SWIGINTERN std::vector< long long > *std_vector_Sl_int64_t_Sg__GetRange(std::vector< int64_t > *self,int index,int count){
566 if (index < 0)
567 throw std::out_of_range("index");
568 if (count < 0)
569 throw std::out_of_range("count");
570 if (index >= (int)self->size()+1 || index+count > (int)self->size())
571 throw std::invalid_argument("invalid range");
572 return new std::vector< long long >(self->begin()+index, self->begin()+index+count);
573 }
574SWIGINTERN void std_vector_Sl_int64_t_Sg__Insert(std::vector< int64_t > *self,int index,long long const &x){
575 if (index>=0 && index<(int)self->size()+1)
576 self->insert(self->begin()+index, x);
577 else
578 throw std::out_of_range("index");
579 }
580SWIGINTERN void std_vector_Sl_int64_t_Sg__InsertRange(std::vector< int64_t > *self,int index,std::vector< long long > const &values){
581 if (index>=0 && index<(int)self->size()+1)
582 self->insert(self->begin()+index, values.begin(), values.end());
583 else
584 throw std::out_of_range("index");
585 }
586SWIGINTERN void std_vector_Sl_int64_t_Sg__RemoveAt(std::vector< int64_t > *self,int index){
587 if (index>=0 && index<(int)self->size())
588 self->erase(self->begin() + index);
589 else
590 throw std::out_of_range("index");
591 }
592SWIGINTERN void std_vector_Sl_int64_t_Sg__RemoveRange(std::vector< int64_t > *self,int index,int count){
593 if (index < 0)
594 throw std::out_of_range("index");
595 if (count < 0)
596 throw std::out_of_range("count");
597 if (index >= (int)self->size()+1 || index+count > (int)self->size())
598 throw std::invalid_argument("invalid range");
599 self->erase(self->begin()+index, self->begin()+index+count);
600 }
601SWIGINTERN std::vector< long long > *std_vector_Sl_int64_t_Sg__Repeat(long long const &value,int count){
602 if (count < 0)
603 throw std::out_of_range("count");
604 return new std::vector< long long >(count, value);
605 }
606SWIGINTERN void std_vector_Sl_int64_t_Sg__Reverse__SWIG_0(std::vector< int64_t > *self){
607 std::reverse(self->begin(), self->end());
608 }
609SWIGINTERN void std_vector_Sl_int64_t_Sg__Reverse__SWIG_1(std::vector< int64_t > *self,int index,int count){
610 if (index < 0)
611 throw std::out_of_range("index");
612 if (count < 0)
613 throw std::out_of_range("count");
614 if (index >= (int)self->size()+1 || index+count > (int)self->size())
615 throw std::invalid_argument("invalid range");
616 std::reverse(self->begin()+index, self->begin()+index+count);
617 }
618SWIGINTERN void std_vector_Sl_int64_t_Sg__SetRange(std::vector< int64_t > *self,int index,std::vector< long long > const &values){
619 if (index < 0)
620 throw std::out_of_range("index");
621 if (index+values.size() > self->size())
622 throw std::out_of_range("index");
623 std::copy(values.begin(), values.end(), self->begin()+index);
624 }
625SWIGINTERN bool std_vector_Sl_int64_t_Sg__Contains(std::vector< int64_t > *self,long long const &value){
626 return std::find(self->begin(), self->end(), value) != self->end();
627 }
628SWIGINTERN int std_vector_Sl_int64_t_Sg__IndexOf(std::vector< int64_t > *self,long long const &value){
629 int index = -1;
630 std::vector< long long >::iterator it = std::find(self->begin(), self->end(), value);
631 if (it != self->end())
632 index = (int)(it - self->begin());
633 return index;
634 }
635SWIGINTERN int std_vector_Sl_int64_t_Sg__LastIndexOf(std::vector< int64_t > *self,long long const &value){
636 int index = -1;
637 std::vector< long long >::reverse_iterator rit = std::find(self->rbegin(), self->rend(), value);
638 if (rit != self->rend())
639 index = (int)(self->rend() - 1 - rit);
640 return index;
641 }
642SWIGINTERN bool std_vector_Sl_int64_t_Sg__Remove(std::vector< int64_t > *self,long long const &value){
643 std::vector< long long >::iterator it = std::find(self->begin(), self->end(), value);
644 if (it != self->end()) {
645 self->erase(it);
646 return true;
647 }
648 return false;
649 }
651 std::vector< std::vector< int64_t > >* pv = 0;
652 if (capacity >= 0) {
653 pv = new std::vector< std::vector< int64_t > >();
654 pv->reserve(capacity);
655 } else {
656 throw std::out_of_range("capacity");
657 }
658 return pv;
659 }
660SWIGINTERN std::vector< int64_t > std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__getitemcopy(std::vector< std::vector< int64_t > > *self,int index){
661 if (index>=0 && index<(int)self->size())
662 return (*self)[index];
663 else
664 throw std::out_of_range("index");
665 }
666SWIGINTERN std::vector< std::vector< long long > >::value_type const &std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__getitem(std::vector< std::vector< int64_t > > *self,int index){
667 if (index>=0 && index<(int)self->size())
668 return (*self)[index];
669 else
670 throw std::out_of_range("index");
671 }
672SWIGINTERN void std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__setitem(std::vector< std::vector< int64_t > > *self,int index,std::vector< int64_t > const &val){
673 if (index>=0 && index<(int)self->size())
674 (*self)[index] = val;
675 else
676 throw std::out_of_range("index");
677 }
678SWIGINTERN void std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__AddRange(std::vector< std::vector< int64_t > > *self,std::vector< std::vector< int64_t > > const &values){
679 self->insert(self->end(), values.begin(), values.end());
680 }
681SWIGINTERN std::vector< std::vector< int64_t > > *std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__GetRange(std::vector< std::vector< int64_t > > *self,int index,int count){
682 if (index < 0)
683 throw std::out_of_range("index");
684 if (count < 0)
685 throw std::out_of_range("count");
686 if (index >= (int)self->size()+1 || index+count > (int)self->size())
687 throw std::invalid_argument("invalid range");
688 return new std::vector< std::vector< int64_t > >(self->begin()+index, self->begin()+index+count);
689 }
690SWIGINTERN void std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__Insert(std::vector< std::vector< int64_t > > *self,int index,std::vector< int64_t > const &x){
691 if (index>=0 && index<(int)self->size()+1)
692 self->insert(self->begin()+index, x);
693 else
694 throw std::out_of_range("index");
695 }
696SWIGINTERN void std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__InsertRange(std::vector< std::vector< int64_t > > *self,int index,std::vector< std::vector< int64_t > > const &values){
697 if (index>=0 && index<(int)self->size()+1)
698 self->insert(self->begin()+index, values.begin(), values.end());
699 else
700 throw std::out_of_range("index");
701 }
702SWIGINTERN void std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__RemoveAt(std::vector< std::vector< int64_t > > *self,int index){
703 if (index>=0 && index<(int)self->size())
704 self->erase(self->begin() + index);
705 else
706 throw std::out_of_range("index");
707 }
708SWIGINTERN void std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__RemoveRange(std::vector< std::vector< int64_t > > *self,int index,int count){
709 if (index < 0)
710 throw std::out_of_range("index");
711 if (count < 0)
712 throw std::out_of_range("count");
713 if (index >= (int)self->size()+1 || index+count > (int)self->size())
714 throw std::invalid_argument("invalid range");
715 self->erase(self->begin()+index, self->begin()+index+count);
716 }
717SWIGINTERN std::vector< std::vector< int64_t > > *std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__Repeat(std::vector< int64_t > const &value,int count){
718 if (count < 0)
719 throw std::out_of_range("count");
720 return new std::vector< std::vector< int64_t > >(count, value);
721 }
722SWIGINTERN void std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__Reverse__SWIG_0(std::vector< std::vector< int64_t > > *self){
723 std::reverse(self->begin(), self->end());
724 }
725SWIGINTERN void std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__Reverse__SWIG_1(std::vector< std::vector< int64_t > > *self,int index,int count){
726 if (index < 0)
727 throw std::out_of_range("index");
728 if (count < 0)
729 throw std::out_of_range("count");
730 if (index >= (int)self->size()+1 || index+count > (int)self->size())
731 throw std::invalid_argument("invalid range");
732 std::reverse(self->begin()+index, self->begin()+index+count);
733 }
734SWIGINTERN void std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__SetRange(std::vector< std::vector< int64_t > > *self,int index,std::vector< std::vector< int64_t > > const &values){
735 if (index < 0)
736 throw std::out_of_range("index");
737 if (index+values.size() > self->size())
738 throw std::out_of_range("index");
739 std::copy(values.begin(), values.end(), self->begin()+index);
740 }
741
743
744
745#ifdef __cplusplus
746extern "C" {
747#endif
748
750 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
751
752 arg1 = (std::vector< int > *)jarg1;
753 (arg1)->clear();
754}
755
756
758 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
759 int *arg2 = 0 ;
760 int temp2 ;
761
762 arg1 = (std::vector< int > *)jarg1;
763 temp2 = (int)jarg2;
764 arg2 = &temp2;
765 (arg1)->push_back((int const &)*arg2);
766}
767
768
770 unsigned long jresult ;
771 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
772 std::vector< int >::size_type result;
773
774 arg1 = (std::vector< int > *)jarg1;
775 result = ((std::vector< int > const *)arg1)->size();
776 jresult = (unsigned long)result;
777 return jresult;
778}
779
780
782 unsigned long jresult ;
783 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
784 std::vector< int >::size_type result;
785
786 arg1 = (std::vector< int > *)jarg1;
787 result = ((std::vector< int > const *)arg1)->capacity();
788 jresult = (unsigned long)result;
789 return jresult;
790}
791
792
794 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
795 std::vector< int >::size_type arg2 ;
796
797 arg1 = (std::vector< int > *)jarg1;
798 arg2 = (std::vector< int >::size_type)jarg2;
799 (arg1)->reserve(arg2);
800}
801
802
804 void * jresult ;
805 std::vector< int > *result = 0 ;
806
807 result = (std::vector< int > *)new std::vector< int >();
808 jresult = (void *)result;
809 return jresult;
810}
811
812
814 void * jresult ;
815 std::vector< int > *arg1 = 0 ;
816 std::vector< int > *result = 0 ;
817
818 arg1 = (std::vector< int > *)jarg1;
819 if (!arg1) {
820 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int > const & type is null", 0);
821 return 0;
822 }
823 result = (std::vector< int > *)new std::vector< int >((std::vector< int > const &)*arg1);
824 jresult = (void *)result;
825 return jresult;
826}
827
828
830 void * jresult ;
831 int arg1 ;
832 std::vector< int > *result = 0 ;
833
834 arg1 = (int)jarg1;
835 try {
836 result = (std::vector< int > *)new_std_vector_Sl_int_Sg___SWIG_2(arg1);
837 } catch(std::out_of_range &_e) {
839 return 0;
840 }
841 jresult = (void *)result;
842 return jresult;
843}
844
845
847 int jresult ;
848 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
849 int arg2 ;
850 int result;
851
852 arg1 = (std::vector< int > *)jarg1;
853 arg2 = (int)jarg2;
854 try {
855 result = (int)std_vector_Sl_int_Sg__getitemcopy(arg1,arg2);
856 } catch(std::out_of_range &_e) {
858 return 0;
859 }
860 jresult = result;
861 return jresult;
862}
863
864
866 int jresult ;
867 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
868 int arg2 ;
869 std::vector< int >::value_type *result = 0 ;
870
871 arg1 = (std::vector< int > *)jarg1;
872 arg2 = (int)jarg2;
873 try {
874 result = (std::vector< int >::value_type *) &std_vector_Sl_int_Sg__getitem(arg1,arg2);
875 } catch(std::out_of_range &_e) {
877 return 0;
878 }
879 jresult = *result;
880 return jresult;
881}
882
883
885 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
886 int arg2 ;
887 int *arg3 = 0 ;
888 int temp3 ;
889
890 arg1 = (std::vector< int > *)jarg1;
891 arg2 = (int)jarg2;
892 temp3 = (int)jarg3;
893 arg3 = &temp3;
894 try {
895 std_vector_Sl_int_Sg__setitem(arg1,arg2,(int const &)*arg3);
896 } catch(std::out_of_range &_e) {
898 return ;
899 }
900}
901
902
904 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
905 std::vector< int > *arg2 = 0 ;
906
907 arg1 = (std::vector< int > *)jarg1;
908 arg2 = (std::vector< int > *)jarg2;
909 if (!arg2) {
910 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int > const & type is null", 0);
911 return ;
912 }
913 std_vector_Sl_int_Sg__AddRange(arg1,(std::vector< int > const &)*arg2);
914}
915
916
918 void * jresult ;
919 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
920 int arg2 ;
921 int arg3 ;
922 std::vector< int > *result = 0 ;
923
924 arg1 = (std::vector< int > *)jarg1;
925 arg2 = (int)jarg2;
926 arg3 = (int)jarg3;
927 try {
928 result = (std::vector< int > *)std_vector_Sl_int_Sg__GetRange(arg1,arg2,arg3);
929 } catch(std::out_of_range &_e) {
931 return 0;
932 } catch(std::invalid_argument &_e) {
934 return 0;
935 }
936 jresult = (void *)result;
937 return jresult;
938}
939
940
942 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
943 int arg2 ;
944 int *arg3 = 0 ;
945 int temp3 ;
946
947 arg1 = (std::vector< int > *)jarg1;
948 arg2 = (int)jarg2;
949 temp3 = (int)jarg3;
950 arg3 = &temp3;
951 try {
952 std_vector_Sl_int_Sg__Insert(arg1,arg2,(int const &)*arg3);
953 } catch(std::out_of_range &_e) {
955 return ;
956 }
957}
958
959
961 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
962 int arg2 ;
963 std::vector< int > *arg3 = 0 ;
964
965 arg1 = (std::vector< int > *)jarg1;
966 arg2 = (int)jarg2;
967 arg3 = (std::vector< int > *)jarg3;
968 if (!arg3) {
969 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int > const & type is null", 0);
970 return ;
971 }
972 try {
973 std_vector_Sl_int_Sg__InsertRange(arg1,arg2,(std::vector< int > const &)*arg3);
974 } catch(std::out_of_range &_e) {
976 return ;
977 }
978}
979
980
982 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
983 int arg2 ;
984
985 arg1 = (std::vector< int > *)jarg1;
986 arg2 = (int)jarg2;
987 try {
989 } catch(std::out_of_range &_e) {
991 return ;
992 }
993}
994
995
997 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
998 int arg2 ;
999 int arg3 ;
1000
1001 arg1 = (std::vector< int > *)jarg1;
1002 arg2 = (int)jarg2;
1003 arg3 = (int)jarg3;
1004 try {
1005 std_vector_Sl_int_Sg__RemoveRange(arg1,arg2,arg3);
1006 } catch(std::out_of_range &_e) {
1008 return ;
1009 } catch(std::invalid_argument &_e) {
1011 return ;
1012 }
1013}
1014
1015
1017 void * jresult ;
1018 int *arg1 = 0 ;
1019 int arg2 ;
1020 int temp1 ;
1021 std::vector< int > *result = 0 ;
1022
1023 temp1 = (int)jarg1;
1024 arg1 = &temp1;
1025 arg2 = (int)jarg2;
1026 try {
1027 result = (std::vector< int > *)std_vector_Sl_int_Sg__Repeat((int const &)*arg1,arg2);
1028 } catch(std::out_of_range &_e) {
1030 return 0;
1031 }
1032 jresult = (void *)result;
1033 return jresult;
1034}
1035
1036
1038 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1039
1040 arg1 = (std::vector< int > *)jarg1;
1042}
1043
1044
1046 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1047 int arg2 ;
1048 int arg3 ;
1049
1050 arg1 = (std::vector< int > *)jarg1;
1051 arg2 = (int)jarg2;
1052 arg3 = (int)jarg3;
1053 try {
1055 } catch(std::out_of_range &_e) {
1057 return ;
1058 } catch(std::invalid_argument &_e) {
1060 return ;
1061 }
1062}
1063
1064
1066 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1067 int arg2 ;
1068 std::vector< int > *arg3 = 0 ;
1069
1070 arg1 = (std::vector< int > *)jarg1;
1071 arg2 = (int)jarg2;
1072 arg3 = (std::vector< int > *)jarg3;
1073 if (!arg3) {
1074 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int > const & type is null", 0);
1075 return ;
1076 }
1077 try {
1078 std_vector_Sl_int_Sg__SetRange(arg1,arg2,(std::vector< int > const &)*arg3);
1079 } catch(std::out_of_range &_e) {
1081 return ;
1082 }
1083}
1084
1085
1087 unsigned int jresult ;
1088 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1089 int *arg2 = 0 ;
1090 int temp2 ;
1091 bool result;
1092
1093 arg1 = (std::vector< int > *)jarg1;
1094 temp2 = (int)jarg2;
1095 arg2 = &temp2;
1096 result = (bool)std_vector_Sl_int_Sg__Contains(arg1,(int const &)*arg2);
1097 jresult = result;
1098 return jresult;
1099}
1100
1101
1103 int jresult ;
1104 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1105 int *arg2 = 0 ;
1106 int temp2 ;
1107 int result;
1108
1109 arg1 = (std::vector< int > *)jarg1;
1110 temp2 = (int)jarg2;
1111 arg2 = &temp2;
1112 result = (int)std_vector_Sl_int_Sg__IndexOf(arg1,(int const &)*arg2);
1113 jresult = result;
1114 return jresult;
1115}
1116
1117
1119 int jresult ;
1120 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1121 int *arg2 = 0 ;
1122 int temp2 ;
1123 int result;
1124
1125 arg1 = (std::vector< int > *)jarg1;
1126 temp2 = (int)jarg2;
1127 arg2 = &temp2;
1128 result = (int)std_vector_Sl_int_Sg__LastIndexOf(arg1,(int const &)*arg2);
1129 jresult = result;
1130 return jresult;
1131}
1132
1133
1135 unsigned int jresult ;
1136 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1137 int *arg2 = 0 ;
1138 int temp2 ;
1139 bool result;
1140
1141 arg1 = (std::vector< int > *)jarg1;
1142 temp2 = (int)jarg2;
1143 arg2 = &temp2;
1144 result = (bool)std_vector_Sl_int_Sg__Remove(arg1,(int const &)*arg2);
1145 jresult = result;
1146 return jresult;
1147}
1148
1149
1151 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1152
1153 arg1 = (std::vector< int > *)jarg1;
1154 delete arg1;
1155}
1156
1157
1159 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1160
1161 arg1 = (std::vector< std::vector< int > > *)jarg1;
1162 (arg1)->clear();
1163}
1164
1165
1167 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1168 std::vector< int > *arg2 = 0 ;
1169
1170 arg1 = (std::vector< std::vector< int > > *)jarg1;
1171 arg2 = (std::vector< int > *)jarg2;
1172 if (!arg2) {
1173 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int > const & type is null", 0);
1174 return ;
1175 }
1176 (arg1)->push_back((std::vector< int > const &)*arg2);
1177}
1178
1179
1181 unsigned long jresult ;
1182 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1183 std::vector< std::vector< int > >::size_type result;
1184
1185 arg1 = (std::vector< std::vector< int > > *)jarg1;
1186 result = ((std::vector< std::vector< int > > const *)arg1)->size();
1187 jresult = (unsigned long)result;
1188 return jresult;
1189}
1190
1191
1193 unsigned long jresult ;
1194 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1195 std::vector< std::vector< int > >::size_type result;
1196
1197 arg1 = (std::vector< std::vector< int > > *)jarg1;
1198 result = ((std::vector< std::vector< int > > const *)arg1)->capacity();
1199 jresult = (unsigned long)result;
1200 return jresult;
1201}
1202
1203
1205 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1206 std::vector< std::vector< int > >::size_type arg2 ;
1207
1208 arg1 = (std::vector< std::vector< int > > *)jarg1;
1209 arg2 = (std::vector< std::vector< int > >::size_type)jarg2;
1210 (arg1)->reserve(arg2);
1211}
1212
1213
1215 void * jresult ;
1216 std::vector< std::vector< int > > *result = 0 ;
1217
1218 result = (std::vector< std::vector< int > > *)new std::vector< std::vector< int > >();
1219 jresult = (void *)result;
1220 return jresult;
1221}
1222
1223
1225 void * jresult ;
1226 std::vector< std::vector< int > > *arg1 = 0 ;
1227 std::vector< std::vector< int > > *result = 0 ;
1228
1229 arg1 = (std::vector< std::vector< int > > *)jarg1;
1230 if (!arg1) {
1231 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< std::vector< int > > const & type is null", 0);
1232 return 0;
1233 }
1234 result = (std::vector< std::vector< int > > *)new std::vector< std::vector< int > >((std::vector< std::vector< int > > const &)*arg1);
1235 jresult = (void *)result;
1236 return jresult;
1237}
1238
1239
1241 void * jresult ;
1242 int arg1 ;
1243 std::vector< std::vector< int > > *result = 0 ;
1244
1245 arg1 = (int)jarg1;
1246 try {
1247 result = (std::vector< std::vector< int > > *)new_std_vector_Sl_std_vector_Sl_int_Sg__Sg___SWIG_2(arg1);
1248 } catch(std::out_of_range &_e) {
1250 return 0;
1251 }
1252 jresult = (void *)result;
1253 return jresult;
1254}
1255
1256
1258 void * jresult ;
1259 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1260 int arg2 ;
1261 std::vector< int > result;
1262
1263 arg1 = (std::vector< std::vector< int > > *)jarg1;
1264 arg2 = (int)jarg2;
1265 try {
1267 } catch(std::out_of_range &_e) {
1269 return 0;
1270 }
1271 jresult = new std::vector< int >((const std::vector< int > &)result);
1272 return jresult;
1273}
1274
1275
1277 void * jresult ;
1278 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1279 int arg2 ;
1280 std::vector< std::vector< int > >::value_type *result = 0 ;
1281
1282 arg1 = (std::vector< std::vector< int > > *)jarg1;
1283 arg2 = (int)jarg2;
1284 try {
1285 result = (std::vector< std::vector< int > >::value_type *) &std_vector_Sl_std_vector_Sl_int_Sg__Sg__getitem(arg1,arg2);
1286 } catch(std::out_of_range &_e) {
1288 return 0;
1289 }
1290 jresult = (void *)result;
1291 return jresult;
1292}
1293
1294
1296 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1297 int arg2 ;
1298 std::vector< int > *arg3 = 0 ;
1299
1300 arg1 = (std::vector< std::vector< int > > *)jarg1;
1301 arg2 = (int)jarg2;
1302 arg3 = (std::vector< int > *)jarg3;
1303 if (!arg3) {
1304 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int > const & type is null", 0);
1305 return ;
1306 }
1307 try {
1308 std_vector_Sl_std_vector_Sl_int_Sg__Sg__setitem(arg1,arg2,(std::vector< int > const &)*arg3);
1309 } catch(std::out_of_range &_e) {
1311 return ;
1312 }
1313}
1314
1315
1317 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1318 std::vector< std::vector< int > > *arg2 = 0 ;
1319
1320 arg1 = (std::vector< std::vector< int > > *)jarg1;
1321 arg2 = (std::vector< std::vector< int > > *)jarg2;
1322 if (!arg2) {
1323 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< std::vector< int > > const & type is null", 0);
1324 return ;
1325 }
1326 std_vector_Sl_std_vector_Sl_int_Sg__Sg__AddRange(arg1,(std::vector< std::vector< int > > const &)*arg2);
1327}
1328
1329
1331 void * jresult ;
1332 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1333 int arg2 ;
1334 int arg3 ;
1335 std::vector< std::vector< int > > *result = 0 ;
1336
1337 arg1 = (std::vector< std::vector< int > > *)jarg1;
1338 arg2 = (int)jarg2;
1339 arg3 = (int)jarg3;
1340 try {
1341 result = (std::vector< std::vector< int > > *)std_vector_Sl_std_vector_Sl_int_Sg__Sg__GetRange(arg1,arg2,arg3);
1342 } catch(std::out_of_range &_e) {
1344 return 0;
1345 } catch(std::invalid_argument &_e) {
1347 return 0;
1348 }
1349 jresult = (void *)result;
1350 return jresult;
1351}
1352
1353
1355 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1356 int arg2 ;
1357 std::vector< int > *arg3 = 0 ;
1358
1359 arg1 = (std::vector< std::vector< int > > *)jarg1;
1360 arg2 = (int)jarg2;
1361 arg3 = (std::vector< int > *)jarg3;
1362 if (!arg3) {
1363 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int > const & type is null", 0);
1364 return ;
1365 }
1366 try {
1367 std_vector_Sl_std_vector_Sl_int_Sg__Sg__Insert(arg1,arg2,(std::vector< int > const &)*arg3);
1368 } catch(std::out_of_range &_e) {
1370 return ;
1371 }
1372}
1373
1374
1376 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1377 int arg2 ;
1378 std::vector< std::vector< int > > *arg3 = 0 ;
1379
1380 arg1 = (std::vector< std::vector< int > > *)jarg1;
1381 arg2 = (int)jarg2;
1382 arg3 = (std::vector< std::vector< int > > *)jarg3;
1383 if (!arg3) {
1384 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< std::vector< int > > const & type is null", 0);
1385 return ;
1386 }
1387 try {
1388 std_vector_Sl_std_vector_Sl_int_Sg__Sg__InsertRange(arg1,arg2,(std::vector< std::vector< int > > const &)*arg3);
1389 } catch(std::out_of_range &_e) {
1391 return ;
1392 }
1393}
1394
1395
1397 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1398 int arg2 ;
1399
1400 arg1 = (std::vector< std::vector< int > > *)jarg1;
1401 arg2 = (int)jarg2;
1402 try {
1404 } catch(std::out_of_range &_e) {
1406 return ;
1407 }
1408}
1409
1410
1412 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1413 int arg2 ;
1414 int arg3 ;
1415
1416 arg1 = (std::vector< std::vector< int > > *)jarg1;
1417 arg2 = (int)jarg2;
1418 arg3 = (int)jarg3;
1419 try {
1421 } catch(std::out_of_range &_e) {
1423 return ;
1424 } catch(std::invalid_argument &_e) {
1426 return ;
1427 }
1428}
1429
1430
1432 void * jresult ;
1433 std::vector< int > *arg1 = 0 ;
1434 int arg2 ;
1435 std::vector< std::vector< int > > *result = 0 ;
1436
1437 arg1 = (std::vector< int > *)jarg1;
1438 if (!arg1) {
1439 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int > const & type is null", 0);
1440 return 0;
1441 }
1442 arg2 = (int)jarg2;
1443 try {
1444 result = (std::vector< std::vector< int > > *)std_vector_Sl_std_vector_Sl_int_Sg__Sg__Repeat((std::vector< int > const &)*arg1,arg2);
1445 } catch(std::out_of_range &_e) {
1447 return 0;
1448 }
1449 jresult = (void *)result;
1450 return jresult;
1451}
1452
1453
1455 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1456
1457 arg1 = (std::vector< std::vector< int > > *)jarg1;
1459}
1460
1461
1463 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1464 int arg2 ;
1465 int arg3 ;
1466
1467 arg1 = (std::vector< std::vector< int > > *)jarg1;
1468 arg2 = (int)jarg2;
1469 arg3 = (int)jarg3;
1470 try {
1472 } catch(std::out_of_range &_e) {
1474 return ;
1475 } catch(std::invalid_argument &_e) {
1477 return ;
1478 }
1479}
1480
1481
1483 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1484 int arg2 ;
1485 std::vector< std::vector< int > > *arg3 = 0 ;
1486
1487 arg1 = (std::vector< std::vector< int > > *)jarg1;
1488 arg2 = (int)jarg2;
1489 arg3 = (std::vector< std::vector< int > > *)jarg3;
1490 if (!arg3) {
1491 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< std::vector< int > > const & type is null", 0);
1492 return ;
1493 }
1494 try {
1495 std_vector_Sl_std_vector_Sl_int_Sg__Sg__SetRange(arg1,arg2,(std::vector< std::vector< int > > const &)*arg3);
1496 } catch(std::out_of_range &_e) {
1498 return ;
1499 }
1500}
1501
1502
1504 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1505
1506 arg1 = (std::vector< std::vector< int > > *)jarg1;
1507 delete arg1;
1508}
1509
1510
1512 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1513
1514 arg1 = (std::vector< int64_t > *)jarg1;
1515 (arg1)->clear();
1516}
1517
1518
1520 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1521 long long *arg2 = 0 ;
1522 long long temp2 ;
1523
1524 arg1 = (std::vector< int64_t > *)jarg1;
1525 temp2 = (long long)jarg2;
1526 arg2 = &temp2;
1527 (arg1)->push_back((long long const &)*arg2);
1528}
1529
1530
1532 unsigned long jresult ;
1533 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1534 std::vector< long long >::size_type result;
1535
1536 arg1 = (std::vector< int64_t > *)jarg1;
1537 result = ((std::vector< int64_t > const *)arg1)->size();
1538 jresult = (unsigned long)result;
1539 return jresult;
1540}
1541
1542
1544 unsigned long jresult ;
1545 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1546 std::vector< long long >::size_type result;
1547
1548 arg1 = (std::vector< int64_t > *)jarg1;
1549 result = ((std::vector< int64_t > const *)arg1)->capacity();
1550 jresult = (unsigned long)result;
1551 return jresult;
1552}
1553
1554
1556 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1557 std::vector< long long >::size_type arg2 ;
1558
1559 arg1 = (std::vector< int64_t > *)jarg1;
1560 arg2 = (std::vector< long long >::size_type)jarg2;
1561 (arg1)->reserve(arg2);
1562}
1563
1564
1566 void * jresult ;
1567 std::vector< int64_t > *result = 0 ;
1568
1569 result = (std::vector< int64_t > *)new std::vector< int64_t >();
1570 jresult = (void *)result;
1571 return jresult;
1572}
1573
1574
1576 void * jresult ;
1577 std::vector< int64_t > *arg1 = 0 ;
1578 std::vector< int64_t > *result = 0 ;
1579
1580 arg1 = (std::vector< int64_t > *)jarg1;
1581 if (!arg1) {
1582 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int64_t > const & type is null", 0);
1583 return 0;
1584 }
1585 result = (std::vector< int64_t > *)new std::vector< int64_t >((std::vector< int64_t > const &)*arg1);
1586 jresult = (void *)result;
1587 return jresult;
1588}
1589
1590
1592 void * jresult ;
1593 int arg1 ;
1594 std::vector< int64_t > *result = 0 ;
1595
1596 arg1 = (int)jarg1;
1597 try {
1598 result = (std::vector< int64_t > *)new_std_vector_Sl_int64_t_Sg___SWIG_2(arg1);
1599 } catch(std::out_of_range &_e) {
1601 return 0;
1602 }
1603 jresult = (void *)result;
1604 return jresult;
1605}
1606
1607
1609 long long jresult ;
1610 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1611 int arg2 ;
1612 long long result;
1613
1614 arg1 = (std::vector< int64_t > *)jarg1;
1615 arg2 = (int)jarg2;
1616 try {
1617 result = (long long)std_vector_Sl_int64_t_Sg__getitemcopy(arg1,arg2);
1618 } catch(std::out_of_range &_e) {
1620 return 0;
1621 }
1622 jresult = result;
1623 return jresult;
1624}
1625
1626
1628 long long jresult ;
1629 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1630 int arg2 ;
1631 std::vector< long long >::value_type *result = 0 ;
1632
1633 arg1 = (std::vector< int64_t > *)jarg1;
1634 arg2 = (int)jarg2;
1635 try {
1636 result = (std::vector< long long >::value_type *) &std_vector_Sl_int64_t_Sg__getitem(arg1,arg2);
1637 } catch(std::out_of_range &_e) {
1639 return 0;
1640 }
1641 jresult = *result;
1642 return jresult;
1643}
1644
1645
1647 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1648 int arg2 ;
1649 long long *arg3 = 0 ;
1650 long long temp3 ;
1651
1652 arg1 = (std::vector< int64_t > *)jarg1;
1653 arg2 = (int)jarg2;
1654 temp3 = (long long)jarg3;
1655 arg3 = &temp3;
1656 try {
1657 std_vector_Sl_int64_t_Sg__setitem(arg1,arg2,(long long const &)*arg3);
1658 } catch(std::out_of_range &_e) {
1660 return ;
1661 }
1662}
1663
1664
1666 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1667 std::vector< long long > *arg2 = 0 ;
1668
1669 arg1 = (std::vector< int64_t > *)jarg1;
1670 arg2 = (std::vector< long long > *)jarg2;
1671 if (!arg2) {
1672 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< long long > const & type is null", 0);
1673 return ;
1674 }
1675 std_vector_Sl_int64_t_Sg__AddRange(arg1,(std::vector< long long > const &)*arg2);
1676}
1677
1678
1680 void * jresult ;
1681 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1682 int arg2 ;
1683 int arg3 ;
1684 std::vector< long long > *result = 0 ;
1685
1686 arg1 = (std::vector< int64_t > *)jarg1;
1687 arg2 = (int)jarg2;
1688 arg3 = (int)jarg3;
1689 try {
1690 result = (std::vector< long long > *)std_vector_Sl_int64_t_Sg__GetRange(arg1,arg2,arg3);
1691 } catch(std::out_of_range &_e) {
1693 return 0;
1694 } catch(std::invalid_argument &_e) {
1696 return 0;
1697 }
1698 jresult = (void *)result;
1699 return jresult;
1700}
1701
1702
1704 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1705 int arg2 ;
1706 long long *arg3 = 0 ;
1707 long long temp3 ;
1708
1709 arg1 = (std::vector< int64_t > *)jarg1;
1710 arg2 = (int)jarg2;
1711 temp3 = (long long)jarg3;
1712 arg3 = &temp3;
1713 try {
1714 std_vector_Sl_int64_t_Sg__Insert(arg1,arg2,(long long const &)*arg3);
1715 } catch(std::out_of_range &_e) {
1717 return ;
1718 }
1719}
1720
1721
1723 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1724 int arg2 ;
1725 std::vector< long long > *arg3 = 0 ;
1726
1727 arg1 = (std::vector< int64_t > *)jarg1;
1728 arg2 = (int)jarg2;
1729 arg3 = (std::vector< long long > *)jarg3;
1730 if (!arg3) {
1731 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< long long > const & type is null", 0);
1732 return ;
1733 }
1734 try {
1735 std_vector_Sl_int64_t_Sg__InsertRange(arg1,arg2,(std::vector< long long > const &)*arg3);
1736 } catch(std::out_of_range &_e) {
1738 return ;
1739 }
1740}
1741
1742
1744 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1745 int arg2 ;
1746
1747 arg1 = (std::vector< int64_t > *)jarg1;
1748 arg2 = (int)jarg2;
1749 try {
1751 } catch(std::out_of_range &_e) {
1753 return ;
1754 }
1755}
1756
1757
1759 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1760 int arg2 ;
1761 int arg3 ;
1762
1763 arg1 = (std::vector< int64_t > *)jarg1;
1764 arg2 = (int)jarg2;
1765 arg3 = (int)jarg3;
1766 try {
1768 } catch(std::out_of_range &_e) {
1770 return ;
1771 } catch(std::invalid_argument &_e) {
1773 return ;
1774 }
1775}
1776
1777
1779 void * jresult ;
1780 long long *arg1 = 0 ;
1781 int arg2 ;
1782 long long temp1 ;
1783 std::vector< long long > *result = 0 ;
1784
1785 temp1 = (long long)jarg1;
1786 arg1 = &temp1;
1787 arg2 = (int)jarg2;
1788 try {
1789 result = (std::vector< long long > *)std_vector_Sl_int64_t_Sg__Repeat((long long const &)*arg1,arg2);
1790 } catch(std::out_of_range &_e) {
1792 return 0;
1793 }
1794 jresult = (void *)result;
1795 return jresult;
1796}
1797
1798
1800 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1801
1802 arg1 = (std::vector< int64_t > *)jarg1;
1804}
1805
1806
1808 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1809 int arg2 ;
1810 int arg3 ;
1811
1812 arg1 = (std::vector< int64_t > *)jarg1;
1813 arg2 = (int)jarg2;
1814 arg3 = (int)jarg3;
1815 try {
1817 } catch(std::out_of_range &_e) {
1819 return ;
1820 } catch(std::invalid_argument &_e) {
1822 return ;
1823 }
1824}
1825
1826
1828 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1829 int arg2 ;
1830 std::vector< long long > *arg3 = 0 ;
1831
1832 arg1 = (std::vector< int64_t > *)jarg1;
1833 arg2 = (int)jarg2;
1834 arg3 = (std::vector< long long > *)jarg3;
1835 if (!arg3) {
1836 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< long long > const & type is null", 0);
1837 return ;
1838 }
1839 try {
1840 std_vector_Sl_int64_t_Sg__SetRange(arg1,arg2,(std::vector< long long > const &)*arg3);
1841 } catch(std::out_of_range &_e) {
1843 return ;
1844 }
1845}
1846
1847
1849 unsigned int jresult ;
1850 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1851 long long *arg2 = 0 ;
1852 long long temp2 ;
1853 bool result;
1854
1855 arg1 = (std::vector< int64_t > *)jarg1;
1856 temp2 = (long long)jarg2;
1857 arg2 = &temp2;
1858 result = (bool)std_vector_Sl_int64_t_Sg__Contains(arg1,(long long const &)*arg2);
1859 jresult = result;
1860 return jresult;
1861}
1862
1863
1865 int jresult ;
1866 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1867 long long *arg2 = 0 ;
1868 long long temp2 ;
1869 int result;
1870
1871 arg1 = (std::vector< int64_t > *)jarg1;
1872 temp2 = (long long)jarg2;
1873 arg2 = &temp2;
1874 result = (int)std_vector_Sl_int64_t_Sg__IndexOf(arg1,(long long const &)*arg2);
1875 jresult = result;
1876 return jresult;
1877}
1878
1879
1881 int jresult ;
1882 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1883 long long *arg2 = 0 ;
1884 long long temp2 ;
1885 int result;
1886
1887 arg1 = (std::vector< int64_t > *)jarg1;
1888 temp2 = (long long)jarg2;
1889 arg2 = &temp2;
1890 result = (int)std_vector_Sl_int64_t_Sg__LastIndexOf(arg1,(long long const &)*arg2);
1891 jresult = result;
1892 return jresult;
1893}
1894
1895
1897 unsigned int jresult ;
1898 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1899 long long *arg2 = 0 ;
1900 long long temp2 ;
1901 bool result;
1902
1903 arg1 = (std::vector< int64_t > *)jarg1;
1904 temp2 = (long long)jarg2;
1905 arg2 = &temp2;
1906 result = (bool)std_vector_Sl_int64_t_Sg__Remove(arg1,(long long const &)*arg2);
1907 jresult = result;
1908 return jresult;
1909}
1910
1911
1913 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1914
1915 arg1 = (std::vector< int64_t > *)jarg1;
1916 delete arg1;
1917}
1918
1919
1921 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
1922
1923 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
1924 (arg1)->clear();
1925}
1926
1927
1929 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
1930 std::vector< int64_t > *arg2 = 0 ;
1931
1932 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
1933 arg2 = (std::vector< int64_t > *)jarg2;
1934 if (!arg2) {
1935 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int64_t > const & type is null", 0);
1936 return ;
1937 }
1938 (arg1)->push_back((std::vector< int64_t > const &)*arg2);
1939}
1940
1941
1943 unsigned long jresult ;
1944 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
1945 std::vector< std::vector< long long > >::size_type result;
1946
1947 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
1948 result = ((std::vector< std::vector< int64_t > > const *)arg1)->size();
1949 jresult = (unsigned long)result;
1950 return jresult;
1951}
1952
1953
1955 unsigned long jresult ;
1956 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
1957 std::vector< std::vector< long long > >::size_type result;
1958
1959 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
1960 result = ((std::vector< std::vector< int64_t > > const *)arg1)->capacity();
1961 jresult = (unsigned long)result;
1962 return jresult;
1963}
1964
1965
1967 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
1968 std::vector< std::vector< long long > >::size_type arg2 ;
1969
1970 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
1971 arg2 = (std::vector< std::vector< long long > >::size_type)jarg2;
1972 (arg1)->reserve(arg2);
1973}
1974
1975
1977 void * jresult ;
1978 std::vector< std::vector< int64_t > > *result = 0 ;
1979
1980 result = (std::vector< std::vector< int64_t > > *)new std::vector< std::vector< int64_t > >();
1981 jresult = (void *)result;
1982 return jresult;
1983}
1984
1985
1987 void * jresult ;
1988 std::vector< std::vector< int64_t > > *arg1 = 0 ;
1989 std::vector< std::vector< int64_t > > *result = 0 ;
1990
1991 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
1992 if (!arg1) {
1993 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< std::vector< int64_t > > const & type is null", 0);
1994 return 0;
1995 }
1996 result = (std::vector< std::vector< int64_t > > *)new std::vector< std::vector< int64_t > >((std::vector< std::vector< int64_t > > const &)*arg1);
1997 jresult = (void *)result;
1998 return jresult;
1999}
2000
2001
2003 void * jresult ;
2004 int arg1 ;
2005 std::vector< std::vector< int64_t > > *result = 0 ;
2006
2007 arg1 = (int)jarg1;
2008 try {
2009 result = (std::vector< std::vector< int64_t > > *)new_std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg___SWIG_2(arg1);
2010 } catch(std::out_of_range &_e) {
2012 return 0;
2013 }
2014 jresult = (void *)result;
2015 return jresult;
2016}
2017
2018
2020 void * jresult ;
2021 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2022 int arg2 ;
2023 std::vector< int64_t > result;
2024
2025 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2026 arg2 = (int)jarg2;
2027 try {
2029 } catch(std::out_of_range &_e) {
2031 return 0;
2032 }
2033 jresult = new std::vector< int64_t >((const std::vector< int64_t > &)result);
2034 return jresult;
2035}
2036
2037
2039 void * jresult ;
2040 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2041 int arg2 ;
2042 std::vector< std::vector< long long > >::value_type *result = 0 ;
2043
2044 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2045 arg2 = (int)jarg2;
2046 try {
2047 result = (std::vector< std::vector< long long > >::value_type *) &std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__getitem(arg1,arg2);
2048 } catch(std::out_of_range &_e) {
2050 return 0;
2051 }
2052 jresult = (void *)result;
2053 return jresult;
2054}
2055
2056
2058 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2059 int arg2 ;
2060 std::vector< int64_t > *arg3 = 0 ;
2061
2062 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2063 arg2 = (int)jarg2;
2064 arg3 = (std::vector< int64_t > *)jarg3;
2065 if (!arg3) {
2066 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int64_t > const & type is null", 0);
2067 return ;
2068 }
2069 try {
2070 std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__setitem(arg1,arg2,(std::vector< long long > const &)*arg3);
2071 } catch(std::out_of_range &_e) {
2073 return ;
2074 }
2075}
2076
2077
2079 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2080 std::vector< std::vector< int64_t > > *arg2 = 0 ;
2081
2082 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2083 arg2 = (std::vector< std::vector< int64_t > > *)jarg2;
2084 if (!arg2) {
2085 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< std::vector< int64_t > > const & type is null", 0);
2086 return ;
2087 }
2088 std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__AddRange(arg1,(std::vector< std::vector< long long > > const &)*arg2);
2089}
2090
2091
2093 void * jresult ;
2094 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2095 int arg2 ;
2096 int arg3 ;
2097 std::vector< std::vector< int64_t > > *result = 0 ;
2098
2099 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2100 arg2 = (int)jarg2;
2101 arg3 = (int)jarg3;
2102 try {
2103 result = (std::vector< std::vector< int64_t > > *)std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__GetRange(arg1,arg2,arg3);
2104 } catch(std::out_of_range &_e) {
2106 return 0;
2107 } catch(std::invalid_argument &_e) {
2109 return 0;
2110 }
2111 jresult = (void *)result;
2112 return jresult;
2113}
2114
2115
2117 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2118 int arg2 ;
2119 std::vector< int64_t > *arg3 = 0 ;
2120
2121 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2122 arg2 = (int)jarg2;
2123 arg3 = (std::vector< int64_t > *)jarg3;
2124 if (!arg3) {
2125 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int64_t > const & type is null", 0);
2126 return ;
2127 }
2128 try {
2129 std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__Insert(arg1,arg2,(std::vector< long long > const &)*arg3);
2130 } catch(std::out_of_range &_e) {
2132 return ;
2133 }
2134}
2135
2136
2138 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2139 int arg2 ;
2140 std::vector< std::vector< int64_t > > *arg3 = 0 ;
2141
2142 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2143 arg2 = (int)jarg2;
2144 arg3 = (std::vector< std::vector< int64_t > > *)jarg3;
2145 if (!arg3) {
2146 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< std::vector< int64_t > > const & type is null", 0);
2147 return ;
2148 }
2149 try {
2150 std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__InsertRange(arg1,arg2,(std::vector< std::vector< long long > > const &)*arg3);
2151 } catch(std::out_of_range &_e) {
2153 return ;
2154 }
2155}
2156
2157
2159 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2160 int arg2 ;
2161
2162 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2163 arg2 = (int)jarg2;
2164 try {
2166 } catch(std::out_of_range &_e) {
2168 return ;
2169 }
2170}
2171
2172
2174 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2175 int arg2 ;
2176 int arg3 ;
2177
2178 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2179 arg2 = (int)jarg2;
2180 arg3 = (int)jarg3;
2181 try {
2183 } catch(std::out_of_range &_e) {
2185 return ;
2186 } catch(std::invalid_argument &_e) {
2188 return ;
2189 }
2190}
2191
2192
2194 void * jresult ;
2195 std::vector< int64_t > *arg1 = 0 ;
2196 int arg2 ;
2197 std::vector< std::vector< int64_t > > *result = 0 ;
2198
2199 arg1 = (std::vector< int64_t > *)jarg1;
2200 if (!arg1) {
2201 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int64_t > const & type is null", 0);
2202 return 0;
2203 }
2204 arg2 = (int)jarg2;
2205 try {
2206 result = (std::vector< std::vector< int64_t > > *)std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__Repeat((std::vector< long long > const &)*arg1,arg2);
2207 } catch(std::out_of_range &_e) {
2209 return 0;
2210 }
2211 jresult = (void *)result;
2212 return jresult;
2213}
2214
2215
2217 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2218
2219 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2221}
2222
2223
2225 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2226 int arg2 ;
2227 int arg3 ;
2228
2229 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2230 arg2 = (int)jarg2;
2231 arg3 = (int)jarg3;
2232 try {
2234 } catch(std::out_of_range &_e) {
2236 return ;
2237 } catch(std::invalid_argument &_e) {
2239 return ;
2240 }
2241}
2242
2243
2245 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2246 int arg2 ;
2247 std::vector< std::vector< int64_t > > *arg3 = 0 ;
2248
2249 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2250 arg2 = (int)jarg2;
2251 arg3 = (std::vector< std::vector< int64_t > > *)jarg3;
2252 if (!arg3) {
2253 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< std::vector< int64_t > > const & type is null", 0);
2254 return ;
2255 }
2256 try {
2257 std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__SetRange(arg1,arg2,(std::vector< std::vector< long long > > const &)*arg3);
2258 } catch(std::out_of_range &_e) {
2260 return ;
2261 }
2262}
2263
2264
2266 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2267
2268 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2269 delete arg1;
2270}
2271
2272
2274 void * jresult ;
2275 std::string *arg1 = 0 ;
2277
2278 if (!jarg1) {
2280 return 0;
2281 }
2282 std::string arg1_str(jarg1);
2283 arg1 = &arg1_str;
2284 result = (operations_research::KnapsackSolver *)new operations_research::KnapsackSolver((std::string const &)*arg1);
2285 jresult = (void *)result;
2286 return jresult;
2287}
2288
2289
2291 void * jresult ;
2293 std::string *arg2 = 0 ;
2295
2297 if (!jarg2) {
2299 return 0;
2300 }
2301 std::string arg2_str(jarg2);
2302 arg2 = &arg2_str;
2303 result = (operations_research::KnapsackSolver *)new operations_research::KnapsackSolver(arg1,(std::string const &)*arg2);
2304 jresult = (void *)result;
2305 return jresult;
2306}
2307
2308
2311
2312 arg1 = (operations_research::KnapsackSolver *)jarg1;
2313 delete arg1;
2314}
2315
2316
2318 int len3_1, int len3_2, int64_t*
2319 jarg3, int length4, int64_t* jarg4) {
2321 std::vector< int64_t > *arg2 = 0 ;
2322 std::vector< std::vector< int64_t > > *arg3 = 0 ;
2323 std::vector< int64_t > *arg4 = 0 ;
2324 std::vector< std::vector< int64_t > > result3 ;
2325
2326 arg1 = (operations_research::KnapsackSolver *)jarg1;
2327
2328 arg2 = new std::vector<int64_t>;
2329 arg2->reserve(length2);
2330 for(int i = 0; i < length2; ++i) {
2331 arg2->emplace_back(jarg2[i]);
2332 }
2333
2334
2335 result3.clear();
2336 result3.resize(len3_1);
2337
2338 int64_t* inner_array = reinterpret_cast<int64_t*>(jarg3);
2339 int actualIndex = 0;
2340 for (int index1 = 0; index1 < len3_1; ++index1) {
2341 result3[index1].reserve(len3_2);
2342 for (int index2 = 0; index2 < len3_2; ++index2) {
2343 const int64_t value = inner_array[actualIndex];
2344 result3[index1].emplace_back(value);
2345 actualIndex++;
2346 }
2347 }
2348
2349 arg3 = &result3;
2350
2351
2352 arg4 = new std::vector<int64_t>;
2353 arg4->reserve(length4);
2354 for(int i = 0; i < length4; ++i) {
2355 arg4->emplace_back(jarg4[i]);
2356 }
2357
2358 (arg1)->Init((std::vector< int64_t > const &)*arg2,(std::vector< std::vector< int64_t > > const &)*arg3,(std::vector< int64_t > const &)*arg4);
2359 {
2360 delete arg2;
2361 }
2362 {
2363 delete arg4;
2364 }
2365}
2366
2367
2369 long long jresult ;
2371 int64_t result;
2372
2373 arg1 = (operations_research::KnapsackSolver *)jarg1;
2374 result = (int64_t)(arg1)->Solve();
2375 jresult = result;
2376 return jresult;
2377}
2378
2379
2381 unsigned int jresult ;
2383 int arg2 ;
2384 bool result;
2385
2386 arg1 = (operations_research::KnapsackSolver *)jarg1;
2387 arg2 = (int)jarg2;
2388 result = (bool)((operations_research::KnapsackSolver const *)arg1)->BestSolutionContains(arg2);
2389 jresult = result;
2390 return jresult;
2391}
2392
2393
2395 unsigned int jresult ;
2397 bool result;
2398
2399 arg1 = (operations_research::KnapsackSolver *)jarg1;
2400 result = (bool)((operations_research::KnapsackSolver const *)arg1)->IsSolutionOptimal();
2401 jresult = result;
2402 return jresult;
2403}
2404
2405
2407 char * jresult ;
2409 std::string result;
2410
2411 arg1 = (operations_research::KnapsackSolver *)jarg1;
2412 result = ((operations_research::KnapsackSolver const *)arg1)->GetName();
2413 jresult = SWIG_csharp_string_callback((&result)->c_str());
2414 return jresult;
2415}
2416
2417
2419 unsigned int jresult ;
2421 bool result;
2422
2423 arg1 = (operations_research::KnapsackSolver *)jarg1;
2424 result = (bool)((operations_research::KnapsackSolver const *)arg1)->use_reduction();
2425 jresult = result;
2426 return jresult;
2427}
2428
2429
2432 bool arg2 ;
2433
2434 arg1 = (operations_research::KnapsackSolver *)jarg1;
2435 arg2 = jarg2 ? true : false;
2436 (arg1)->set_use_reduction(arg2);
2437}
2438
2439
2442 double arg2 ;
2443
2444 arg1 = (operations_research::KnapsackSolver *)jarg1;
2445 arg2 = (double)jarg2;
2446 (arg1)->set_time_limit(arg2);
2447}
2448
2449
2450#ifdef __cplusplus
2451}
2452#endif
2453
This library solves knapsack problems.
int64_t Solve()
Solves the problem and returns the profit of the optimal solution.
SolverType
Enum controlling which underlying algorithm is used.
int64_t value
MPCallback * callback
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_new_Int64VectorVector__SWIG_2___(int jarg1)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_Add___(void *jarg1, int jarg2)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_Repeat___(int jarg1, int jarg2)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_AddRange___(void *jarg1, void *jarg2)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64VectorVector_RemoveAt___(void *jarg1, int jarg2)
SWIGINTERN std::vector< int > * new_std_vector_Sl_int_Sg___SWIG_2(int capacity)
SWIGINTERN void std_vector_Sl_int_Sg__InsertRange(std::vector< int > *self, int index, std::vector< int > const &values)
SWIGINTERN void std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__Reverse__SWIG_0(std::vector< std::vector< int64_t > > *self)
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64Vector_Remove___(void *jarg1, long long jarg2)
SWIGINTERN std::vector< long long > * std_vector_Sl_int64_t_Sg__GetRange(std::vector< int64_t > *self, int index, int count)
static SWIG_CSharpExceptionArgument_t SWIG_csharp_exceptions_argument[]
SWIGEXPORT unsigned long SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64VectorVector_capacity___(void *jarg1)
SWIGINTERN std::vector< std::vector< int > > * std_vector_Sl_std_vector_Sl_int_Sg__Sg__GetRange(std::vector< std::vector< int > > *self, int index, int count)
void(SWIGSTDCALL * SWIG_CSharpExceptionCallback_t)(const char *)
void(SWIGSTDCALL * SWIG_CSharpExceptionArgumentCallback_t)(const char *, const char *)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVectorVector_Reverse__SWIG_1___(void *jarg1, int jarg2, int jarg3)
SWIGINTERN void std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__Insert(std::vector< std::vector< int64_t > > *self, int index, std::vector< int64_t > const &x)
SWIGINTERN std::vector< int > * std_vector_Sl_int_Sg__Repeat(int const &value, int count)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_new_IntVectorVector__SWIG_1___(void *jarg1)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVectorVector_Reverse__SWIG_0___(void *jarg1)
SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__Reverse__SWIG_1(std::vector< std::vector< int > > *self, int index, int count)
SWIGINTERN std::vector< std::vector< int64_t > > * new_std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg___SWIG_2(int capacity)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_KnapsackSolver_SetUseReduction___(void *jarg1, unsigned int jarg2)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_delete_KnapsackSolver___(void *jarg1)
static void SWIGUNUSED SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpExceptionArgumentCodes code, const char *msg, const char *param_name)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVectorVector_Clear___(void *jarg1)
SWIGINTERN void std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__AddRange(std::vector< std::vector< int64_t > > *self, std::vector< std::vector< int64_t > > const &values)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_getitem___(void *jarg1, int jarg2)
SWIGEXPORT long long SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64Vector_getitem___(void *jarg1, int jarg2)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_IndexOf___(void *jarg1, int jarg2)
SWIGINTERN void std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__RemoveRange(std::vector< std::vector< int64_t > > *self, int index, int count)
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_Contains___(void *jarg1, int jarg2)
SWIGINTERN std::vector< std::vector< int64_t > > * std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__GetRange(std::vector< std::vector< int64_t > > *self, int index, int count)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_Insert___(void *jarg1, int jarg2, int jarg3)
SWIGINTERN std::vector< std::vector< int > > * new_std_vector_Sl_std_vector_Sl_int_Sg__Sg___SWIG_2(int capacity)
SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__InsertRange(std::vector< std::vector< int > > *self, int index, std::vector< std::vector< int > > const &values)
SWIGINTERN std::vector< long long > * std_vector_Sl_int64_t_Sg__Repeat(long long const &value, int count)
SWIGINTERN bool std_vector_Sl_int_Sg__Contains(std::vector< int > *self, int const &value)
SWIGINTERN void std_vector_Sl_int64_t_Sg__Insert(std::vector< int64_t > *self, int index, long long const &x)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64Vector_reserve___(void *jarg1, unsigned long jarg2)
SWIGINTERN std::vector< std::vector< int64_t > > * std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__Repeat(std::vector< int64_t > const &value, int count)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64Vector_LastIndexOf___(void *jarg1, long long jarg2)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64Vector_Clear___(void *jarg1)
SWIGINTERN void std_vector_Sl_int64_t_Sg__setitem(std::vector< int64_t > *self, int index, long long const &val)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_new_IntVector__SWIG_0___()
SWIGINTERN int std_vector_Sl_int_Sg__LastIndexOf(std::vector< int > *self, int const &value)
SWIGINTERN void std_vector_Sl_int_Sg__Reverse__SWIG_1(std::vector< int > *self, int index, int count)
SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__SetRange(std::vector< std::vector< int > > *self, int index, std::vector< std::vector< int > > const &values)
SWIGINTERN void std_vector_Sl_int64_t_Sg__AddRange(std::vector< int64_t > *self, std::vector< long long > const &values)
SWIGINTERN void std_vector_Sl_int_Sg__AddRange(std::vector< int > *self, std::vector< int > const &values)
SWIGINTERN std::vector< int64_t > * new_std_vector_Sl_int64_t_Sg___SWIG_2(int capacity)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_KnapsackSolver_Init___(void *jarg1, int length2, int64_t *jarg2, int len3_1, int len3_2, int64_t *jarg3, int length4, int64_t *jarg4)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64VectorVector_getitem___(void *jarg1, int jarg2)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVectorVector_RemoveAt___(void *jarg1, int jarg2)
SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__RemoveRange(std::vector< std::vector< int > > *self, int index, int count)
SWIGINTERN void std_vector_Sl_int64_t_Sg__InsertRange(std::vector< int64_t > *self, int index, std::vector< long long > const &values)
SWIGINTERN int std_vector_Sl_int_Sg__getitemcopy(std::vector< int > *self, int index)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_delete_IntVector___(void *jarg1)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_new_IntVectorVector__SWIG_0___()
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVectorVector_Repeat___(void *jarg1, int jarg2)
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_KnapsackSolver_BestSolutionContains___(void *jarg1, int jarg2)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64VectorVector_reserve___(void *jarg1, unsigned long jarg2)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVectorVector_Add___(void *jarg1, void *jarg2)
SWIGINTERN bool std_vector_Sl_int_Sg__Remove(std::vector< int > *self, int const &value)
SWIGINTERN std::vector< int > std_vector_Sl_std_vector_Sl_int_Sg__Sg__getitemcopy(std::vector< std::vector< int > > *self, int index)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVectorVector_Insert___(void *jarg1, int jarg2, void *jarg3)
SWIGINTERN void std_vector_Sl_int64_t_Sg__Reverse__SWIG_0(std::vector< int64_t > *self)
SWIGINTERN void std_vector_Sl_int_Sg__Reverse__SWIG_0(std::vector< int > *self)
SWIGEXPORT unsigned long SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVectorVector_size___(void *jarg1)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64VectorVector_Insert___(void *jarg1, int jarg2, void *jarg3)
static SWIG_CSharpStringHelperCallback SWIG_csharp_string_callback
#define SWIGUNUSED
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64Vector_Contains___(void *jarg1, long long jarg2)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64VectorVector_InsertRange___(void *jarg1, int jarg2, void *jarg3)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_delete_Int64VectorVector___(void *jarg1)
SWIGINTERN void std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__RemoveAt(std::vector< std::vector< int64_t > > *self, int index)
static SWIG_CSharpException_t SWIG_csharp_exceptions[]
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64Vector_setitem___(void *jarg1, int jarg2, long long jarg3)
SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__Insert(std::vector< std::vector< int > > *self, int index, std::vector< int > const &x)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_Clear___(void *jarg1)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_new_IntVectorVector__SWIG_2___(int jarg1)
SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__setitem(std::vector< std::vector< int > > *self, int index, std::vector< int > const &val)
SWIGEXPORT unsigned long SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVectorVector_capacity___(void *jarg1)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64VectorVector_setitem___(void *jarg1, int jarg2, void *jarg3)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64VectorVector_AddRange___(void *jarg1, void *jarg2)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64VectorVector_Reverse__SWIG_0___(void *jarg1)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVectorVector_GetRange___(void *jarg1, int jarg2, int jarg3)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVectorVector_SetRange___(void *jarg1, int jarg2, void *jarg3)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64Vector_Reverse__SWIG_1___(void *jarg1, int jarg2, int jarg3)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_delete_Int64Vector___(void *jarg1)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64VectorVector_Reverse__SWIG_1___(void *jarg1, int jarg2, int jarg3)
SWIGEXPORT unsigned long SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_size___(void *jarg1)
SWIGINTERN long long std_vector_Sl_int64_t_Sg__getitemcopy(std::vector< int64_t > *self, int index)
SWIGINTERN bool std_vector_Sl_int64_t_Sg__Contains(std::vector< int64_t > *self, long long const &value)
SWIGINTERN std::vector< int > * std_vector_Sl_int_Sg__GetRange(std::vector< int > *self, int index, int count)
SWIGINTERN void std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__InsertRange(std::vector< std::vector< int64_t > > *self, int index, std::vector< std::vector< int64_t > > const &values)
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_Remove___(void *jarg1, int jarg2)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64VectorVector_getitemcopy___(void *jarg1, int jarg2)
SWIGINTERN void std_vector_Sl_int64_t_Sg__SetRange(std::vector< int64_t > *self, int index, std::vector< long long > const &values)
#define SWIGINTERN
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_new_Int64Vector__SWIG_1___(void *jarg1)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_InsertRange___(void *jarg1, int jarg2, void *jarg3)
SWIGEXPORT long long SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64Vector_getitemcopy___(void *jarg1, int jarg2)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64Vector_Reverse__SWIG_0___(void *jarg1)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_new_Int64VectorVector__SWIG_0___()
SWIG_CSharpExceptionArgumentCodes
@ SWIG_CSharpArgumentException
@ SWIG_CSharpArgumentOutOfRangeException
@ SWIG_CSharpArgumentNullException
SWIGINTERN bool std_vector_Sl_int64_t_Sg__Remove(std::vector< int64_t > *self, long long const &value)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_setitem___(void *jarg1, int jarg2, int jarg3)
SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionCallbacks_operations_research_algorithms(SWIG_CSharpExceptionCallback_t applicationCallback, SWIG_CSharpExceptionCallback_t arithmeticCallback, SWIG_CSharpExceptionCallback_t divideByZeroCallback, SWIG_CSharpExceptionCallback_t indexOutOfRangeCallback, SWIG_CSharpExceptionCallback_t invalidCastCallback, SWIG_CSharpExceptionCallback_t invalidOperationCallback, SWIG_CSharpExceptionCallback_t ioCallback, SWIG_CSharpExceptionCallback_t nullReferenceCallback, SWIG_CSharpExceptionCallback_t outOfMemoryCallback, SWIG_CSharpExceptionCallback_t overflowCallback, SWIG_CSharpExceptionCallback_t systemCallback)
SWIGINTERN std::vector< longlong >::value_type const & std_vector_Sl_int64_t_Sg__getitem(std::vector< int64_t > *self, int index)
SWIGINTERN void std_vector_Sl_int_Sg__RemoveRange(std::vector< int > *self, int index, int count)
SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__Reverse__SWIG_0(std::vector< std::vector< int > > *self)
char *(SWIGSTDCALL * SWIG_CSharpStringHelperCallback)(const char *)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_new_IntVector__SWIG_2___(int jarg1)
SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_operations_research_algorithms(SWIG_CSharpStringHelperCallback callback)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_KnapsackSolver_set_time_limit___(void *jarg1, double jarg2)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_new_KnapsackSolver__SWIG_0___(char *jarg1)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64Vector_Insert___(void *jarg1, int jarg2, long long jarg3)
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_KnapsackSolver_UseReduction___(void *jarg1)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_RemoveAt___(void *jarg1, int jarg2)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_GetRange___(void *jarg1, int jarg2, int jarg3)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64VectorVector_Add___(void *jarg1, void *jarg2)
SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionArgumentCallbacks_operations_research_algorithms(SWIG_CSharpExceptionArgumentCallback_t argumentCallback, SWIG_CSharpExceptionArgumentCallback_t argumentNullCallback, SWIG_CSharpExceptionArgumentCallback_t argumentOutOfRangeCallback)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64VectorVector_GetRange___(void *jarg1, int jarg2, int jarg3)
SWIGEXPORT unsigned long SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_capacity___(void *jarg1)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_delete_IntVectorVector___(void *jarg1)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_new_Int64VectorVector__SWIG_1___(void *jarg1)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVectorVector_reserve___(void *jarg1, unsigned long jarg2)
SWIGINTERN std::vector< std::vector< int > > * std_vector_Sl_std_vector_Sl_int_Sg__Sg__Repeat(std::vector< int > const &value, int count)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64Vector_RemoveAt___(void *jarg1, int jarg2)
SWIGINTERN std::vector< std::vector< longlong > >::value_type const & std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__getitem(std::vector< std::vector< int64_t > > *self, int index)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_LastIndexOf___(void *jarg1, int jarg2)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64VectorVector_Clear___(void *jarg1)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_SetRange___(void *jarg1, int jarg2, void *jarg3)
SWIGINTERN void std_vector_Sl_int_Sg__setitem(std::vector< int > *self, int index, int const &val)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64Vector_AddRange___(void *jarg1, void *jarg2)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64VectorVector_RemoveRange___(void *jarg1, int jarg2, int jarg3)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVectorVector_AddRange___(void *jarg1, void *jarg2)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVectorVector_InsertRange___(void *jarg1, int jarg2, void *jarg3)
SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__RemoveAt(std::vector< std::vector< int > > *self, int index)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64VectorVector_SetRange___(void *jarg1, int jarg2, void *jarg3)
static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes code, const char *msg)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64Vector_IndexOf___(void *jarg1, long long jarg2)
SWIGINTERN void std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__SetRange(std::vector< std::vector< int64_t > > *self, int index, std::vector< std::vector< int64_t > > const &values)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVectorVector_getitemcopy___(void *jarg1, int jarg2)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_Reverse__SWIG_1___(void *jarg1, int jarg2, int jarg3)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64Vector_RemoveRange___(void *jarg1, int jarg2, int jarg3)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_reserve___(void *jarg1, unsigned long jarg2)
SWIGINTERN void std_vector_Sl_int64_t_Sg__Reverse__SWIG_1(std::vector< int64_t > *self, int index, int count)
SWIGINTERN int std_vector_Sl_int64_t_Sg__LastIndexOf(std::vector< int64_t > *self, long long const &value)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_RemoveRange___(void *jarg1, int jarg2, int jarg3)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_new_Int64Vector__SWIG_2___(int jarg1)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64Vector_Repeat___(long long jarg1, int jarg2)
SWIGEXPORT int SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_getitemcopy___(void *jarg1, int jarg2)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVectorVector_setitem___(void *jarg1, int jarg2, void *jarg3)
SWIGEXPORT long long SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_KnapsackSolver_Solve___(void *jarg1)
SWIGINTERN void std_vector_Sl_int_Sg__RemoveAt(std::vector< int > *self, int index)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_Reverse__SWIG_0___(void *jarg1)
#define SWIGSTDCALL
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64Vector_GetRange___(void *jarg1, int jarg2, int jarg3)
SWIGINTERN std::vector< int >::value_type const & std_vector_Sl_int_Sg__getitem(std::vector< int > *self, int index)
SWIGINTERN void std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__Reverse__SWIG_1(std::vector< std::vector< int64_t > > *self, int index, int count)
SWIGINTERN std::vector< int64_t > std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__getitemcopy(std::vector< std::vector< int64_t > > *self, int index)
SWIGINTERN int std_vector_Sl_int_Sg__IndexOf(std::vector< int > *self, int const &value)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_new_IntVector__SWIG_1___(void *jarg1)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64Vector_Add___(void *jarg1, long long jarg2)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVectorVector_getitem___(void *jarg1, int jarg2)
SWIGINTERN void std_vector_Sl_int64_t_Sg__RemoveRange(std::vector< int64_t > *self, int index, int count)
SWIGINTERN void std_vector_Sl_int_Sg__SetRange(std::vector< int > *self, int index, std::vector< int > const &values)
#define SWIGEXPORT
SWIGEXPORT unsigned long SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64Vector_capacity___(void *jarg1)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_new_KnapsackSolver__SWIG_1___(int jarg1, char *jarg2)
SWIGINTERN void std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__setitem(std::vector< std::vector< int64_t > > *self, int index, std::vector< int64_t > const &val)
SWIGINTERN std::vector< std::vector< int > >::value_type const & std_vector_Sl_std_vector_Sl_int_Sg__Sg__getitem(std::vector< std::vector< int > > *self, int index)
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_KnapsackSolver_IsSolutionOptimal___(void *jarg1)
SWIGEXPORT unsigned long SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64VectorVector_size___(void *jarg1)
SWIGINTERN void std_vector_Sl_int64_t_Sg__RemoveAt(std::vector< int64_t > *self, int index)
SWIGINTERN int std_vector_Sl_int64_t_Sg__IndexOf(std::vector< int64_t > *self, long long const &value)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_new_Int64Vector__SWIG_0___()
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64Vector_SetRange___(void *jarg1, int jarg2, void *jarg3)
@ SWIG_CSharpDivideByZeroException
@ SWIG_CSharpOutOfMemoryException
@ SWIG_CSharpArithmeticException
@ SWIG_CSharpSystemException
@ SWIG_CSharpApplicationException
@ SWIG_CSharpNullReferenceException
@ SWIG_CSharpInvalidCastException
@ SWIG_CSharpInvalidOperationException
@ SWIG_CSharpOverflowException
@ SWIG_CSharpIndexOutOfRangeException
SWIGEXPORT char *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_KnapsackSolver_GetName___(void *jarg1)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVectorVector_RemoveRange___(void *jarg1, int jarg2, int jarg3)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64VectorVector_Repeat___(void *jarg1, int jarg2)
SWIGINTERN void std_vector_Sl_int_Sg__Insert(std::vector< int > *self, int index, int const &x)
SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__AddRange(std::vector< std::vector< int > > *self, std::vector< std::vector< int > > const &values)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64Vector_InsertRange___(void *jarg1, int jarg2, void *jarg3)
SWIGEXPORT unsigned long SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_Int64Vector_size___(void *jarg1)
int index
Definition: pack.cc:509
int64_t capacity
SWIG_CSharpExceptionCallback_t callback
SWIG_CSharpExceptionCodes code
SWIG_CSharpExceptionArgumentCodes code
SWIG_CSharpExceptionArgumentCallback_t callback