20template<
typename T>
class SwigValueWrapper {
21 struct SwigMovePointer {
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; }
27 SwigValueWrapper& operator=(
const SwigValueWrapper<T>& rhs);
28 SwigValueWrapper(
const SwigValueWrapper<T>& rhs);
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; }
36template <
typename T> T SwigValueInit() {
47#ifndef SWIGTEMPLATEDISAMBIGUATOR
48# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
49# define SWIGTEMPLATEDISAMBIGUATOR template
50# elif defined(__HP_aCC)
53# define SWIGTEMPLATEDISAMBIGUATOR template
55# define SWIGTEMPLATEDISAMBIGUATOR
61# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
62# define SWIGINLINE inline
71# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
72# define SWIGUNUSED __attribute__ ((__unused__))
77# define SWIGUNUSED __attribute__ ((__unused__))
83#ifndef SWIG_MSC_UNSUPPRESS_4505
85# pragma warning(disable : 4505)
91# define SWIGUNUSEDPARM(p)
93# define SWIGUNUSEDPARM(p) p SWIGUNUSED
99# define SWIGINTERN static SWIGUNUSED
103#ifndef SWIGINTERNINLINE
104# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
109# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
110# ifndef GCC_HASCLASSVISIBILITY
111# define GCC_HASCLASSVISIBILITY
117# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
118# if defined(STATIC_LINKED)
121# define SWIGEXPORT __declspec(dllexport)
124# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
125# define SWIGEXPORT __attribute__ ((visibility("default")))
134# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
135# define SWIGSTDCALL __stdcall
142#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
143# define _CRT_SECURE_NO_DEPRECATE
147#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
148# define _SCL_SECURE_NO_DEPRECATE
152#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
153# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
161#ifdef __INTEL_COMPILER
162# pragma warning disable 592
299#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, msg, ""); return nullreturn; } else
328 std::vector< int >* pv = 0;
330 pv =
new std::vector< int >();
333 throw std::out_of_range(
"capacity");
339 return (*self)[
index];
341 throw std::out_of_range(
"index");
345 return (*self)[
index];
347 throw std::out_of_range(
"index");
351 (*self)[
index] = val;
353 throw std::out_of_range(
"index");
356 self->insert(self->end(), values.begin(), values.end());
360 throw std::out_of_range(
"index");
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);
369 self->insert(self->begin()+
index, x);
371 throw std::out_of_range(
"index");
375 self->insert(self->begin()+
index, values.begin(), values.end());
377 throw std::out_of_range(
"index");
381 self->erase(self->begin() +
index);
383 throw std::out_of_range(
"index");
387 throw std::out_of_range(
"index");
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);
396 throw std::out_of_range(
"count");
397 return new std::vector< int >(count,
value);
400 std::reverse(self->begin(), self->end());
404 throw std::out_of_range(
"index");
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);
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);
419 return std::find(self->begin(), self->end(),
value) != self->end();
423 std::vector< int >::iterator it = std::find(self->begin(), self->end(),
value);
424 if (it != self->end())
425 index = (int)(it - self->begin());
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);
436 std::vector< int >::iterator it = std::find(self->begin(), self->end(),
value);
437 if (it != self->end()) {
444 std::vector< std::vector< int > >* pv = 0;
446 pv =
new std::vector< std::vector< int > >();
449 throw std::out_of_range(
"capacity");
455 return (*self)[
index];
457 throw std::out_of_range(
"index");
461 return (*self)[
index];
463 throw std::out_of_range(
"index");
467 (*self)[
index] = val;
469 throw std::out_of_range(
"index");
472 self->insert(self->end(), values.begin(), values.end());
476 throw std::out_of_range(
"index");
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);
485 self->insert(self->begin()+
index, x);
487 throw std::out_of_range(
"index");
491 self->insert(self->begin()+
index, values.begin(), values.end());
493 throw std::out_of_range(
"index");
497 self->erase(self->begin() +
index);
499 throw std::out_of_range(
"index");
503 throw std::out_of_range(
"index");
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);
512 throw std::out_of_range(
"count");
513 return new std::vector< std::vector< int > >(count,
value);
516 std::reverse(self->begin(), self->end());
520 throw std::out_of_range(
"index");
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);
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);
535 std::vector< long long >* pv = 0;
537 pv =
new std::vector< long long >();
540 throw std::out_of_range(
"capacity");
546 return (*self)[
index];
548 throw std::out_of_range(
"index");
552 return (*self)[
index];
554 throw std::out_of_range(
"index");
558 (*self)[
index] = val;
560 throw std::out_of_range(
"index");
563 self->insert(self->end(), values.begin(), values.end());
567 throw std::out_of_range(
"index");
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);
576 self->insert(self->begin()+
index, x);
578 throw std::out_of_range(
"index");
582 self->insert(self->begin()+
index, values.begin(), values.end());
584 throw std::out_of_range(
"index");
588 self->erase(self->begin() +
index);
590 throw std::out_of_range(
"index");
594 throw std::out_of_range(
"index");
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);
603 throw std::out_of_range(
"count");
604 return new std::vector< long long >(count,
value);
607 std::reverse(self->begin(), self->end());
611 throw std::out_of_range(
"index");
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);
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);
626 return std::find(self->begin(), self->end(),
value) != self->end();
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());
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);
643 std::vector< long long >::iterator it = std::find(self->begin(), self->end(),
value);
644 if (it != self->end()) {
651 std::vector< std::vector< int64_t > >* pv = 0;
653 pv =
new std::vector< std::vector< int64_t > >();
656 throw std::out_of_range(
"capacity");
662 return (*self)[
index];
664 throw std::out_of_range(
"index");
668 return (*self)[
index];
670 throw std::out_of_range(
"index");
674 (*self)[
index] = val;
676 throw std::out_of_range(
"index");
679 self->insert(self->end(), values.begin(), values.end());
683 throw std::out_of_range(
"index");
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);
692 self->insert(self->begin()+
index, x);
694 throw std::out_of_range(
"index");
698 self->insert(self->begin()+
index, values.begin(), values.end());
700 throw std::out_of_range(
"index");
704 self->erase(self->begin() +
index);
706 throw std::out_of_range(
"index");
710 throw std::out_of_range(
"index");
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);
719 throw std::out_of_range(
"count");
720 return new std::vector< std::vector< int64_t > >(count,
value);
723 std::reverse(self->begin(), self->end());
727 throw std::out_of_range(
"index");
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);
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);
750 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
752 arg1 = (std::vector< int > *)jarg1;
758 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
762 arg1 = (std::vector< int > *)jarg1;
765 (arg1)->push_back((
int const &)*arg2);
770 unsigned long jresult ;
771 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
772 std::vector< int >::size_type result;
774 arg1 = (std::vector< int > *)jarg1;
775 result = ((std::vector< int >
const *)arg1)->size();
776 jresult = (
unsigned long)result;
782 unsigned long jresult ;
783 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
784 std::vector< int >::size_type result;
786 arg1 = (std::vector< int > *)jarg1;
787 result = ((std::vector< int >
const *)arg1)->capacity();
788 jresult = (
unsigned long)result;
794 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
795 std::vector< int >::size_type arg2 ;
797 arg1 = (std::vector< int > *)jarg1;
798 arg2 = (std::vector< int >::size_type)jarg2;
799 (arg1)->reserve(arg2);
805 std::vector< int > *result = 0 ;
807 result = (std::vector< int > *)
new std::vector< int >();
808 jresult = (
void *)result;
815 std::vector< int > *arg1 = 0 ;
816 std::vector< int > *result = 0 ;
818 arg1 = (std::vector< int > *)jarg1;
823 result = (std::vector< int > *)
new std::vector< int >((std::vector< int >
const &)*arg1);
824 jresult = (
void *)result;
832 std::vector< int > *result = 0 ;
837 }
catch(std::out_of_range &_e) {
841 jresult = (
void *)result;
848 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
852 arg1 = (std::vector< int > *)jarg1;
856 }
catch(std::out_of_range &_e) {
867 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
869 std::vector< int >::value_type *result = 0 ;
871 arg1 = (std::vector< int > *)jarg1;
875 }
catch(std::out_of_range &_e) {
885 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
890 arg1 = (std::vector< int > *)jarg1;
896 }
catch(std::out_of_range &_e) {
904 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
905 std::vector< int > *arg2 = 0 ;
907 arg1 = (std::vector< int > *)jarg1;
908 arg2 = (std::vector< int > *)jarg2;
919 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
922 std::vector< int > *result = 0 ;
924 arg1 = (std::vector< int > *)jarg1;
929 }
catch(std::out_of_range &_e) {
932 }
catch(std::invalid_argument &_e) {
936 jresult = (
void *)result;
942 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
947 arg1 = (std::vector< int > *)jarg1;
953 }
catch(std::out_of_range &_e) {
961 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
963 std::vector< int > *arg3 = 0 ;
965 arg1 = (std::vector< int > *)jarg1;
967 arg3 = (std::vector< int > *)jarg3;
974 }
catch(std::out_of_range &_e) {
982 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
985 arg1 = (std::vector< int > *)jarg1;
989 }
catch(std::out_of_range &_e) {
997 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1001 arg1 = (std::vector< int > *)jarg1;
1006 }
catch(std::out_of_range &_e) {
1009 }
catch(std::invalid_argument &_e) {
1021 std::vector< int > *result = 0 ;
1028 }
catch(std::out_of_range &_e) {
1032 jresult = (
void *)result;
1038 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1040 arg1 = (std::vector< int > *)jarg1;
1046 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1050 arg1 = (std::vector< int > *)jarg1;
1055 }
catch(std::out_of_range &_e) {
1058 }
catch(std::invalid_argument &_e) {
1066 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1068 std::vector< int > *arg3 = 0 ;
1070 arg1 = (std::vector< int > *)jarg1;
1072 arg3 = (std::vector< int > *)jarg3;
1079 }
catch(std::out_of_range &_e) {
1087 unsigned int jresult ;
1088 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1093 arg1 = (std::vector< int > *)jarg1;
1104 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1109 arg1 = (std::vector< int > *)jarg1;
1120 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1125 arg1 = (std::vector< int > *)jarg1;
1135 unsigned int jresult ;
1136 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1141 arg1 = (std::vector< int > *)jarg1;
1151 std::vector< int > *arg1 = (std::vector< int > *) 0 ;
1153 arg1 = (std::vector< int > *)jarg1;
1159 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1161 arg1 = (std::vector< std::vector< int > > *)jarg1;
1167 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1168 std::vector< int > *arg2 = 0 ;
1170 arg1 = (std::vector< std::vector< int > > *)jarg1;
1171 arg2 = (std::vector< int > *)jarg2;
1176 (arg1)->push_back((std::vector< int >
const &)*arg2);
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;
1185 arg1 = (std::vector< std::vector< int > > *)jarg1;
1186 result = ((std::vector< std::vector< int > >
const *)arg1)->size();
1187 jresult = (
unsigned long)result;
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;
1197 arg1 = (std::vector< std::vector< int > > *)jarg1;
1198 result = ((std::vector< std::vector< int > >
const *)arg1)->capacity();
1199 jresult = (
unsigned long)result;
1205 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1206 std::vector< std::vector< int > >::size_type arg2 ;
1208 arg1 = (std::vector< std::vector< int > > *)jarg1;
1209 arg2 = (std::vector< std::vector< int > >::size_type)jarg2;
1210 (arg1)->reserve(arg2);
1216 std::vector< std::vector< int > > *result = 0 ;
1218 result = (std::vector< std::vector< int > > *)
new std::vector< std::vector< int > >();
1219 jresult = (
void *)result;
1226 std::vector< std::vector< int > > *arg1 = 0 ;
1227 std::vector< std::vector< int > > *result = 0 ;
1229 arg1 = (std::vector< std::vector< int > > *)jarg1;
1234 result = (std::vector< std::vector< int > > *)
new std::vector< std::vector< int > >((std::vector< std::vector< int > >
const &)*arg1);
1235 jresult = (
void *)result;
1243 std::vector< std::vector< int > > *result = 0 ;
1248 }
catch(std::out_of_range &_e) {
1252 jresult = (
void *)result;
1259 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1261 std::vector< int > result;
1263 arg1 = (std::vector< std::vector< int > > *)jarg1;
1267 }
catch(std::out_of_range &_e) {
1271 jresult =
new std::vector< int >((
const std::vector< int > &)result);
1278 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1280 std::vector< std::vector< int > >::value_type *result = 0 ;
1282 arg1 = (std::vector< std::vector< int > > *)jarg1;
1286 }
catch(std::out_of_range &_e) {
1290 jresult = (
void *)result;
1296 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1298 std::vector< int > *arg3 = 0 ;
1300 arg1 = (std::vector< std::vector< int > > *)jarg1;
1302 arg3 = (std::vector< int > *)jarg3;
1309 }
catch(std::out_of_range &_e) {
1317 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1318 std::vector< std::vector< int > > *arg2 = 0 ;
1320 arg1 = (std::vector< std::vector< int > > *)jarg1;
1321 arg2 = (std::vector< std::vector< int > > *)jarg2;
1332 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1335 std::vector< std::vector< int > > *result = 0 ;
1337 arg1 = (std::vector< std::vector< int > > *)jarg1;
1342 }
catch(std::out_of_range &_e) {
1345 }
catch(std::invalid_argument &_e) {
1349 jresult = (
void *)result;
1355 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1357 std::vector< int > *arg3 = 0 ;
1359 arg1 = (std::vector< std::vector< int > > *)jarg1;
1361 arg3 = (std::vector< int > *)jarg3;
1368 }
catch(std::out_of_range &_e) {
1376 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1378 std::vector< std::vector< int > > *arg3 = 0 ;
1380 arg1 = (std::vector< std::vector< int > > *)jarg1;
1382 arg3 = (std::vector< std::vector< int > > *)jarg3;
1389 }
catch(std::out_of_range &_e) {
1397 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1400 arg1 = (std::vector< std::vector< int > > *)jarg1;
1404 }
catch(std::out_of_range &_e) {
1412 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1416 arg1 = (std::vector< std::vector< int > > *)jarg1;
1421 }
catch(std::out_of_range &_e) {
1424 }
catch(std::invalid_argument &_e) {
1433 std::vector< int > *arg1 = 0 ;
1435 std::vector< std::vector< int > > *result = 0 ;
1437 arg1 = (std::vector< int > *)jarg1;
1445 }
catch(std::out_of_range &_e) {
1449 jresult = (
void *)result;
1455 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1457 arg1 = (std::vector< std::vector< int > > *)jarg1;
1463 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1467 arg1 = (std::vector< std::vector< int > > *)jarg1;
1472 }
catch(std::out_of_range &_e) {
1475 }
catch(std::invalid_argument &_e) {
1483 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1485 std::vector< std::vector< int > > *arg3 = 0 ;
1487 arg1 = (std::vector< std::vector< int > > *)jarg1;
1489 arg3 = (std::vector< std::vector< int > > *)jarg3;
1496 }
catch(std::out_of_range &_e) {
1504 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
1506 arg1 = (std::vector< std::vector< int > > *)jarg1;
1512 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1514 arg1 = (std::vector< int64_t > *)jarg1;
1520 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1521 long long *arg2 = 0 ;
1524 arg1 = (std::vector< int64_t > *)jarg1;
1525 temp2 = (
long long)jarg2;
1527 (arg1)->push_back((
long long const &)*arg2);
1532 unsigned long jresult ;
1533 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1534 std::vector< long long >::size_type result;
1536 arg1 = (std::vector< int64_t > *)jarg1;
1537 result = ((std::vector< int64_t >
const *)arg1)->size();
1538 jresult = (
unsigned long)result;
1544 unsigned long jresult ;
1545 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1546 std::vector< long long >::size_type result;
1548 arg1 = (std::vector< int64_t > *)jarg1;
1549 result = ((std::vector< int64_t >
const *)arg1)->capacity();
1550 jresult = (
unsigned long)result;
1556 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1557 std::vector< long long >::size_type arg2 ;
1559 arg1 = (std::vector< int64_t > *)jarg1;
1560 arg2 = (std::vector< long long >::size_type)jarg2;
1561 (arg1)->reserve(arg2);
1567 std::vector< int64_t > *result = 0 ;
1569 result = (std::vector< int64_t > *)
new std::vector< int64_t >();
1570 jresult = (
void *)result;
1577 std::vector< int64_t > *arg1 = 0 ;
1578 std::vector< int64_t > *result = 0 ;
1580 arg1 = (std::vector< int64_t > *)jarg1;
1585 result = (std::vector< int64_t > *)
new std::vector< int64_t >((std::vector< int64_t >
const &)*arg1);
1586 jresult = (
void *)result;
1594 std::vector< int64_t > *result = 0 ;
1599 }
catch(std::out_of_range &_e) {
1603 jresult = (
void *)result;
1610 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1614 arg1 = (std::vector< int64_t > *)jarg1;
1618 }
catch(std::out_of_range &_e) {
1629 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1631 std::vector< long long >::value_type *result = 0 ;
1633 arg1 = (std::vector< int64_t > *)jarg1;
1637 }
catch(std::out_of_range &_e) {
1647 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1649 long long *arg3 = 0 ;
1652 arg1 = (std::vector< int64_t > *)jarg1;
1654 temp3 = (
long long)jarg3;
1658 }
catch(std::out_of_range &_e) {
1666 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1667 std::vector< long long > *arg2 = 0 ;
1669 arg1 = (std::vector< int64_t > *)jarg1;
1670 arg2 = (std::vector< long long > *)jarg2;
1681 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1684 std::vector< long long > *result = 0 ;
1686 arg1 = (std::vector< int64_t > *)jarg1;
1691 }
catch(std::out_of_range &_e) {
1694 }
catch(std::invalid_argument &_e) {
1698 jresult = (
void *)result;
1704 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1706 long long *arg3 = 0 ;
1709 arg1 = (std::vector< int64_t > *)jarg1;
1711 temp3 = (
long long)jarg3;
1715 }
catch(std::out_of_range &_e) {
1723 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1725 std::vector< long long > *arg3 = 0 ;
1727 arg1 = (std::vector< int64_t > *)jarg1;
1729 arg3 = (std::vector< long long > *)jarg3;
1736 }
catch(std::out_of_range &_e) {
1744 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1747 arg1 = (std::vector< int64_t > *)jarg1;
1751 }
catch(std::out_of_range &_e) {
1759 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1763 arg1 = (std::vector< int64_t > *)jarg1;
1768 }
catch(std::out_of_range &_e) {
1771 }
catch(std::invalid_argument &_e) {
1780 long long *arg1 = 0 ;
1783 std::vector< long long > *result = 0 ;
1785 temp1 = (
long long)jarg1;
1790 }
catch(std::out_of_range &_e) {
1794 jresult = (
void *)result;
1800 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1802 arg1 = (std::vector< int64_t > *)jarg1;
1808 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1812 arg1 = (std::vector< int64_t > *)jarg1;
1817 }
catch(std::out_of_range &_e) {
1820 }
catch(std::invalid_argument &_e) {
1828 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1830 std::vector< long long > *arg3 = 0 ;
1832 arg1 = (std::vector< int64_t > *)jarg1;
1834 arg3 = (std::vector< long long > *)jarg3;
1841 }
catch(std::out_of_range &_e) {
1849 unsigned int jresult ;
1850 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1851 long long *arg2 = 0 ;
1855 arg1 = (std::vector< int64_t > *)jarg1;
1856 temp2 = (
long long)jarg2;
1866 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1867 long long *arg2 = 0 ;
1871 arg1 = (std::vector< int64_t > *)jarg1;
1872 temp2 = (
long long)jarg2;
1882 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1883 long long *arg2 = 0 ;
1887 arg1 = (std::vector< int64_t > *)jarg1;
1888 temp2 = (
long long)jarg2;
1897 unsigned int jresult ;
1898 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1899 long long *arg2 = 0 ;
1903 arg1 = (std::vector< int64_t > *)jarg1;
1904 temp2 = (
long long)jarg2;
1913 std::vector< int64_t > *arg1 = (std::vector< int64_t > *) 0 ;
1915 arg1 = (std::vector< int64_t > *)jarg1;
1921 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
1923 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
1929 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
1930 std::vector< int64_t > *arg2 = 0 ;
1932 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
1933 arg2 = (std::vector< int64_t > *)jarg2;
1938 (arg1)->push_back((std::vector< int64_t >
const &)*arg2);
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;
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;
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;
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;
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 ;
1970 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
1971 arg2 = (std::vector< std::vector< long long > >::size_type)jarg2;
1972 (arg1)->reserve(arg2);
1978 std::vector< std::vector< int64_t > > *result = 0 ;
1980 result = (std::vector< std::vector< int64_t > > *)
new std::vector< std::vector< int64_t > >();
1981 jresult = (
void *)result;
1988 std::vector< std::vector< int64_t > > *arg1 = 0 ;
1989 std::vector< std::vector< int64_t > > *result = 0 ;
1991 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
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;
2005 std::vector< std::vector< int64_t > > *result = 0 ;
2010 }
catch(std::out_of_range &_e) {
2014 jresult = (
void *)result;
2021 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2023 std::vector< int64_t > result;
2025 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2029 }
catch(std::out_of_range &_e) {
2033 jresult =
new std::vector< int64_t >((
const std::vector< int64_t > &)result);
2040 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2042 std::vector< std::vector< long long > >::value_type *result = 0 ;
2044 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2048 }
catch(std::out_of_range &_e) {
2052 jresult = (
void *)result;
2058 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2060 std::vector< int64_t > *arg3 = 0 ;
2062 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2064 arg3 = (std::vector< int64_t > *)jarg3;
2071 }
catch(std::out_of_range &_e) {
2079 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2080 std::vector< std::vector< int64_t > > *arg2 = 0 ;
2082 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2083 arg2 = (std::vector< std::vector< int64_t > > *)jarg2;
2094 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2097 std::vector< std::vector< int64_t > > *result = 0 ;
2099 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2104 }
catch(std::out_of_range &_e) {
2107 }
catch(std::invalid_argument &_e) {
2111 jresult = (
void *)result;
2117 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2119 std::vector< int64_t > *arg3 = 0 ;
2121 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2123 arg3 = (std::vector< int64_t > *)jarg3;
2130 }
catch(std::out_of_range &_e) {
2138 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2140 std::vector< std::vector< int64_t > > *arg3 = 0 ;
2142 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2144 arg3 = (std::vector< std::vector< int64_t > > *)jarg3;
2151 }
catch(std::out_of_range &_e) {
2159 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2162 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2166 }
catch(std::out_of_range &_e) {
2174 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2178 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2183 }
catch(std::out_of_range &_e) {
2186 }
catch(std::invalid_argument &_e) {
2195 std::vector< int64_t > *arg1 = 0 ;
2197 std::vector< std::vector< int64_t > > *result = 0 ;
2199 arg1 = (std::vector< int64_t > *)jarg1;
2207 }
catch(std::out_of_range &_e) {
2211 jresult = (
void *)result;
2217 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2219 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2225 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2229 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2234 }
catch(std::out_of_range &_e) {
2237 }
catch(std::invalid_argument &_e) {
2245 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2247 std::vector< std::vector< int64_t > > *arg3 = 0 ;
2249 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2251 arg3 = (std::vector< std::vector< int64_t > > *)jarg3;
2258 }
catch(std::out_of_range &_e) {
2266 std::vector< std::vector< int64_t > > *arg1 = (std::vector< std::vector< int64_t > > *) 0 ;
2268 arg1 = (std::vector< std::vector< int64_t > > *)jarg1;
2275 std::string *arg1 = 0 ;
2282 std::string arg1_str(jarg1);
2285 jresult = (
void *)result;
2293 std::string *arg2 = 0 ;
2301 std::string arg2_str(jarg2);
2304 jresult = (
void *)result;
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 ;
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]);
2336 result3.resize(len3_1);
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);
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]);
2358 (arg1)->Init((std::vector< int64_t >
const &)*arg2,(std::vector< std::vector< int64_t > >
const &)*arg3,(std::vector< int64_t >
const &)*arg4);
2374 result = (int64_t)(arg1)->
Solve();
2381 unsigned int jresult ;
2395 unsigned int jresult ;
2419 unsigned int jresult ;
2435 arg2 = jarg2 ? true :
false;
2436 (arg1)->set_use_reduction(arg2);
2445 arg2 = (double)jarg2;
2446 (arg1)->set_time_limit(arg2);
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.
std::string GetName() const
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
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)
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)
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)
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_CSharpExceptionCodes
@ 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)
SWIG_CSharpExceptionCallback_t callback
SWIG_CSharpExceptionCodes code
SWIG_CSharpExceptionArgumentCodes code
SWIG_CSharpExceptionArgumentCallback_t callback