OR-Tools  9.1
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#define SWIGWORDSIZE64
313#ifndef LONG_MAX
314#include <limits.h>
315#endif
316#if (__WORDSIZE == 32) || (LONG_MAX == INT_MAX)
317# error "SWIG wrapped code invalid in 32 bit architecture, regenerate code using -DSWIGWORDSIZE32"
318#endif
319
320
321#include <string>
322
323
324#include <vector>
326
327
328#include <typeinfo>
329#include <stdexcept>
330
331
332#include <vector>
333#include <algorithm>
334#include <stdexcept>
335
337 std::vector< int >* pv = 0;
338 if (capacity >= 0) {
339 pv = new std::vector< int >();
340 pv->reserve(capacity);
341 } else {
342 throw std::out_of_range("capacity");
343 }
344 return pv;
345 }
346SWIGINTERN int std_vector_Sl_int_Sg__getitemcopy(std::vector< int > *self,int index){
347 if (index>=0 && index<(int)self->size())
348 return (*self)[index];
349 else
350 throw std::out_of_range("index");
351 }
352SWIGINTERN std::vector< int >::value_type const &std_vector_Sl_int_Sg__getitem(std::vector< int > *self,int index){
353 if (index>=0 && index<(int)self->size())
354 return (*self)[index];
355 else
356 throw std::out_of_range("index");
357 }
358SWIGINTERN void std_vector_Sl_int_Sg__setitem(std::vector< int > *self,int index,int const &val){
359 if (index>=0 && index<(int)self->size())
360 (*self)[index] = val;
361 else
362 throw std::out_of_range("index");
363 }
364SWIGINTERN void std_vector_Sl_int_Sg__AddRange(std::vector< int > *self,std::vector< int > const &values){
365 self->insert(self->end(), values.begin(), values.end());
366 }
367SWIGINTERN std::vector< int > *std_vector_Sl_int_Sg__GetRange(std::vector< int > *self,int index,int count){
368 if (index < 0)
369 throw std::out_of_range("index");
370 if (count < 0)
371 throw std::out_of_range("count");
372 if (index >= (int)self->size()+1 || index+count > (int)self->size())
373 throw std::invalid_argument("invalid range");
374 return new std::vector< int >(self->begin()+index, self->begin()+index+count);
375 }
376SWIGINTERN void std_vector_Sl_int_Sg__Insert(std::vector< int > *self,int index,int const &x){
377 if (index>=0 && index<(int)self->size()+1)
378 self->insert(self->begin()+index, x);
379 else
380 throw std::out_of_range("index");
381 }
382SWIGINTERN void std_vector_Sl_int_Sg__InsertRange(std::vector< int > *self,int index,std::vector< int > const &values){
383 if (index>=0 && index<(int)self->size()+1)
384 self->insert(self->begin()+index, values.begin(), values.end());
385 else
386 throw std::out_of_range("index");
387 }
388SWIGINTERN void std_vector_Sl_int_Sg__RemoveAt(std::vector< int > *self,int index){
389 if (index>=0 && index<(int)self->size())
390 self->erase(self->begin() + index);
391 else
392 throw std::out_of_range("index");
393 }
394SWIGINTERN void std_vector_Sl_int_Sg__RemoveRange(std::vector< int > *self,int index,int count){
395 if (index < 0)
396 throw std::out_of_range("index");
397 if (count < 0)
398 throw std::out_of_range("count");
399 if (index >= (int)self->size()+1 || index+count > (int)self->size())
400 throw std::invalid_argument("invalid range");
401 self->erase(self->begin()+index, self->begin()+index+count);
402 }
403SWIGINTERN std::vector< int > *std_vector_Sl_int_Sg__Repeat(int const &value,int count){
404 if (count < 0)
405 throw std::out_of_range("count");
406 return new std::vector< int >(count, value);
407 }
409 std::reverse(self->begin(), self->end());
410 }
411SWIGINTERN void std_vector_Sl_int_Sg__Reverse__SWIG_1(std::vector< int > *self,int index,int count){
412 if (index < 0)
413 throw std::out_of_range("index");
414 if (count < 0)
415 throw std::out_of_range("count");
416 if (index >= (int)self->size()+1 || index+count > (int)self->size())
417 throw std::invalid_argument("invalid range");
418 std::reverse(self->begin()+index, self->begin()+index+count);
419 }
420SWIGINTERN void std_vector_Sl_int_Sg__SetRange(std::vector< int > *self,int index,std::vector< int > const &values){
421 if (index < 0)
422 throw std::out_of_range("index");
423 if (index+values.size() > self->size())
424 throw std::out_of_range("index");
425 std::copy(values.begin(), values.end(), self->begin()+index);
426 }
427SWIGINTERN bool std_vector_Sl_int_Sg__Contains(std::vector< int > *self,int const &value){
428 return std::find(self->begin(), self->end(), value) != self->end();
429 }
430SWIGINTERN int std_vector_Sl_int_Sg__IndexOf(std::vector< int > *self,int const &value){
431 int index = -1;
432 std::vector< int >::iterator it = std::find(self->begin(), self->end(), value);
433 if (it != self->end())
434 index = (int)(it - self->begin());
435 return index;
436 }
437SWIGINTERN int std_vector_Sl_int_Sg__LastIndexOf(std::vector< int > *self,int const &value){
438 int index = -1;
439 std::vector< int >::reverse_iterator rit = std::find(self->rbegin(), self->rend(), value);
440 if (rit != self->rend())
441 index = (int)(self->rend() - 1 - rit);
442 return index;
443 }
444SWIGINTERN bool std_vector_Sl_int_Sg__Remove(std::vector< int > *self,int const &value){
445 std::vector< int >::iterator it = std::find(self->begin(), self->end(), value);
446 if (it != self->end()) {
447 self->erase(it);
448 return true;
449 }
450 return false;
451 }
453 std::vector< std::vector< int > >* pv = 0;
454 if (capacity >= 0) {
455 pv = new std::vector< std::vector< int > >();
456 pv->reserve(capacity);
457 } else {
458 throw std::out_of_range("capacity");
459 }
460 return pv;
461 }
462SWIGINTERN std::vector< int > std_vector_Sl_std_vector_Sl_int_Sg__Sg__getitemcopy(std::vector< std::vector< int > > *self,int index){
463 if (index>=0 && index<(int)self->size())
464 return (*self)[index];
465 else
466 throw std::out_of_range("index");
467 }
468SWIGINTERN 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){
469 if (index>=0 && index<(int)self->size())
470 return (*self)[index];
471 else
472 throw std::out_of_range("index");
473 }
474SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__setitem(std::vector< std::vector< int > > *self,int index,std::vector< int > const &val){
475 if (index>=0 && index<(int)self->size())
476 (*self)[index] = val;
477 else
478 throw std::out_of_range("index");
479 }
480SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__AddRange(std::vector< std::vector< int > > *self,std::vector< std::vector< int > > const &values){
481 self->insert(self->end(), values.begin(), values.end());
482 }
483SWIGINTERN 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){
484 if (index < 0)
485 throw std::out_of_range("index");
486 if (count < 0)
487 throw std::out_of_range("count");
488 if (index >= (int)self->size()+1 || index+count > (int)self->size())
489 throw std::invalid_argument("invalid range");
490 return new std::vector< std::vector< int > >(self->begin()+index, self->begin()+index+count);
491 }
492SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__Insert(std::vector< std::vector< int > > *self,int index,std::vector< int > const &x){
493 if (index>=0 && index<(int)self->size()+1)
494 self->insert(self->begin()+index, x);
495 else
496 throw std::out_of_range("index");
497 }
498SWIGINTERN 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){
499 if (index>=0 && index<(int)self->size()+1)
500 self->insert(self->begin()+index, values.begin(), values.end());
501 else
502 throw std::out_of_range("index");
503 }
504SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__RemoveAt(std::vector< std::vector< int > > *self,int index){
505 if (index>=0 && index<(int)self->size())
506 self->erase(self->begin() + index);
507 else
508 throw std::out_of_range("index");
509 }
510SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__RemoveRange(std::vector< std::vector< int > > *self,int index,int count){
511 if (index < 0)
512 throw std::out_of_range("index");
513 if (count < 0)
514 throw std::out_of_range("count");
515 if (index >= (int)self->size()+1 || index+count > (int)self->size())
516 throw std::invalid_argument("invalid range");
517 self->erase(self->begin()+index, self->begin()+index+count);
518 }
519SWIGINTERN std::vector< std::vector< int > > *std_vector_Sl_std_vector_Sl_int_Sg__Sg__Repeat(std::vector< int > const &value,int count){
520 if (count < 0)
521 throw std::out_of_range("count");
522 return new std::vector< std::vector< int > >(count, value);
523 }
524SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__Reverse__SWIG_0(std::vector< std::vector< int > > *self){
525 std::reverse(self->begin(), self->end());
526 }
527SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__Reverse__SWIG_1(std::vector< std::vector< int > > *self,int index,int count){
528 if (index < 0)
529 throw std::out_of_range("index");
530 if (count < 0)
531 throw std::out_of_range("count");
532 if (index >= (int)self->size()+1 || index+count > (int)self->size())
533 throw std::invalid_argument("invalid range");
534 std::reverse(self->begin()+index, self->begin()+index+count);
535 }
536SWIGINTERN 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){
537 if (index < 0)
538 throw std::out_of_range("index");
539 if (index+values.size() > self->size())
540 throw std::out_of_range("index");
541 std::copy(values.begin(), values.end(), self->begin()+index);
542 }
544 std::vector< long >* pv = 0;
545 if (capacity >= 0) {
546 pv = new std::vector< long >();
547 pv->reserve(capacity);
548 } else {
549 throw std::out_of_range("capacity");
550 }
551 return pv;
552 }
553SWIGINTERN long std_vector_Sl_int64_t_Sg__getitemcopy(std::vector< int64_t > *self,int index){
554 if (index>=0 && index<(int)self->size())
555 return (*self)[index];
556 else
557 throw std::out_of_range("index");
558 }
559SWIGINTERN std::vector< long >::value_type const &std_vector_Sl_int64_t_Sg__getitem(std::vector< int64_t > *self,int index){
560 if (index>=0 && index<(int)self->size())
561 return (*self)[index];
562 else
563 throw std::out_of_range("index");
564 }
565SWIGINTERN void std_vector_Sl_int64_t_Sg__setitem(std::vector< int64_t > *self,int index,long const &val){
566 if (index>=0 && index<(int)self->size())
567 (*self)[index] = val;
568 else
569 throw std::out_of_range("index");
570 }
571SWIGINTERN void std_vector_Sl_int64_t_Sg__AddRange(std::vector< int64_t > *self,std::vector< long > const &values){
572 self->insert(self->end(), values.begin(), values.end());
573 }
574SWIGINTERN std::vector< long > *std_vector_Sl_int64_t_Sg__GetRange(std::vector< int64_t > *self,int index,int count){
575 if (index < 0)
576 throw std::out_of_range("index");
577 if (count < 0)
578 throw std::out_of_range("count");
579 if (index >= (int)self->size()+1 || index+count > (int)self->size())
580 throw std::invalid_argument("invalid range");
581 return new std::vector< long >(self->begin()+index, self->begin()+index+count);
582 }
583SWIGINTERN void std_vector_Sl_int64_t_Sg__Insert(std::vector< int64_t > *self,int index,long const &x){
584 if (index>=0 && index<(int)self->size()+1)
585 self->insert(self->begin()+index, x);
586 else
587 throw std::out_of_range("index");
588 }
589SWIGINTERN void std_vector_Sl_int64_t_Sg__InsertRange(std::vector< int64_t > *self,int index,std::vector< long > const &values){
590 if (index>=0 && index<(int)self->size()+1)
591 self->insert(self->begin()+index, values.begin(), values.end());
592 else
593 throw std::out_of_range("index");
594 }
595SWIGINTERN void std_vector_Sl_int64_t_Sg__RemoveAt(std::vector< int64_t > *self,int index){
596 if (index>=0 && index<(int)self->size())
597 self->erase(self->begin() + index);
598 else
599 throw std::out_of_range("index");
600 }
601SWIGINTERN void std_vector_Sl_int64_t_Sg__RemoveRange(std::vector< int64_t > *self,int index,int count){
602 if (index < 0)
603 throw std::out_of_range("index");
604 if (count < 0)
605 throw std::out_of_range("count");
606 if (index >= (int)self->size()+1 || index+count > (int)self->size())
607 throw std::invalid_argument("invalid range");
608 self->erase(self->begin()+index, self->begin()+index+count);
609 }
610SWIGINTERN std::vector< long > *std_vector_Sl_int64_t_Sg__Repeat(long const &value,int count){
611 if (count < 0)
612 throw std::out_of_range("count");
613 return new std::vector< long >(count, value);
614 }
615SWIGINTERN void std_vector_Sl_int64_t_Sg__Reverse__SWIG_0(std::vector< int64_t > *self){
616 std::reverse(self->begin(), self->end());
617 }
618SWIGINTERN void std_vector_Sl_int64_t_Sg__Reverse__SWIG_1(std::vector< int64_t > *self,int index,int count){
619 if (index < 0)
620 throw std::out_of_range("index");
621 if (count < 0)
622 throw std::out_of_range("count");
623 if (index >= (int)self->size()+1 || index+count > (int)self->size())
624 throw std::invalid_argument("invalid range");
625 std::reverse(self->begin()+index, self->begin()+index+count);
626 }
627SWIGINTERN void std_vector_Sl_int64_t_Sg__SetRange(std::vector< int64_t > *self,int index,std::vector< long > const &values){
628 if (index < 0)
629 throw std::out_of_range("index");
630 if (index+values.size() > self->size())
631 throw std::out_of_range("index");
632 std::copy(values.begin(), values.end(), self->begin()+index);
633 }
634SWIGINTERN bool std_vector_Sl_int64_t_Sg__Contains(std::vector< int64_t > *self,long const &value){
635 return std::find(self->begin(), self->end(), value) != self->end();
636 }
637SWIGINTERN int std_vector_Sl_int64_t_Sg__IndexOf(std::vector< int64_t > *self,long const &value){
638 int index = -1;
639 std::vector< long >::iterator it = std::find(self->begin(), self->end(), value);
640 if (it != self->end())
641 index = (int)(it - self->begin());
642 return index;
643 }
644SWIGINTERN int std_vector_Sl_int64_t_Sg__LastIndexOf(std::vector< int64_t > *self,long const &value){
645 int index = -1;
646 std::vector< long >::reverse_iterator rit = std::find(self->rbegin(), self->rend(), value);
647 if (rit != self->rend())
648 index = (int)(self->rend() - 1 - rit);
649 return index;
650 }
651SWIGINTERN bool std_vector_Sl_int64_t_Sg__Remove(std::vector< int64_t > *self,long const &value){
652 std::vector< long >::iterator it = std::find(self->begin(), self->end(), value);
653 if (it != self->end()) {
654 self->erase(it);
655 return true;
656 }
657 return false;
658 }
660 std::vector< std::vector< int64_t > >* pv = 0;
661 if (capacity >= 0) {
662 pv = new std::vector< std::vector< int64_t > >();
663 pv->reserve(capacity);
664 } else {
665 throw std::out_of_range("capacity");
666 }
667 return pv;
668 }
669SWIGINTERN std::vector< int64_t > std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__getitemcopy(std::vector< std::vector< int64_t > > *self,int index){
670 if (index>=0 && index<(int)self->size())
671 return (*self)[index];
672 else
673 throw std::out_of_range("index");
674 }
675SWIGINTERN std::vector< std::vector< long > >::value_type const &std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__getitem(std::vector< std::vector< int64_t > > *self,int index){
676 if (index>=0 && index<(int)self->size())
677 return (*self)[index];
678 else
679 throw std::out_of_range("index");
680 }
681SWIGINTERN 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){
682 if (index>=0 && index<(int)self->size())
683 (*self)[index] = val;
684 else
685 throw std::out_of_range("index");
686 }
687SWIGINTERN 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){
688 self->insert(self->end(), values.begin(), values.end());
689 }
690SWIGINTERN 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){
691 if (index < 0)
692 throw std::out_of_range("index");
693 if (count < 0)
694 throw std::out_of_range("count");
695 if (index >= (int)self->size()+1 || index+count > (int)self->size())
696 throw std::invalid_argument("invalid range");
697 return new std::vector< std::vector< int64_t > >(self->begin()+index, self->begin()+index+count);
698 }
699SWIGINTERN 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){
700 if (index>=0 && index<(int)self->size()+1)
701 self->insert(self->begin()+index, x);
702 else
703 throw std::out_of_range("index");
704 }
705SWIGINTERN 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){
706 if (index>=0 && index<(int)self->size()+1)
707 self->insert(self->begin()+index, values.begin(), values.end());
708 else
709 throw std::out_of_range("index");
710 }
711SWIGINTERN void std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__RemoveAt(std::vector< std::vector< int64_t > > *self,int index){
712 if (index>=0 && index<(int)self->size())
713 self->erase(self->begin() + index);
714 else
715 throw std::out_of_range("index");
716 }
717SWIGINTERN void std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__RemoveRange(std::vector< std::vector< int64_t > > *self,int index,int count){
718 if (index < 0)
719 throw std::out_of_range("index");
720 if (count < 0)
721 throw std::out_of_range("count");
722 if (index >= (int)self->size()+1 || index+count > (int)self->size())
723 throw std::invalid_argument("invalid range");
724 self->erase(self->begin()+index, self->begin()+index+count);
725 }
726SWIGINTERN 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){
727 if (count < 0)
728 throw std::out_of_range("count");
729 return new std::vector< std::vector< int64_t > >(count, value);
730 }
731SWIGINTERN void std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__Reverse__SWIG_0(std::vector< std::vector< int64_t > > *self){
732 std::reverse(self->begin(), self->end());
733 }
734SWIGINTERN 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){
735 if (index < 0)
736 throw std::out_of_range("index");
737 if (count < 0)
738 throw std::out_of_range("count");
739 if (index >= (int)self->size()+1 || index+count > (int)self->size())
740 throw std::invalid_argument("invalid range");
741 std::reverse(self->begin()+index, self->begin()+index+count);
742 }
743SWIGINTERN 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){
744 if (index < 0)
745 throw std::out_of_range("index");
746 if (index+values.size() > self->size())
747 throw std::out_of_range("index");
748 std::copy(values.begin(), values.end(), self->begin()+index);
749 }
750
752
753
754#ifdef __cplusplus
755extern "C" {
756#endif
757
759 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
760
761 arg1 = (std::vector< int > *)jarg1;
762 (arg1)->clear();
763}
764
765
767 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
768 int *arg2 = 0 ;
769 int temp2 ;
770
771 arg1 = (std::vector< int > *)jarg1;
772 temp2 = (int)jarg2;
773 arg2 = &temp2;
774 (arg1)->push_back((int const &)*arg2);
775}
776
777
779 unsigned long jresult ;
780 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
781 std::vector< int >::size_type result;
782
783 arg1 = (std::vector< int > *)jarg1;
784 result = ((std::vector< int > const *)arg1)->size();
785 jresult = (unsigned long)result;
786 return jresult;
787}
788
789
791 unsigned long jresult ;
792 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
793 std::vector< int >::size_type result;
794
795 arg1 = (std::vector< int > *)jarg1;
796 result = ((std::vector< int > const *)arg1)->capacity();
797 jresult = (unsigned long)result;
798 return jresult;
799}
800
801
803 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
804 std::vector< int >::size_type arg2 ;
805
806 arg1 = (std::vector< int > *)jarg1;
807 arg2 = (std::vector< int >::size_type)jarg2;
808 (arg1)->reserve(arg2);
809}
810
811
813 void * jresult ;
814 std::vector< int > *result = 0 ;
815
816 result = (std::vector< int > *)new std::vector< int >();
817 jresult = (void *)result;
818 return jresult;
819}
820
821
823 void * jresult ;
824 std::vector< int > *arg1 = 0 ;
825 std::vector< int > *result = 0 ;
826
827 arg1 = (std::vector< int > *)jarg1;
828 if (!arg1) {
829 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int > const & type is null", 0);
830 return 0;
831 }
832 result = (std::vector< int > *)new std::vector< int >((std::vector< int > const &)*arg1);
833 jresult = (void *)result;
834 return jresult;
835}
836
837
839 void * jresult ;
840 int arg1 ;
841 std::vector< int > *result = 0 ;
842
843 arg1 = (int)jarg1;
844 try {
845 result = (std::vector< int > *)new_std_vector_Sl_int_Sg___SWIG_2(arg1);
846 } catch(std::out_of_range &_e) {
848 return 0;
849 }
850 jresult = (void *)result;
851 return jresult;
852}
853
854
856 int jresult ;
857 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
858 int arg2 ;
859 int result;
860
861 arg1 = (std::vector< int > *)jarg1;
862 arg2 = (int)jarg2;
863 try {
864 result = (int)std_vector_Sl_int_Sg__getitemcopy(arg1,arg2);
865 } catch(std::out_of_range &_e) {
867 return 0;
868 }
869 jresult = result;
870 return jresult;
871}
872
873
875 int jresult ;
876 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
877 int arg2 ;
878 std::vector< int >::value_type *result = 0 ;
879
880 arg1 = (std::vector< int > *)jarg1;
881 arg2 = (int)jarg2;
882 try {
883 result = (std::vector< int >::value_type *) &std_vector_Sl_int_Sg__getitem(arg1,arg2);
884 } catch(std::out_of_range &_e) {
886 return 0;
887 }
888 jresult = *result;
889 return jresult;
890}
891
892
894 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
895 int arg2 ;
896 int *arg3 = 0 ;
897 int temp3 ;
898
899 arg1 = (std::vector< int > *)jarg1;
900 arg2 = (int)jarg2;
901 temp3 = (int)jarg3;
902 arg3 = &temp3;
903 try {
904 std_vector_Sl_int_Sg__setitem(arg1,arg2,(int const &)*arg3);
905 } catch(std::out_of_range &_e) {
907 return ;
908 }
909}
910
911
913 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
914 std::vector< int > *arg2 = 0 ;
915
916 arg1 = (std::vector< int > *)jarg1;
917 arg2 = (std::vector< int > *)jarg2;
918 if (!arg2) {
919 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int > const & type is null", 0);
920 return ;
921 }
922 std_vector_Sl_int_Sg__AddRange(arg1,(std::vector< int > const &)*arg2);
923}
924
925
927 void * jresult ;
928 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
929 int arg2 ;
930 int arg3 ;
931 std::vector< int > *result = 0 ;
932
933 arg1 = (std::vector< int > *)jarg1;
934 arg2 = (int)jarg2;
935 arg3 = (int)jarg3;
936 try {
937 result = (std::vector< int > *)std_vector_Sl_int_Sg__GetRange(arg1,arg2,arg3);
938 } catch(std::out_of_range &_e) {
940 return 0;
941 } catch(std::invalid_argument &_e) {
943 return 0;
944 }
945 jresult = (void *)result;
946 return jresult;
947}
948
949
951 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
952 int arg2 ;
953 int *arg3 = 0 ;
954 int temp3 ;
955
956 arg1 = (std::vector< int > *)jarg1;
957 arg2 = (int)jarg2;
958 temp3 = (int)jarg3;
959 arg3 = &temp3;
960 try {
961 std_vector_Sl_int_Sg__Insert(arg1,arg2,(int const &)*arg3);
962 } catch(std::out_of_range &_e) {
964 return ;
965 }
966}
967
968
970 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
971 int arg2 ;
972 std::vector< int > *arg3 = 0 ;
973
974 arg1 = (std::vector< int > *)jarg1;
975 arg2 = (int)jarg2;
976 arg3 = (std::vector< int > *)jarg3;
977 if (!arg3) {
978 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int > const & type is null", 0);
979 return ;
980 }
981 try {
982 std_vector_Sl_int_Sg__InsertRange(arg1,arg2,(std::vector< int > const &)*arg3);
983 } catch(std::out_of_range &_e) {
985 return ;
986 }
987}
988
989
991 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
992 int arg2 ;
993
994 arg1 = (std::vector< int > *)jarg1;
995 arg2 = (int)jarg2;
996 try {
998 } catch(std::out_of_range &_e) {
1000 return ;
1001 }
1002}
1003
1004
1006 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1007 int arg2 ;
1008 int arg3 ;
1009
1010 arg1 = (std::vector< int > *)jarg1;
1011 arg2 = (int)jarg2;
1012 arg3 = (int)jarg3;
1013 try {
1014 std_vector_Sl_int_Sg__RemoveRange(arg1,arg2,arg3);
1015 } catch(std::out_of_range &_e) {
1017 return ;
1018 } catch(std::invalid_argument &_e) {
1020 return ;
1021 }
1022}
1023
1024
1026 void * jresult ;
1027 int *arg1 = 0 ;
1028 int arg2 ;
1029 int temp1 ;
1030 std::vector< int > *result = 0 ;
1031
1032 temp1 = (int)jarg1;
1033 arg1 = &temp1;
1034 arg2 = (int)jarg2;
1035 try {
1036 result = (std::vector< int > *)std_vector_Sl_int_Sg__Repeat((int const &)*arg1,arg2);
1037 } catch(std::out_of_range &_e) {
1039 return 0;
1040 }
1041 jresult = (void *)result;
1042 return jresult;
1043}
1044
1045
1047 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1048
1049 arg1 = (std::vector< int > *)jarg1;
1051}
1052
1053
1055 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1056 int arg2 ;
1057 int arg3 ;
1058
1059 arg1 = (std::vector< int > *)jarg1;
1060 arg2 = (int)jarg2;
1061 arg3 = (int)jarg3;
1062 try {
1064 } catch(std::out_of_range &_e) {
1066 return ;
1067 } catch(std::invalid_argument &_e) {
1069 return ;
1070 }
1071}
1072
1073
1075 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1076 int arg2 ;
1077 std::vector< int > *arg3 = 0 ;
1078
1079 arg1 = (std::vector< int > *)jarg1;
1080 arg2 = (int)jarg2;
1081 arg3 = (std::vector< int > *)jarg3;
1082 if (!arg3) {
1083 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int > const & type is null", 0);
1084 return ;
1085 }
1086 try {
1087 std_vector_Sl_int_Sg__SetRange(arg1,arg2,(std::vector< int > const &)*arg3);
1088 } catch(std::out_of_range &_e) {
1090 return ;
1091 }
1092}
1093
1094
1096 unsigned int jresult ;
1097 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1098 int *arg2 = 0 ;
1099 int temp2 ;
1100 bool result;
1101
1102 arg1 = (std::vector< int > *)jarg1;
1103 temp2 = (int)jarg2;
1104 arg2 = &temp2;
1105 result = (bool)std_vector_Sl_int_Sg__Contains(arg1,(int const &)*arg2);
1106 jresult = result;
1107 return jresult;
1108}
1109
1110
1112 int jresult ;
1113 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1114 int *arg2 = 0 ;
1115 int temp2 ;
1116 int result;
1117
1118 arg1 = (std::vector< int > *)jarg1;
1119 temp2 = (int)jarg2;
1120 arg2 = &temp2;
1121 result = (int)std_vector_Sl_int_Sg__IndexOf(arg1,(int const &)*arg2);
1122 jresult = result;
1123 return jresult;
1124}
1125
1126
1128 int jresult ;
1129 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1130 int *arg2 = 0 ;
1131 int temp2 ;
1132 int result;
1133
1134 arg1 = (std::vector< int > *)jarg1;
1135 temp2 = (int)jarg2;
1136 arg2 = &temp2;
1137 result = (int)std_vector_Sl_int_Sg__LastIndexOf(arg1,(int const &)*arg2);
1138 jresult = result;
1139 return jresult;
1140}
1141
1142
1144 unsigned int jresult ;
1145 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1146 int *arg2 = 0 ;
1147 int temp2 ;
1148 bool result;
1149
1150 arg1 = (std::vector< int > *)jarg1;
1151 temp2 = (int)jarg2;
1152 arg2 = &temp2;
1153 result = (bool)std_vector_Sl_int_Sg__Remove(arg1,(int const &)*arg2);
1154 jresult = result;
1155 return jresult;
1156}
1157
1158
1160 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1161
1162 arg1 = (std::vector< int > *)jarg1;
1163 delete arg1;
1164}
1165
1166
1168 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1169
1170 arg1 = (std::vector< std::vector< int > > *)jarg1;
1171 (arg1)->clear();
1172}
1173
1174
1176 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1177 std::vector< int > *arg2 = 0 ;
1178
1179 arg1 = (std::vector< std::vector< int > > *)jarg1;
1180 arg2 = (std::vector< int > *)jarg2;
1181 if (!arg2) {
1182 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int > const & type is null", 0);
1183 return ;
1184 }
1185 (arg1)->push_back((std::vector< int > const &)*arg2);
1186}
1187
1188
1190 unsigned long jresult ;
1191 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1192 std::vector< std::vector< int > >::size_type result;
1193
1194 arg1 = (std::vector< std::vector< int > > *)jarg1;
1195 result = ((std::vector< std::vector< int > > const *)arg1)->size();
1196 jresult = (unsigned long)result;
1197 return jresult;
1198}
1199
1200
1202 unsigned long jresult ;
1203 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1204 std::vector< std::vector< int > >::size_type result;
1205
1206 arg1 = (std::vector< std::vector< int > > *)jarg1;
1207 result = ((std::vector< std::vector< int > > const *)arg1)->capacity();
1208 jresult = (unsigned long)result;
1209 return jresult;
1210}
1211
1212
1214 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1215 std::vector< std::vector< int > >::size_type arg2 ;
1216
1217 arg1 = (std::vector< std::vector< int > > *)jarg1;
1218 arg2 = (std::vector< std::vector< int > >::size_type)jarg2;
1219 (arg1)->reserve(arg2);
1220}
1221
1222
1224 void * jresult ;
1225 std::vector< std::vector< int > > *result = 0 ;
1226
1227 result = (std::vector< std::vector< int > > *)new std::vector< std::vector< int > >();
1228 jresult = (void *)result;
1229 return jresult;
1230}
1231
1232
1234 void * jresult ;
1235 std::vector< std::vector< int > > *arg1 = 0 ;
1236 std::vector< std::vector< int > > *result = 0 ;
1237
1238 arg1 = (std::vector< std::vector< int > > *)jarg1;
1239 if (!arg1) {
1240 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< std::vector< int > > const & type is null", 0);
1241 return 0;
1242 }
1243 result = (std::vector< std::vector< int > > *)new std::vector< std::vector< int > >((std::vector< std::vector< int > > const &)*arg1);
1244 jresult = (void *)result;
1245 return jresult;
1246}
1247
1248
1250 void * jresult ;
1251 int arg1 ;
1252 std::vector< std::vector< int > > *result = 0 ;
1253
1254 arg1 = (int)jarg1;
1255 try {
1256 result = (std::vector< std::vector< int > > *)new_std_vector_Sl_std_vector_Sl_int_Sg__Sg___SWIG_2(arg1);
1257 } catch(std::out_of_range &_e) {
1259 return 0;
1260 }
1261 jresult = (void *)result;
1262 return jresult;
1263}
1264
1265
1267 void * jresult ;
1268 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1269 int arg2 ;
1270 std::vector< int > result;
1271
1272 arg1 = (std::vector< std::vector< int > > *)jarg1;
1273 arg2 = (int)jarg2;
1274 try {
1276 } catch(std::out_of_range &_e) {
1278 return 0;
1279 }
1280 jresult = new std::vector< int >((const std::vector< int > &)result);
1281 return jresult;
1282}
1283
1284
1286 void * jresult ;
1287 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1288 int arg2 ;
1289 std::vector< std::vector< int > >::value_type *result = 0 ;
1290
1291 arg1 = (std::vector< std::vector< int > > *)jarg1;
1292 arg2 = (int)jarg2;
1293 try {
1294 result = (std::vector< std::vector< int > >::value_type *) &std_vector_Sl_std_vector_Sl_int_Sg__Sg__getitem(arg1,arg2);
1295 } catch(std::out_of_range &_e) {
1297 return 0;
1298 }
1299 jresult = (void *)result;
1300 return jresult;
1301}
1302
1303
1305 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1306 int arg2 ;
1307 std::vector< int > *arg3 = 0 ;
1308
1309 arg1 = (std::vector< std::vector< int > > *)jarg1;
1310 arg2 = (int)jarg2;
1311 arg3 = (std::vector< int > *)jarg3;
1312 if (!arg3) {
1313 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int > const & type is null", 0);
1314 return ;
1315 }
1316 try {
1317 std_vector_Sl_std_vector_Sl_int_Sg__Sg__setitem(arg1,arg2,(std::vector< int > const &)*arg3);
1318 } catch(std::out_of_range &_e) {
1320 return ;
1321 }
1322}
1323
1324
1326 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1327 std::vector< std::vector< int > > *arg2 = 0 ;
1328
1329 arg1 = (std::vector< std::vector< int > > *)jarg1;
1330 arg2 = (std::vector< std::vector< int > > *)jarg2;
1331 if (!arg2) {
1332 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< std::vector< int > > const & type is null", 0);
1333 return ;
1334 }
1335 std_vector_Sl_std_vector_Sl_int_Sg__Sg__AddRange(arg1,(std::vector< std::vector< int > > const &)*arg2);
1336}
1337
1338
1340 void * jresult ;
1341 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1342 int arg2 ;
1343 int arg3 ;
1344 std::vector< std::vector< int > > *result = 0 ;
1345
1346 arg1 = (std::vector< std::vector< int > > *)jarg1;
1347 arg2 = (int)jarg2;
1348 arg3 = (int)jarg3;
1349 try {
1350 result = (std::vector< std::vector< int > > *)std_vector_Sl_std_vector_Sl_int_Sg__Sg__GetRange(arg1,arg2,arg3);
1351 } catch(std::out_of_range &_e) {
1353 return 0;
1354 } catch(std::invalid_argument &_e) {
1356 return 0;
1357 }
1358 jresult = (void *)result;
1359 return jresult;
1360}
1361
1362
1364 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1365 int arg2 ;
1366 std::vector< int > *arg3 = 0 ;
1367
1368 arg1 = (std::vector< std::vector< int > > *)jarg1;
1369 arg2 = (int)jarg2;
1370 arg3 = (std::vector< int > *)jarg3;
1371 if (!arg3) {
1372 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int > const & type is null", 0);
1373 return ;
1374 }
1375 try {
1376 std_vector_Sl_std_vector_Sl_int_Sg__Sg__Insert(arg1,arg2,(std::vector< int > const &)*arg3);
1377 } catch(std::out_of_range &_e) {
1379 return ;
1380 }
1381}
1382
1383
1385 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1386 int arg2 ;
1387 std::vector< std::vector< int > > *arg3 = 0 ;
1388
1389 arg1 = (std::vector< std::vector< int > > *)jarg1;
1390 arg2 = (int)jarg2;
1391 arg3 = (std::vector< std::vector< int > > *)jarg3;
1392 if (!arg3) {
1393 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< std::vector< int > > const & type is null", 0);
1394 return ;
1395 }
1396 try {
1397 std_vector_Sl_std_vector_Sl_int_Sg__Sg__InsertRange(arg1,arg2,(std::vector< std::vector< int > > const &)*arg3);
1398 } catch(std::out_of_range &_e) {
1400 return ;
1401 }
1402}
1403
1404
1406 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1407 int arg2 ;
1408
1409 arg1 = (std::vector< std::vector< int > > *)jarg1;
1410 arg2 = (int)jarg2;
1411 try {
1413 } catch(std::out_of_range &_e) {
1415 return ;
1416 }
1417}
1418
1419
1421 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1422 int arg2 ;
1423 int arg3 ;
1424
1425 arg1 = (std::vector< std::vector< int > > *)jarg1;
1426 arg2 = (int)jarg2;
1427 arg3 = (int)jarg3;
1428 try {
1430 } catch(std::out_of_range &_e) {
1432 return ;
1433 } catch(std::invalid_argument &_e) {
1435 return ;
1436 }
1437}
1438
1439
1441 void * jresult ;
1442 std::vector< int > *arg1 = 0 ;
1443 int arg2 ;
1444 std::vector< std::vector< int > > *result = 0 ;
1445
1446 arg1 = (std::vector< int > *)jarg1;
1447 if (!arg1) {
1448 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int > const & type is null", 0);
1449 return 0;
1450 }
1451 arg2 = (int)jarg2;
1452 try {
1453 result = (std::vector< std::vector< int > > *)std_vector_Sl_std_vector_Sl_int_Sg__Sg__Repeat((std::vector< int > const &)*arg1,arg2);
1454 } catch(std::out_of_range &_e) {
1456 return 0;
1457 }
1458 jresult = (void *)result;
1459 return jresult;
1460}
1461
1462
1464 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1465
1466 arg1 = (std::vector< std::vector< int > > *)jarg1;
1468}
1469
1470
1472 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1473 int arg2 ;
1474 int arg3 ;
1475
1476 arg1 = (std::vector< std::vector< int > > *)jarg1;
1477 arg2 = (int)jarg2;
1478 arg3 = (int)jarg3;
1479 try {
1481 } catch(std::out_of_range &_e) {
1483 return ;
1484 } catch(std::invalid_argument &_e) {
1486 return ;
1487 }
1488}
1489
1490
1492 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1493 int arg2 ;
1494 std::vector< std::vector< int > > *arg3 = 0 ;
1495
1496 arg1 = (std::vector< std::vector< int > > *)jarg1;
1497 arg2 = (int)jarg2;
1498 arg3 = (std::vector< std::vector< int > > *)jarg3;
1499 if (!arg3) {
1500 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< std::vector< int > > const & type is null", 0);
1501 return ;
1502 }
1503 try {
1504 std_vector_Sl_std_vector_Sl_int_Sg__Sg__SetRange(arg1,arg2,(std::vector< std::vector< int > > const &)*arg3);
1505 } catch(std::out_of_range &_e) {
1507 return ;
1508 }
1509}
1510
1511
1513 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1514
1515 arg1 = (std::vector< std::vector< int > > *)jarg1;
1516 delete arg1;
1517}
1518
1519
1521 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1522
1523 arg1 = (std::vector< int64_t > *)jarg1;
1524 (arg1)->clear();
1525}
1526
1527
1529 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1530 long *arg2 = 0 ;
1531 long temp2 ;
1532
1533 arg1 = (std::vector< int64_t > *)jarg1;
1534 temp2 = (long)jarg2;
1535 arg2 = &temp2;
1536 (arg1)->push_back((long const &)*arg2);
1537}
1538
1539
1541 unsigned long jresult ;
1542 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1543 std::vector< long >::size_type result;
1544
1545 arg1 = (std::vector< int64_t > *)jarg1;
1546 result = ((std::vector< int64_t > const *)arg1)->size();
1547 jresult = (unsigned long)result;
1548 return jresult;
1549}
1550
1551
1553 unsigned long jresult ;
1554 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1555 std::vector< long >::size_type result;
1556
1557 arg1 = (std::vector< int64_t > *)jarg1;
1558 result = ((std::vector< int64_t > const *)arg1)->capacity();
1559 jresult = (unsigned long)result;
1560 return jresult;
1561}
1562
1563
1565 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1566 std::vector< long >::size_type arg2 ;
1567
1568 arg1 = (std::vector< int64_t > *)jarg1;
1569 arg2 = (std::vector< long >::size_type)jarg2;
1570 (arg1)->reserve(arg2);
1571}
1572
1573
1575 void * jresult ;
1576 std::vector< int64_t > *result = 0 ;
1577
1578 result = (std::vector< int64_t > *)new std::vector< int64_t >();
1579 jresult = (void *)result;
1580 return jresult;
1581}
1582
1583
1585 void * jresult ;
1586 std::vector< int64_t > *arg1 = 0 ;
1587 std::vector< int64_t > *result = 0 ;
1588
1589 arg1 = (std::vector< int64_t > *)jarg1;
1590 if (!arg1) {
1591 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int64_t > const & type is null", 0);
1592 return 0;
1593 }
1594 result = (std::vector< int64_t > *)new std::vector< int64_t >((std::vector< int64_t > const &)*arg1);
1595 jresult = (void *)result;
1596 return jresult;
1597}
1598
1599
1601 void * jresult ;
1602 int arg1 ;
1603 std::vector< int64_t > *result = 0 ;
1604
1605 arg1 = (int)jarg1;
1606 try {
1607 result = (std::vector< int64_t > *)new_std_vector_Sl_int64_t_Sg___SWIG_2(arg1);
1608 } catch(std::out_of_range &_e) {
1610 return 0;
1611 }
1612 jresult = (void *)result;
1613 return jresult;
1614}
1615
1616
1618 long long jresult ;
1619 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1620 int arg2 ;
1621 long result;
1622
1623 arg1 = (std::vector< int64_t > *)jarg1;
1624 arg2 = (int)jarg2;
1625 try {
1626 result = (long)std_vector_Sl_int64_t_Sg__getitemcopy(arg1,arg2);
1627 } catch(std::out_of_range &_e) {
1629 return 0;
1630 }
1631 jresult = result;
1632 return jresult;
1633}
1634
1635
1637 long long jresult ;
1638 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1639 int arg2 ;
1640 std::vector< long >::value_type *result = 0 ;
1641
1642 arg1 = (std::vector< int64_t > *)jarg1;
1643 arg2 = (int)jarg2;
1644 try {
1645 result = (std::vector< long >::value_type *) &std_vector_Sl_int64_t_Sg__getitem(arg1,arg2);
1646 } catch(std::out_of_range &_e) {
1648 return 0;
1649 }
1650 jresult = *result;
1651 return jresult;
1652}
1653
1654
1656 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1657 int arg2 ;
1658 long *arg3 = 0 ;
1659 long temp3 ;
1660
1661 arg1 = (std::vector< int64_t > *)jarg1;
1662 arg2 = (int)jarg2;
1663 temp3 = (long)jarg3;
1664 arg3 = &temp3;
1665 try {
1666 std_vector_Sl_int64_t_Sg__setitem(arg1,arg2,(long const &)*arg3);
1667 } catch(std::out_of_range &_e) {
1669 return ;
1670 }
1671}
1672
1673
1675 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1676 std::vector< long > *arg2 = 0 ;
1677
1678 arg1 = (std::vector< int64_t > *)jarg1;
1679 arg2 = (std::vector< long > *)jarg2;
1680 if (!arg2) {
1681 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< long > const & type is null", 0);
1682 return ;
1683 }
1684 std_vector_Sl_int64_t_Sg__AddRange(arg1,(std::vector< long > const &)*arg2);
1685}
1686
1687
1689 void * jresult ;
1690 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1691 int arg2 ;
1692 int arg3 ;
1693 std::vector< long > *result = 0 ;
1694
1695 arg1 = (std::vector< int64_t > *)jarg1;
1696 arg2 = (int)jarg2;
1697 arg3 = (int)jarg3;
1698 try {
1699 result = (std::vector< long > *)std_vector_Sl_int64_t_Sg__GetRange(arg1,arg2,arg3);
1700 } catch(std::out_of_range &_e) {
1702 return 0;
1703 } catch(std::invalid_argument &_e) {
1705 return 0;
1706 }
1707 jresult = (void *)result;
1708 return jresult;
1709}
1710
1711
1713 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1714 int arg2 ;
1715 long *arg3 = 0 ;
1716 long temp3 ;
1717
1718 arg1 = (std::vector< int64_t > *)jarg1;
1719 arg2 = (int)jarg2;
1720 temp3 = (long)jarg3;
1721 arg3 = &temp3;
1722 try {
1723 std_vector_Sl_int64_t_Sg__Insert(arg1,arg2,(long const &)*arg3);
1724 } catch(std::out_of_range &_e) {
1726 return ;
1727 }
1728}
1729
1730
1732 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1733 int arg2 ;
1734 std::vector< long > *arg3 = 0 ;
1735
1736 arg1 = (std::vector< int64_t > *)jarg1;
1737 arg2 = (int)jarg2;
1738 arg3 = (std::vector< long > *)jarg3;
1739 if (!arg3) {
1740 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< long > const & type is null", 0);
1741 return ;
1742 }
1743 try {
1744 std_vector_Sl_int64_t_Sg__InsertRange(arg1,arg2,(std::vector< long > const &)*arg3);
1745 } catch(std::out_of_range &_e) {
1747 return ;
1748 }
1749}
1750
1751
1753 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1754 int arg2 ;
1755
1756 arg1 = (std::vector< int64_t > *)jarg1;
1757 arg2 = (int)jarg2;
1758 try {
1760 } catch(std::out_of_range &_e) {
1762 return ;
1763 }
1764}
1765
1766
1768 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1769 int arg2 ;
1770 int arg3 ;
1771
1772 arg1 = (std::vector< int64_t > *)jarg1;
1773 arg2 = (int)jarg2;
1774 arg3 = (int)jarg3;
1775 try {
1777 } catch(std::out_of_range &_e) {
1779 return ;
1780 } catch(std::invalid_argument &_e) {
1782 return ;
1783 }
1784}
1785
1786
1788 void * jresult ;
1789 long *arg1 = 0 ;
1790 int arg2 ;
1791 long temp1 ;
1792 std::vector< long > *result = 0 ;
1793
1794 temp1 = (long)jarg1;
1795 arg1 = &temp1;
1796 arg2 = (int)jarg2;
1797 try {
1798 result = (std::vector< long > *)std_vector_Sl_int64_t_Sg__Repeat((long const &)*arg1,arg2);
1799 } catch(std::out_of_range &_e) {
1801 return 0;
1802 }
1803 jresult = (void *)result;
1804 return jresult;
1805}
1806
1807
1809 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1810
1811 arg1 = (std::vector< int64_t > *)jarg1;
1813}
1814
1815
1817 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1818 int arg2 ;
1819 int arg3 ;
1820
1821 arg1 = (std::vector< int64_t > *)jarg1;
1822 arg2 = (int)jarg2;
1823 arg3 = (int)jarg3;
1824 try {
1826 } catch(std::out_of_range &_e) {
1828 return ;
1829 } catch(std::invalid_argument &_e) {
1831 return ;
1832 }
1833}
1834
1835
1837 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1838 int arg2 ;
1839 std::vector< long > *arg3 = 0 ;
1840
1841 arg1 = (std::vector< int64_t > *)jarg1;
1842 arg2 = (int)jarg2;
1843 arg3 = (std::vector< long > *)jarg3;
1844 if (!arg3) {
1845 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< long > const & type is null", 0);
1846 return ;
1847 }
1848 try {
1849 std_vector_Sl_int64_t_Sg__SetRange(arg1,arg2,(std::vector< long > const &)*arg3);
1850 } catch(std::out_of_range &_e) {
1852 return ;
1853 }
1854}
1855
1856
1858 unsigned int jresult ;
1859 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1860 long *arg2 = 0 ;
1861 long temp2 ;
1862 bool result;
1863
1864 arg1 = (std::vector< int64_t > *)jarg1;
1865 temp2 = (long)jarg2;
1866 arg2 = &temp2;
1867 result = (bool)std_vector_Sl_int64_t_Sg__Contains(arg1,(long const &)*arg2);
1868 jresult = result;
1869 return jresult;
1870}
1871
1872
1874 int jresult ;
1875 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1876 long *arg2 = 0 ;
1877 long temp2 ;
1878 int result;
1879
1880 arg1 = (std::vector< int64_t > *)jarg1;
1881 temp2 = (long)jarg2;
1882 arg2 = &temp2;
1883 result = (int)std_vector_Sl_int64_t_Sg__IndexOf(arg1,(long const &)*arg2);
1884 jresult = result;
1885 return jresult;
1886}
1887
1888
1890 int jresult ;
1891 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1892 long *arg2 = 0 ;
1893 long temp2 ;
1894 int result;
1895
1896 arg1 = (std::vector< int64_t > *)jarg1;
1897 temp2 = (long)jarg2;
1898 arg2 = &temp2;
1899 result = (int)std_vector_Sl_int64_t_Sg__LastIndexOf(arg1,(long const &)*arg2);
1900 jresult = result;
1901 return jresult;
1902}
1903
1904
1906 unsigned int jresult ;
1907 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1908 long *arg2 = 0 ;
1909 long temp2 ;
1910 bool result;
1911
1912 arg1 = (std::vector< int64_t > *)jarg1;
1913 temp2 = (long)jarg2;
1914 arg2 = &temp2;
1915 result = (bool)std_vector_Sl_int64_t_Sg__Remove(arg1,(long const &)*arg2);
1916 jresult = result;
1917 return jresult;
1918}
1919
1920
1922 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1923
1924 arg1 = (std::vector< int64_t > *)jarg1;
1925 delete arg1;
1926}
1927
1928
1930 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
1931
1932 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
1933 (arg1)->clear();
1934}
1935
1936
1938 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
1939 std::vector< int64_t > *arg2 = 0 ;
1940
1941 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
1942 arg2 = (std::vector< int64_t > *)jarg2;
1943 if (!arg2) {
1944 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int64_t > const & type is null", 0);
1945 return ;
1946 }
1947 (arg1)->push_back((std::vector< int64_t > const &)*arg2);
1948}
1949
1950
1952 unsigned long jresult ;
1953 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
1954 std::vector< std::vector< long > >::size_type result;
1955
1956 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
1957 result = ((std::vector< std::vector< int64_t > > const *)arg1)->size();
1958 jresult = (unsigned long)result;
1959 return jresult;
1960}
1961
1962
1964 unsigned long jresult ;
1965 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
1966 std::vector< std::vector< long > >::size_type result;
1967
1968 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
1969 result = ((std::vector< std::vector< int64_t > > const *)arg1)->capacity();
1970 jresult = (unsigned long)result;
1971 return jresult;
1972}
1973
1974
1976 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
1977 std::vector< std::vector< long > >::size_type arg2 ;
1978
1979 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
1980 arg2 = (std::vector< std::vector< long > >::size_type)jarg2;
1981 (arg1)->reserve(arg2);
1982}
1983
1984
1986 void * jresult ;
1987 std::vector< std::vector< int64_t > > *result = 0 ;
1988
1989 result = (std::vector< std::vector< int64_t > > *)new std::vector< std::vector< int64_t > >();
1990 jresult = (void *)result;
1991 return jresult;
1992}
1993
1994
1996 void * jresult ;
1997 std::vector< std::vector< int64_t > > *arg1 = 0 ;
1998 std::vector< std::vector< int64_t > > *result = 0 ;
1999
2000 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2001 if (!arg1) {
2002 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< std::vector< int64_t > > const & type is null", 0);
2003 return 0;
2004 }
2005 result = (std::vector< std::vector< int64_t > > *)new std::vector< std::vector< int64_t > >((std::vector< std::vector< int64_t > > const &)*arg1);
2006 jresult = (void *)result;
2007 return jresult;
2008}
2009
2010
2012 void * jresult ;
2013 int arg1 ;
2014 std::vector< std::vector< int64_t > > *result = 0 ;
2015
2016 arg1 = (int)jarg1;
2017 try {
2018 result = (std::vector< std::vector< int64_t > > *)new_std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg___SWIG_2(arg1);
2019 } catch(std::out_of_range &_e) {
2021 return 0;
2022 }
2023 jresult = (void *)result;
2024 return jresult;
2025}
2026
2027
2029 void * jresult ;
2030 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2031 int arg2 ;
2032 std::vector< int64_t > result;
2033
2034 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2035 arg2 = (int)jarg2;
2036 try {
2038 } catch(std::out_of_range &_e) {
2040 return 0;
2041 }
2042 jresult = new std::vector< int64_t >((const std::vector< int64_t > &)result);
2043 return jresult;
2044}
2045
2046
2048 void * jresult ;
2049 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2050 int arg2 ;
2051 std::vector< std::vector< long > >::value_type *result = 0 ;
2052
2053 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2054 arg2 = (int)jarg2;
2055 try {
2056 result = (std::vector< std::vector< long > >::value_type *) &std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__getitem(arg1,arg2);
2057 } catch(std::out_of_range &_e) {
2059 return 0;
2060 }
2061 jresult = (void *)result;
2062 return jresult;
2063}
2064
2065
2067 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2068 int arg2 ;
2069 std::vector< int64_t > *arg3 = 0 ;
2070
2071 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2072 arg2 = (int)jarg2;
2073 arg3 = (std::vector< int64_t > *)jarg3;
2074 if (!arg3) {
2075 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int64_t > const & type is null", 0);
2076 return ;
2077 }
2078 try {
2079 std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__setitem(arg1,arg2,(std::vector< long > const &)*arg3);
2080 } catch(std::out_of_range &_e) {
2082 return ;
2083 }
2084}
2085
2086
2088 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2089 std::vector< std::vector< int64_t > > *arg2 = 0 ;
2090
2091 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2092 arg2 = (std::vector< std::vector< int64_t > > *)jarg2;
2093 if (!arg2) {
2094 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< std::vector< int64_t > > const & type is null", 0);
2095 return ;
2096 }
2097 std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__AddRange(arg1,(std::vector< std::vector< long > > const &)*arg2);
2098}
2099
2100
2102 void * jresult ;
2103 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2104 int arg2 ;
2105 int arg3 ;
2106 std::vector< std::vector< int64_t > > *result = 0 ;
2107
2108 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2109 arg2 = (int)jarg2;
2110 arg3 = (int)jarg3;
2111 try {
2112 result = (std::vector< std::vector< int64_t > > *)std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__GetRange(arg1,arg2,arg3);
2113 } catch(std::out_of_range &_e) {
2115 return 0;
2116 } catch(std::invalid_argument &_e) {
2118 return 0;
2119 }
2120 jresult = (void *)result;
2121 return jresult;
2122}
2123
2124
2126 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2127 int arg2 ;
2128 std::vector< int64_t > *arg3 = 0 ;
2129
2130 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2131 arg2 = (int)jarg2;
2132 arg3 = (std::vector< int64_t > *)jarg3;
2133 if (!arg3) {
2134 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int64_t > const & type is null", 0);
2135 return ;
2136 }
2137 try {
2138 std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__Insert(arg1,arg2,(std::vector< long > const &)*arg3);
2139 } catch(std::out_of_range &_e) {
2141 return ;
2142 }
2143}
2144
2145
2147 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2148 int arg2 ;
2149 std::vector< std::vector< int64_t > > *arg3 = 0 ;
2150
2151 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2152 arg2 = (int)jarg2;
2153 arg3 = (std::vector< std::vector< int64_t > > *)jarg3;
2154 if (!arg3) {
2155 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< std::vector< int64_t > > const & type is null", 0);
2156 return ;
2157 }
2158 try {
2159 std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__InsertRange(arg1,arg2,(std::vector< std::vector< long > > const &)*arg3);
2160 } catch(std::out_of_range &_e) {
2162 return ;
2163 }
2164}
2165
2166
2168 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2169 int arg2 ;
2170
2171 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2172 arg2 = (int)jarg2;
2173 try {
2175 } catch(std::out_of_range &_e) {
2177 return ;
2178 }
2179}
2180
2181
2183 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2184 int arg2 ;
2185 int arg3 ;
2186
2187 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2188 arg2 = (int)jarg2;
2189 arg3 = (int)jarg3;
2190 try {
2192 } catch(std::out_of_range &_e) {
2194 return ;
2195 } catch(std::invalid_argument &_e) {
2197 return ;
2198 }
2199}
2200
2201
2203 void * jresult ;
2204 std::vector< int64_t > *arg1 = 0 ;
2205 int arg2 ;
2206 std::vector< std::vector< int64_t > > *result = 0 ;
2207
2208 arg1 = (std::vector< int64_t > *)jarg1;
2209 if (!arg1) {
2210 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< int64_t > const & type is null", 0);
2211 return 0;
2212 }
2213 arg2 = (int)jarg2;
2214 try {
2215 result = (std::vector< std::vector< int64_t > > *)std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__Repeat((std::vector< long > const &)*arg1,arg2);
2216 } catch(std::out_of_range &_e) {
2218 return 0;
2219 }
2220 jresult = (void *)result;
2221 return jresult;
2222}
2223
2224
2226 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2227
2228 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2230}
2231
2232
2234 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2235 int arg2 ;
2236 int arg3 ;
2237
2238 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2239 arg2 = (int)jarg2;
2240 arg3 = (int)jarg3;
2241 try {
2243 } catch(std::out_of_range &_e) {
2245 return ;
2246 } catch(std::invalid_argument &_e) {
2248 return ;
2249 }
2250}
2251
2252
2254 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2255 int arg2 ;
2256 std::vector< std::vector< int64_t > > *arg3 = 0 ;
2257
2258 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2259 arg2 = (int)jarg2;
2260 arg3 = (std::vector< std::vector< int64_t > > *)jarg3;
2261 if (!arg3) {
2262 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "std::vector< std::vector< int64_t > > const & type is null", 0);
2263 return ;
2264 }
2265 try {
2266 std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__SetRange(arg1,arg2,(std::vector< std::vector< long > > const &)*arg3);
2267 } catch(std::out_of_range &_e) {
2269 return ;
2270 }
2271}
2272
2273
2275 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2276
2277 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2278 delete arg1;
2279}
2280
2281
2283 void * jresult ;
2284 std::string *arg1 = 0 ;
2286
2287 if (!jarg1) {
2289 return 0;
2290 }
2291 std::string arg1_str(jarg1);
2292 arg1 = &arg1_str;
2293 result = (operations_research::KnapsackSolver *)new operations_research::KnapsackSolver((std::string const &)*arg1);
2294 jresult = (void *)result;
2295 return jresult;
2296}
2297
2298
2300 void * jresult ;
2302 std::string *arg2 = 0 ;
2304
2306 if (!jarg2) {
2308 return 0;
2309 }
2310 std::string arg2_str(jarg2);
2311 arg2 = &arg2_str;
2312 result = (operations_research::KnapsackSolver *)new operations_research::KnapsackSolver(arg1,(std::string const &)*arg2);
2313 jresult = (void *)result;
2314 return jresult;
2315}
2316
2317
2320
2321 arg1 = (operations_research::KnapsackSolver *)jarg1;
2322 delete arg1;
2323}
2324
2325
2327 int len3_1, int len3_2, int64_t*
2328 jarg3, int length4, int64_t* jarg4) {
2330 std::vector< int64_t > *arg2 = 0 ;
2331 std::vector< std::vector< int64_t > > *arg3 = 0 ;
2332 std::vector< int64_t > *arg4 = 0 ;
2333 std::vector< std::vector< int64_t > > result3 ;
2334
2335 arg1 = (operations_research::KnapsackSolver *)jarg1;
2336
2337 arg2 = new std::vector<int64_t>;
2338 arg2->reserve(length2);
2339 for(int i = 0; i < length2; ++i) {
2340 arg2->emplace_back(jarg2[i]);
2341 }
2342
2343
2344 result3.clear();
2345 result3.resize(len3_1);
2346
2347 int64_t* inner_array = reinterpret_cast<int64_t*>(jarg3);
2348 int actualIndex = 0;
2349 for (int index1 = 0; index1 < len3_1; ++index1) {
2350 result3[index1].reserve(len3_2);
2351 for (int index2 = 0; index2 < len3_2; ++index2) {
2352 const int64_t value = inner_array[actualIndex];
2353 result3[index1].emplace_back(value);
2354 actualIndex++;
2355 }
2356 }
2357
2358 arg3 = &result3;
2359
2360
2361 arg4 = new std::vector<int64_t>;
2362 arg4->reserve(length4);
2363 for(int i = 0; i < length4; ++i) {
2364 arg4->emplace_back(jarg4[i]);
2365 }
2366
2367 (arg1)->Init((std::vector< int64_t > const &)*arg2,(std::vector< std::vector< int64_t > > const &)*arg3,(std::vector< int64_t > const &)*arg4);
2368 {
2369 delete arg2;
2370 }
2371 {
2372 delete arg4;
2373 }
2374}
2375
2376
2378 long long jresult ;
2380 int64_t result;
2381
2382 arg1 = (operations_research::KnapsackSolver *)jarg1;
2383 result = (int64_t)(arg1)->Solve();
2384 jresult = result;
2385 return jresult;
2386}
2387
2388
2390 unsigned int jresult ;
2392 int arg2 ;
2393 bool result;
2394
2395 arg1 = (operations_research::KnapsackSolver *)jarg1;
2396 arg2 = (int)jarg2;
2397 result = (bool)((operations_research::KnapsackSolver const *)arg1)->BestSolutionContains(arg2);
2398 jresult = result;
2399 return jresult;
2400}
2401
2402
2404 unsigned int jresult ;
2406 bool result;
2407
2408 arg1 = (operations_research::KnapsackSolver *)jarg1;
2409 result = (bool)((operations_research::KnapsackSolver const *)arg1)->IsSolutionOptimal();
2410 jresult = result;
2411 return jresult;
2412}
2413
2414
2416 char * jresult ;
2418 std::string result;
2419
2420 arg1 = (operations_research::KnapsackSolver *)jarg1;
2421 result = ((operations_research::KnapsackSolver const *)arg1)->GetName();
2422 jresult = SWIG_csharp_string_callback((&result)->c_str());
2423 return jresult;
2424}
2425
2426
2428 unsigned int jresult ;
2430 bool result;
2431
2432 arg1 = (operations_research::KnapsackSolver *)jarg1;
2433 result = (bool)((operations_research::KnapsackSolver const *)arg1)->use_reduction();
2434 jresult = result;
2435 return jresult;
2436}
2437
2438
2441 bool arg2 ;
2442
2443 arg1 = (operations_research::KnapsackSolver *)jarg1;
2444 arg2 = jarg2 ? true : false;
2445 (arg1)->set_use_reduction(arg2);
2446}
2447
2448
2451 double arg2 ;
2452
2453 arg1 = (operations_research::KnapsackSolver *)jarg1;
2454 arg2 = (double)jarg2;
2455 (arg1)->set_time_limit(arg2);
2456}
2457
2458
2459#ifdef __cplusplus
2460}
2461#endif
2462
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)
SWIGINTERN bool std_vector_Sl_int64_t_Sg__Contains(std::vector< int64_t > *self, long const &value)
SWIGEXPORT void *SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_Repeat___(int jarg1, int jarg2)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_IntVector_AddRange___(void *jarg1, void *jarg2)
SWIGINTERN void std_vector_Sl_int64_t_Sg__AddRange(std::vector< int64_t > *self, std::vector< long > const &values)
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)
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)
SWIGINTERN void std_vector_Sl_int64_t_Sg__setitem(std::vector< int64_t > *self, int index, long const &val)
void(SWIGSTDCALL * SWIG_CSharpExceptionCallback_t)(const char *)
void(SWIGSTDCALL * SWIG_CSharpExceptionArgumentCallback_t)(const char *, const char *)
SWIGINTERN bool std_vector_Sl_int64_t_Sg__Remove(std::vector< int64_t > *self, long const &value)
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 std::vector< long > * std_vector_Sl_int64_t_Sg__GetRange(std::vector< int64_t > *self, int index, int count)
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< long > >::value_type const & std_vector_Sl_std_vector_Sl_int64_t_Sg__Sg__getitem(std::vector< std::vector< int64_t > > *self, int index)
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 bool std_vector_Sl_int_Sg__Contains(std::vector< int > *self, int const &value)
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__SetRange(std::vector< int64_t > *self, int index, std::vector< long > const &values)
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 std::vector< long > * std_vector_Sl_int64_t_Sg__Repeat(long const &value, int count)
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 int std_vector_Sl_int_Sg__getitemcopy(std::vector< int > *self, int index)
SWIGEXPORT void SWIGSTDCALL CSharp_GooglefOrToolsfAlgorithms_delete_IntVector___(void *jarg1)
SWIGINTERN long std_vector_Sl_int64_t_Sg__getitemcopy(std::vector< int64_t > *self, int index)
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)
SWIGINTERN int std_vector_Sl_int64_t_Sg__IndexOf(std::vector< int64_t > *self, long const &value)
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[]
SWIGINTERN void std_vector_Sl_int64_t_Sg__InsertRange(std::vector< int64_t > *self, int index, std::vector< long > const &values)
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)
SWIGINTERN void std_vector_Sl_int64_t_Sg__Insert(std::vector< int64_t > *self, int index, long const &x)
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 std::vector< int > * std_vector_Sl_int_Sg__GetRange(std::vector< int > *self, int index, int count)
SWIGINTERN std::vector< long >::value_type const & std_vector_Sl_int64_t_Sg__getitem(std::vector< int64_t > *self, int index)
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)
#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
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 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)
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)
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 int std_vector_Sl_int64_t_Sg__LastIndexOf(std::vector< int64_t > *self, long const &value)
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)
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