1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 2.0.11
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 #define SWIGR
12
13
14 #ifdef __cplusplus
15 /* SwigValueWrapper is described in swig.swg */
16 template<typename T> class SwigValueWrapper {
17 struct SwigMovePointer {
18 T *ptr;
SwigMovePointerSwigValueWrapper::SwigMovePointer19 SwigMovePointer(T *p) : ptr(p) { }
~SwigMovePointerSwigValueWrapper::SwigMovePointer20 ~SwigMovePointer() { delete ptr; }
operator =SwigValueWrapper::SwigMovePointer21 SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
22 } pointer;
23 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
24 SwigValueWrapper(const SwigValueWrapper<T>& rhs);
25 public:
SwigValueWrapper()26 SwigValueWrapper() : pointer(0) { }
operator =(const T & t)27 SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
operator T&() const28 operator T&() const { return *pointer.ptr; }
operator &()29 T *operator&() { return pointer.ptr; }
30 };
31
SwigValueInit()32 template <typename T> T SwigValueInit() {
33 return T();
34 }
35 #endif
36
37 /* -----------------------------------------------------------------------------
38 * This section contains generic SWIG labels for method/variable
39 * declarations/attributes, and other compiler dependent labels.
40 * ----------------------------------------------------------------------------- */
41
42 /* template workaround for compilers that cannot correctly implement the C++ standard */
43 #ifndef SWIGTEMPLATEDISAMBIGUATOR
44 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
45 # define SWIGTEMPLATEDISAMBIGUATOR template
46 # elif defined(__HP_aCC)
47 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
48 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
49 # define SWIGTEMPLATEDISAMBIGUATOR template
50 # else
51 # define SWIGTEMPLATEDISAMBIGUATOR
52 # endif
53 #endif
54
55 /* inline attribute */
56 #ifndef SWIGINLINE
57 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
58 # define SWIGINLINE inline
59 # else
60 # define SWIGINLINE
61 # endif
62 #endif
63
64 /* attribute recognised by some compilers to avoid 'unused' warnings */
65 #ifndef SWIGUNUSED
66 # if defined(__GNUC__)
67 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
68 # define SWIGUNUSED __attribute__ ((__unused__))
69 # else
70 # define SWIGUNUSED
71 # endif
72 # elif defined(__ICC)
73 # define SWIGUNUSED __attribute__ ((__unused__))
74 # else
75 # define SWIGUNUSED
76 # endif
77 #endif
78
79 #ifndef SWIG_MSC_UNSUPPRESS_4505
80 # if defined(_MSC_VER)
81 # pragma warning(disable : 4505) /* unreferenced local function has been removed */
82 # endif
83 #endif
84
85 #ifndef SWIGUNUSEDPARM
86 # ifdef __cplusplus
87 # define SWIGUNUSEDPARM(p)
88 # else
89 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
90 # endif
91 #endif
92
93 /* internal SWIG method */
94 #ifndef SWIGINTERN
95 # define SWIGINTERN static SWIGUNUSED
96 #endif
97
98 /* internal inline SWIG method */
99 #ifndef SWIGINTERNINLINE
100 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
101 #endif
102
103 /* exporting methods */
104 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
105 # ifndef GCC_HASCLASSVISIBILITY
106 # define GCC_HASCLASSVISIBILITY
107 # endif
108 #endif
109
110 #ifndef SWIGEXPORT
111 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
112 # if defined(STATIC_LINKED)
113 # define SWIGEXPORT
114 # else
115 # define SWIGEXPORT __declspec(dllexport)
116 # endif
117 # else
118 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
119 # define SWIGEXPORT __attribute__ ((visibility("default")))
120 # else
121 # define SWIGEXPORT
122 # endif
123 # endif
124 #endif
125
126 /* calling conventions for Windows */
127 #ifndef SWIGSTDCALL
128 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
129 # define SWIGSTDCALL __stdcall
130 # else
131 # define SWIGSTDCALL
132 # endif
133 #endif
134
135 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
136 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
137 # define _CRT_SECURE_NO_DEPRECATE
138 #endif
139
140 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
141 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
142 # define _SCL_SECURE_NO_DEPRECATE
143 #endif
144
145
146 /* -----------------------------------------------------------------------------
147 * swigrun.swg
148 *
149 * This file contains generic C API SWIG runtime support for pointer
150 * type checking.
151 * ----------------------------------------------------------------------------- */
152
153 /* This should only be incremented when either the layout of swig_type_info changes,
154 or for whatever reason, the runtime changes incompatibly */
155 #define SWIG_RUNTIME_VERSION "4"
156
157 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
158 #ifdef SWIG_TYPE_TABLE
159 # define SWIG_QUOTE_STRING(x) #x
160 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
161 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
162 #else
163 # define SWIG_TYPE_TABLE_NAME
164 #endif
165
166 /*
167 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
168 creating a static or dynamic library from the SWIG runtime code.
169 In 99.9% of the cases, SWIG just needs to declare them as 'static'.
170
171 But only do this if strictly necessary, ie, if you have problems
172 with your compiler or suchlike.
173 */
174
175 #ifndef SWIGRUNTIME
176 # define SWIGRUNTIME SWIGINTERN
177 #endif
178
179 #ifndef SWIGRUNTIMEINLINE
180 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
181 #endif
182
183 /* Generic buffer size */
184 #ifndef SWIG_BUFFER_SIZE
185 # define SWIG_BUFFER_SIZE 1024
186 #endif
187
188 /* Flags for pointer conversions */
189 #define SWIG_POINTER_DISOWN 0x1
190 #define SWIG_CAST_NEW_MEMORY 0x2
191
192 /* Flags for new pointer objects */
193 #define SWIG_POINTER_OWN 0x1
194
195
196 /*
197 Flags/methods for returning states.
198
199 The SWIG conversion methods, as ConvertPtr, return an integer
200 that tells if the conversion was successful or not. And if not,
201 an error code can be returned (see swigerrors.swg for the codes).
202
203 Use the following macros/flags to set or process the returning
204 states.
205
206 In old versions of SWIG, code such as the following was usually written:
207
208 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
209 // success code
210 } else {
211 //fail code
212 }
213
214 Now you can be more explicit:
215
216 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
217 if (SWIG_IsOK(res)) {
218 // success code
219 } else {
220 // fail code
221 }
222
223 which is the same really, but now you can also do
224
225 Type *ptr;
226 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
227 if (SWIG_IsOK(res)) {
228 // success code
229 if (SWIG_IsNewObj(res) {
230 ...
231 delete *ptr;
232 } else {
233 ...
234 }
235 } else {
236 // fail code
237 }
238
239 I.e., now SWIG_ConvertPtr can return new objects and you can
240 identify the case and take care of the deallocation. Of course that
241 also requires SWIG_ConvertPtr to return new result values, such as
242
243 int SWIG_ConvertPtr(obj, ptr,...) {
244 if (<obj is ok>) {
245 if (<need new object>) {
246 *ptr = <ptr to new allocated object>;
247 return SWIG_NEWOBJ;
248 } else {
249 *ptr = <ptr to old object>;
250 return SWIG_OLDOBJ;
251 }
252 } else {
253 return SWIG_BADOBJ;
254 }
255 }
256
257 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
258 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
259 SWIG errors code.
260
261 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
262 allows to return the 'cast rank', for example, if you have this
263
264 int food(double)
265 int fooi(int);
266
267 and you call
268
269 food(1) // cast rank '1' (1 -> 1.0)
270 fooi(1) // cast rank '0'
271
272 just use the SWIG_AddCast()/SWIG_CheckState()
273 */
274
275 #define SWIG_OK (0)
276 #define SWIG_ERROR (-1)
277 #define SWIG_IsOK(r) (r >= 0)
278 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
279
280 /* The CastRankLimit says how many bits are used for the cast rank */
281 #define SWIG_CASTRANKLIMIT (1 << 8)
282 /* The NewMask denotes the object was created (using new/malloc) */
283 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
284 /* The TmpMask is for in/out typemaps that use temporal objects */
285 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
286 /* Simple returning values */
287 #define SWIG_BADOBJ (SWIG_ERROR)
288 #define SWIG_OLDOBJ (SWIG_OK)
289 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
290 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
291 /* Check, add and del mask methods */
292 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
293 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
294 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
295 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
296 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
297 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
298
299 /* Cast-Rank Mode */
300 #if defined(SWIG_CASTRANK_MODE)
301 # ifndef SWIG_TypeRank
302 # define SWIG_TypeRank unsigned long
303 # endif
304 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
305 # define SWIG_MAXCASTRANK (2)
306 # endif
307 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
308 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
SWIG_AddCast(int r)309 SWIGINTERNINLINE int SWIG_AddCast(int r) {
310 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
311 }
SWIG_CheckState(int r)312 SWIGINTERNINLINE int SWIG_CheckState(int r) {
313 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
314 }
315 #else /* no cast-rank mode */
316 # define SWIG_AddCast(r) (r)
317 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
318 #endif
319
320
321 #include <string.h>
322
323 #ifdef __cplusplus
324 extern "C" {
325 #endif
326
327 typedef void *(*swig_converter_func)(void *, int *);
328 typedef struct swig_type_info *(*swig_dycast_func)(void **);
329
330 /* Structure to store information on one type */
331 typedef struct swig_type_info {
332 const char *name; /* mangled name of this type */
333 const char *str; /* human readable name of this type */
334 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
335 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
336 void *clientdata; /* language specific type data */
337 int owndata; /* flag if the structure owns the clientdata */
338 } swig_type_info;
339
340 /* Structure to store a type and conversion function used for casting */
341 typedef struct swig_cast_info {
342 swig_type_info *type; /* pointer to type that is equivalent to this type */
343 swig_converter_func converter; /* function to cast the void pointers */
344 struct swig_cast_info *next; /* pointer to next cast in linked list */
345 struct swig_cast_info *prev; /* pointer to the previous cast */
346 } swig_cast_info;
347
348 /* Structure used to store module information
349 * Each module generates one structure like this, and the runtime collects
350 * all of these structures and stores them in a circularly linked list.*/
351 typedef struct swig_module_info {
352 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
353 size_t size; /* Number of types in this module */
354 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
355 swig_type_info **type_initial; /* Array of initially generated type structures */
356 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
357 void *clientdata; /* Language specific module data */
358 } swig_module_info;
359
360 /*
361 Compare two type names skipping the space characters, therefore
362 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
363
364 Return 0 when the two name types are equivalent, as in
365 strncmp, but skipping ' '.
366 */
367 SWIGRUNTIME int
SWIG_TypeNameComp(const char * f1,const char * l1,const char * f2,const char * l2)368 SWIG_TypeNameComp(const char *f1, const char *l1,
369 const char *f2, const char *l2) {
370 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
371 while ((*f1 == ' ') && (f1 != l1)) ++f1;
372 while ((*f2 == ' ') && (f2 != l2)) ++f2;
373 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
374 }
375 return (int)((l1 - f1) - (l2 - f2));
376 }
377
378 /*
379 Check type equivalence in a name list like <name1>|<name2>|...
380 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
381 */
382 SWIGRUNTIME int
SWIG_TypeCmp(const char * nb,const char * tb)383 SWIG_TypeCmp(const char *nb, const char *tb) {
384 int equiv = 1;
385 const char* te = tb + strlen(tb);
386 const char* ne = nb;
387 while (equiv != 0 && *ne) {
388 for (nb = ne; *ne; ++ne) {
389 if (*ne == '|') break;
390 }
391 equiv = SWIG_TypeNameComp(nb, ne, tb, te);
392 if (*ne) ++ne;
393 }
394 return equiv;
395 }
396
397 /*
398 Check type equivalence in a name list like <name1>|<name2>|...
399 Return 0 if not equal, 1 if equal
400 */
401 SWIGRUNTIME int
SWIG_TypeEquiv(const char * nb,const char * tb)402 SWIG_TypeEquiv(const char *nb, const char *tb) {
403 return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
404 }
405
406 /*
407 Check the typename
408 */
409 SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck(const char * c,swig_type_info * ty)410 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
411 if (ty) {
412 swig_cast_info *iter = ty->cast;
413 while (iter) {
414 if (strcmp(iter->type->name, c) == 0) {
415 if (iter == ty->cast)
416 return iter;
417 /* Move iter to the top of the linked list */
418 iter->prev->next = iter->next;
419 if (iter->next)
420 iter->next->prev = iter->prev;
421 iter->next = ty->cast;
422 iter->prev = 0;
423 if (ty->cast) ty->cast->prev = iter;
424 ty->cast = iter;
425 return iter;
426 }
427 iter = iter->next;
428 }
429 }
430 return 0;
431 }
432
433 /*
434 Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
435 */
436 SWIGRUNTIME swig_cast_info *
SWIG_TypeCheckStruct(swig_type_info * from,swig_type_info * ty)437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
438 if (ty) {
439 swig_cast_info *iter = ty->cast;
440 while (iter) {
441 if (iter->type == from) {
442 if (iter == ty->cast)
443 return iter;
444 /* Move iter to the top of the linked list */
445 iter->prev->next = iter->next;
446 if (iter->next)
447 iter->next->prev = iter->prev;
448 iter->next = ty->cast;
449 iter->prev = 0;
450 if (ty->cast) ty->cast->prev = iter;
451 ty->cast = iter;
452 return iter;
453 }
454 iter = iter->next;
455 }
456 }
457 return 0;
458 }
459
460 /*
461 Cast a pointer up an inheritance hierarchy
462 */
463 SWIGRUNTIMEINLINE void *
SWIG_TypeCast(swig_cast_info * ty,void * ptr,int * newmemory)464 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
465 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
466 }
467
468 /*
469 Dynamic pointer casting. Down an inheritance hierarchy
470 */
471 SWIGRUNTIME swig_type_info *
SWIG_TypeDynamicCast(swig_type_info * ty,void ** ptr)472 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
473 swig_type_info *lastty = ty;
474 if (!ty || !ty->dcast) return ty;
475 while (ty && (ty->dcast)) {
476 ty = (*ty->dcast)(ptr);
477 if (ty) lastty = ty;
478 }
479 return lastty;
480 }
481
482 /*
483 Return the name associated with this type
484 */
485 SWIGRUNTIMEINLINE const char *
SWIG_TypeName(const swig_type_info * ty)486 SWIG_TypeName(const swig_type_info *ty) {
487 return ty->name;
488 }
489
490 /*
491 Return the pretty name associated with this type,
492 that is an unmangled type name in a form presentable to the user.
493 */
494 SWIGRUNTIME const char *
SWIG_TypePrettyName(const swig_type_info * type)495 SWIG_TypePrettyName(const swig_type_info *type) {
496 /* The "str" field contains the equivalent pretty names of the
497 type, separated by vertical-bar characters. We choose
498 to print the last name, as it is often (?) the most
499 specific. */
500 if (!type) return NULL;
501 if (type->str != NULL) {
502 const char *last_name = type->str;
503 const char *s;
504 for (s = type->str; *s; s++)
505 if (*s == '|') last_name = s+1;
506 return last_name;
507 }
508 else
509 return type->name;
510 }
511
512 /*
513 Set the clientdata field for a type
514 */
515 SWIGRUNTIME void
SWIG_TypeClientData(swig_type_info * ti,void * clientdata)516 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
517 swig_cast_info *cast = ti->cast;
518 /* if (ti->clientdata == clientdata) return; */
519 ti->clientdata = clientdata;
520
521 while (cast) {
522 if (!cast->converter) {
523 swig_type_info *tc = cast->type;
524 if (!tc->clientdata) {
525 SWIG_TypeClientData(tc, clientdata);
526 }
527 }
528 cast = cast->next;
529 }
530 }
531 SWIGRUNTIME void
SWIG_TypeNewClientData(swig_type_info * ti,void * clientdata)532 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
533 SWIG_TypeClientData(ti, clientdata);
534 ti->owndata = 1;
535 }
536
537 /*
538 Search for a swig_type_info structure only by mangled name
539 Search is a O(log #types)
540
541 We start searching at module start, and finish searching when start == end.
542 Note: if start == end at the beginning of the function, we go all the way around
543 the circular list.
544 */
545 SWIGRUNTIME swig_type_info *
SWIG_MangledTypeQueryModule(swig_module_info * start,swig_module_info * end,const char * name)546 SWIG_MangledTypeQueryModule(swig_module_info *start,
547 swig_module_info *end,
548 const char *name) {
549 swig_module_info *iter = start;
550 do {
551 if (iter->size) {
552 register size_t l = 0;
553 register size_t r = iter->size - 1;
554 do {
555 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
556 register size_t i = (l + r) >> 1;
557 const char *iname = iter->types[i]->name;
558 if (iname) {
559 register int compare = strcmp(name, iname);
560 if (compare == 0) {
561 return iter->types[i];
562 } else if (compare < 0) {
563 if (i) {
564 r = i - 1;
565 } else {
566 break;
567 }
568 } else if (compare > 0) {
569 l = i + 1;
570 }
571 } else {
572 break; /* should never happen */
573 }
574 } while (l <= r);
575 }
576 iter = iter->next;
577 } while (iter != end);
578 return 0;
579 }
580
581 /*
582 Search for a swig_type_info structure for either a mangled name or a human readable name.
583 It first searches the mangled names of the types, which is a O(log #types)
584 If a type is not found it then searches the human readable names, which is O(#types).
585
586 We start searching at module start, and finish searching when start == end.
587 Note: if start == end at the beginning of the function, we go all the way around
588 the circular list.
589 */
590 SWIGRUNTIME swig_type_info *
SWIG_TypeQueryModule(swig_module_info * start,swig_module_info * end,const char * name)591 SWIG_TypeQueryModule(swig_module_info *start,
592 swig_module_info *end,
593 const char *name) {
594 /* STEP 1: Search the name field using binary search */
595 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
596 if (ret) {
597 return ret;
598 } else {
599 /* STEP 2: If the type hasn't been found, do a complete search
600 of the str field (the human readable name) */
601 swig_module_info *iter = start;
602 do {
603 register size_t i = 0;
604 for (; i < iter->size; ++i) {
605 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
606 return iter->types[i];
607 }
608 iter = iter->next;
609 } while (iter != end);
610 }
611
612 /* neither found a match */
613 return 0;
614 }
615
616 /*
617 Pack binary data into a string
618 */
619 SWIGRUNTIME char *
SWIG_PackData(char * c,void * ptr,size_t sz)620 SWIG_PackData(char *c, void *ptr, size_t sz) {
621 static const char hex[17] = "0123456789abcdef";
622 register const unsigned char *u = (unsigned char *) ptr;
623 register const unsigned char *eu = u + sz;
624 for (; u != eu; ++u) {
625 register unsigned char uu = *u;
626 *(c++) = hex[(uu & 0xf0) >> 4];
627 *(c++) = hex[uu & 0xf];
628 }
629 return c;
630 }
631
632 /*
633 Unpack binary data from a string
634 */
635 SWIGRUNTIME const char *
SWIG_UnpackData(const char * c,void * ptr,size_t sz)636 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
637 register unsigned char *u = (unsigned char *) ptr;
638 register const unsigned char *eu = u + sz;
639 for (; u != eu; ++u) {
640 register char d = *(c++);
641 register unsigned char uu;
642 if ((d >= '0') && (d <= '9'))
643 uu = ((d - '0') << 4);
644 else if ((d >= 'a') && (d <= 'f'))
645 uu = ((d - ('a'-10)) << 4);
646 else
647 return (char *) 0;
648 d = *(c++);
649 if ((d >= '0') && (d <= '9'))
650 uu |= (d - '0');
651 else if ((d >= 'a') && (d <= 'f'))
652 uu |= (d - ('a'-10));
653 else
654 return (char *) 0;
655 *u = uu;
656 }
657 return c;
658 }
659
660 /*
661 Pack 'void *' into a string buffer.
662 */
663 SWIGRUNTIME char *
SWIG_PackVoidPtr(char * buff,void * ptr,const char * name,size_t bsz)664 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
665 char *r = buff;
666 if ((2*sizeof(void *) + 2) > bsz) return 0;
667 *(r++) = '_';
668 r = SWIG_PackData(r,&ptr,sizeof(void *));
669 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
670 strcpy(r,name);
671 return buff;
672 }
673
674 SWIGRUNTIME const char *
SWIG_UnpackVoidPtr(const char * c,void ** ptr,const char * name)675 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
676 if (*c != '_') {
677 if (strcmp(c,"NULL") == 0) {
678 *ptr = (void *) 0;
679 return name;
680 } else {
681 return 0;
682 }
683 }
684 return SWIG_UnpackData(++c,ptr,sizeof(void *));
685 }
686
687 SWIGRUNTIME char *
SWIG_PackDataName(char * buff,void * ptr,size_t sz,const char * name,size_t bsz)688 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
689 char *r = buff;
690 size_t lname = (name ? strlen(name) : 0);
691 if ((2*sz + 2 + lname) > bsz) return 0;
692 *(r++) = '_';
693 r = SWIG_PackData(r,ptr,sz);
694 if (lname) {
695 strncpy(r,name,lname+1);
696 } else {
697 *r = 0;
698 }
699 return buff;
700 }
701
702 SWIGRUNTIME const char *
SWIG_UnpackDataName(const char * c,void * ptr,size_t sz,const char * name)703 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
704 if (*c != '_') {
705 if (strcmp(c,"NULL") == 0) {
706 memset(ptr,0,sz);
707 return name;
708 } else {
709 return 0;
710 }
711 }
712 return SWIG_UnpackData(++c,ptr,sz);
713 }
714
715 #ifdef __cplusplus
716 }
717 #endif
718
719
720 #ifdef __cplusplus
721 extern "C" {
722 #endif
723
724 /* for raw pointer */
725 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_R_ConvertPtr(obj, pptr, type, flags)
726 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_R_ConvertPtr(obj, pptr, type, flags)
727 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_R_NewPointerObj(ptr, type, flags)
728
729
730 /* Remove global namespace pollution */
731 #if !defined(SWIG_NO_R_NO_REMAP)
732 # define R_NO_REMAP
733 #endif
734 #if !defined(SWIG_NO_STRICT_R_HEADERS)
735 # define STRICT_R_HEADERS
736 #endif
737
738 #include <Rdefines.h>
739 #include <Rversion.h>
740 #include <stdlib.h>
741 #include <assert.h>
742
743 #if R_VERSION >= R_Version(2,6,0)
744 #define VMAXTYPE void *
745 #else
746 #define VMAXTYPE char *
747 #endif
748
749 /*
750 This is mainly a way to avoid having lots of local variables that may
751 conflict with those in the routine.
752
753 Change name to R_SWIG_Callb....
754 */
755 typedef struct RCallbackFunctionData {
756
757 SEXP fun;
758 SEXP userData;
759
760
761 SEXP expr;
762 SEXP retValue;
763 int errorOccurred;
764
765 SEXP el; /* Temporary pointer used in the construction of the expression to call the R function. */
766
767 struct RCallbackFunctionData *previous; /* Stack */
768
769 } RCallbackFunctionData;
770
771 static RCallbackFunctionData *callbackFunctionDataStack;
772
773
774 SWIGRUNTIME SEXP
R_SWIG_debug_getCallbackFunctionData()775 R_SWIG_debug_getCallbackFunctionData()
776 {
777 int n, i;
778 SEXP ans;
779 RCallbackFunctionData *p = callbackFunctionDataStack;
780
781 n = 0;
782 while(p) {
783 n++;
784 p = p->previous;
785 }
786
787 Rf_protect(ans = Rf_allocVector(VECSXP, n));
788 for(p = callbackFunctionDataStack, i = 0; i < n; p = p->previous, i++)
789 SET_VECTOR_ELT(ans, i, p->fun);
790
791 Rf_unprotect(1);
792
793 return(ans);
794 }
795
796
797
798 SWIGRUNTIME RCallbackFunctionData *
R_SWIG_pushCallbackFunctionData(SEXP fun,SEXP userData)799 R_SWIG_pushCallbackFunctionData(SEXP fun, SEXP userData)
800 {
801 RCallbackFunctionData *el;
802 el = (RCallbackFunctionData *) calloc(1, sizeof(RCallbackFunctionData));
803 el->fun = fun;
804 el->userData = userData;
805 el->previous = callbackFunctionDataStack;
806
807 callbackFunctionDataStack = el;
808
809 return(el);
810 }
811
812
813 SWIGRUNTIME SEXP
R_SWIG_R_pushCallbackFunctionData(SEXP fun,SEXP userData)814 R_SWIG_R_pushCallbackFunctionData(SEXP fun, SEXP userData)
815 {
816 R_SWIG_pushCallbackFunctionData(fun, userData);
817 return R_NilValue;
818 }
819
820 SWIGRUNTIME RCallbackFunctionData *
R_SWIG_getCallbackFunctionData()821 R_SWIG_getCallbackFunctionData()
822 {
823 if(!callbackFunctionDataStack) {
824 Rf_error("Supposedly impossible error occurred in the SWIG callback mechanism."
825 " No callback function data set.");
826 }
827
828 return callbackFunctionDataStack;
829 }
830
831 SWIGRUNTIME void
R_SWIG_popCallbackFunctionData(int doFree)832 R_SWIG_popCallbackFunctionData(int doFree)
833 {
834 RCallbackFunctionData *el = NULL;
835 if(!callbackFunctionDataStack)
836 return ; /* Error !!! */
837
838 el = callbackFunctionDataStack ;
839 callbackFunctionDataStack = callbackFunctionDataStack->previous;
840
841 if(doFree)
842 free(el);
843 }
844
845
846 /*
847 Interface to S function
848 is(obj, type)
849 which is to be used to determine if an
850 external pointer inherits from the right class.
851
852 Ideally, we would like to be able to do this without an explicit call to the is() function.
853 When the S4 class system uses its own SEXP types, then we will hopefully be able to do this
854 in the C code.
855
856 Should we make the expression static and preserve it to avoid the overhead of
857 allocating each time.
858 */
859 SWIGRUNTIME int
R_SWIG_checkInherits(SEXP obj,SEXP tag,const char * type)860 R_SWIG_checkInherits(SEXP obj, SEXP tag, const char *type)
861 {
862 SEXP e, val;
863 int check_err = 0;
864
865 Rf_protect(e = Rf_allocVector(LANGSXP, 3));
866 SETCAR(e, Rf_install("extends"));
867
868 SETCAR(CDR(e), Rf_mkString(CHAR(PRINTNAME(tag))));
869 SETCAR(CDR(CDR(e)), Rf_mkString(type));
870
871 val = R_tryEval(e, R_GlobalEnv, &check_err);
872 Rf_unprotect(1);
873 if(check_err)
874 return(0);
875
876
877 return(LOGICAL(val)[0]);
878 }
879
880
881 SWIGRUNTIME void *
R_SWIG_resolveExternalRef(SEXP arg,const char * const type,const char * const argName,Rboolean nullOk)882 R_SWIG_resolveExternalRef(SEXP arg, const char * const type, const char * const argName, Rboolean nullOk)
883 {
884 void *ptr;
885 SEXP orig = arg;
886
887 if(TYPEOF(arg) != EXTPTRSXP)
888 arg = GET_SLOT(arg, Rf_mkString("ref"));
889
890
891 if(TYPEOF(arg) != EXTPTRSXP) {
892 Rf_error("argument %s must be an external pointer (from an ExternalReference)", argName);
893 }
894
895
896 ptr = R_ExternalPtrAddr(arg);
897
898 if(ptr == NULL && nullOk == (Rboolean) FALSE) {
899 Rf_error("the external pointer (of type %s) for argument %s has value NULL", argName, type);
900 }
901
902 if(type[0] && R_ExternalPtrTag(arg) != Rf_install(type) && strcmp(type, "voidRef")
903 && !R_SWIG_checkInherits(orig, R_ExternalPtrTag(arg), type)) {
904 Rf_error("the external pointer for argument %s has tag %s, not the expected value %s",
905 argName, CHAR(PRINTNAME(R_ExternalPtrTag(arg))), type);
906 }
907
908
909 return(ptr);
910 }
911
912 SWIGRUNTIME void
R_SWIG_ReferenceFinalizer(SEXP el)913 R_SWIG_ReferenceFinalizer(SEXP el)
914 {
915 void *ptr = R_SWIG_resolveExternalRef(el, "", "<finalizer>", (Rboolean) 1);
916 fprintf(stderr, "In R_SWIG_ReferenceFinalizer for %p\n", ptr);
917 Rf_PrintValue(el);
918
919 if(ptr) {
920 if(TYPEOF(el) != EXTPTRSXP)
921 el = GET_SLOT(el, Rf_mkString("ref"));
922
923 if(TYPEOF(el) == EXTPTRSXP)
924 R_ClearExternalPtr(el);
925
926 free(ptr);
927 }
928
929 return;
930 }
931
932 typedef enum {R_SWIG_EXTERNAL, R_SWIG_OWNER } R_SWIG_Owner;
933
934 SWIGRUNTIME SEXP
SWIG_MakePtr(void * ptr,const char * typeName,R_SWIG_Owner owner)935 SWIG_MakePtr(void *ptr, const char *typeName, R_SWIG_Owner owner)
936 {
937 SEXP external, r_obj;
938 const char *p = typeName;
939
940 if(typeName[0] == '_')
941 p = typeName + 1;
942
943 Rf_protect(external = R_MakeExternalPtr(ptr, Rf_install(typeName), R_NilValue));
944 Rf_protect(r_obj = NEW_OBJECT(MAKE_CLASS((char *) typeName)));
945
946 if(owner)
947 R_RegisterCFinalizer(external, R_SWIG_ReferenceFinalizer);
948
949 r_obj = SET_SLOT(r_obj, Rf_mkString((char *) "ref"), external);
950 SET_S4_OBJECT(r_obj);
951 Rf_unprotect(2);
952
953 return(r_obj);
954 }
955
956
957 SWIGRUNTIME SEXP
R_SWIG_create_SWIG_R_Array(const char * typeName,SEXP ref,int len)958 R_SWIG_create_SWIG_R_Array(const char *typeName, SEXP ref, int len)
959 {
960 SEXP arr;
961
962 /*XXX remove the char * cast when we can. MAKE_CLASS should be declared appropriately. */
963 Rf_protect(arr = NEW_OBJECT(MAKE_CLASS((char *) typeName)));
964 Rf_protect(arr = R_do_slot_assign(arr, Rf_mkString("ref"), ref));
965 Rf_protect(arr = R_do_slot_assign(arr, Rf_mkString("dims"), Rf_ScalarInteger(len)));
966
967 Rf_unprotect(3);
968 SET_S4_OBJECT(arr);
969 return arr;
970 }
971
972 #define ADD_OUTPUT_ARG(result, pos, value, name) r_ans = AddOutputArgToReturn(pos, value, name, OutputValues);
973
974 SWIGRUNTIME SEXP
AddOutputArgToReturn(int pos,SEXP value,const char * name,SEXP output)975 AddOutputArgToReturn(int pos, SEXP value, const char *name, SEXP output)
976 {
977 SET_VECTOR_ELT(output, pos, value);
978
979 return(output);
980 }
981
982 /* Create a new pointer object */
983 SWIGRUNTIMEINLINE SEXP
SWIG_R_NewPointerObj(void * ptr,swig_type_info * type,int flags)984 SWIG_R_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
985 SEXP rptr = R_MakeExternalPtr(ptr,
986 R_MakeExternalPtr(type, R_NilValue, R_NilValue), R_NilValue);
987 SET_S4_OBJECT(rptr);
988 return rptr;
989 }
990
991
992 /* Convert a pointer value */
993 SWIGRUNTIMEINLINE int
SWIG_R_ConvertPtr(SEXP obj,void ** ptr,swig_type_info * ty,int flags)994 SWIG_R_ConvertPtr(SEXP obj, void **ptr, swig_type_info *ty, int flags) {
995 void *vptr;
996 if (!obj) return SWIG_ERROR;
997 if (obj == R_NilValue) {
998 if (ptr) *ptr = NULL;
999 return SWIG_OK;
1000 }
1001
1002 vptr = R_ExternalPtrAddr(obj);
1003 if (ty) {
1004 swig_type_info *to = (swig_type_info*)
1005 R_ExternalPtrAddr(R_ExternalPtrTag(obj));
1006 if (to == ty) {
1007 if (ptr) *ptr = vptr;
1008 } else {
1009 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1010 int newmemory = 0;
1011 if (ptr) *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
1012 assert(!newmemory); /* newmemory handling not yet implemented */
1013 }
1014 } else {
1015 if (ptr) *ptr = vptr;
1016 }
1017 return SWIG_OK;
1018 }
1019
1020 SWIGRUNTIME swig_module_info *
SWIG_GetModule(void * SWIGUNUSEDPARM (clientdata))1021 SWIG_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
1022 static void *type_pointer = (void *)0;
1023 return (swig_module_info *) type_pointer;
1024 }
1025
1026 SWIGRUNTIME void
SWIG_SetModule(void * v,swig_module_info * swig_module)1027 SWIG_SetModule(void *v, swig_module_info *swig_module) {
1028 }
1029
1030 typedef struct {
1031 void *pack;
1032 swig_type_info *ty;
1033 size_t size;
1034 } RSwigPacked;
1035
1036 /* Create a new packed object */
1037
RSwigPacked_New(void * ptr,size_t sz,swig_type_info * ty)1038 SWIGRUNTIMEINLINE SEXP RSwigPacked_New(void *ptr, size_t sz,
1039 swig_type_info *ty) {
1040 SEXP rptr;
1041 RSwigPacked *sobj =
1042 (RSwigPacked*) malloc(sizeof(RSwigPacked));
1043 if (sobj) {
1044 void *pack = malloc(sz);
1045 if (pack) {
1046 memcpy(pack, ptr, sz);
1047 sobj->pack = pack;
1048 sobj->ty = ty;
1049 sobj->size = sz;
1050 } else {
1051 sobj = 0;
1052 }
1053 }
1054 rptr = R_MakeExternalPtr(sobj, R_NilValue, R_NilValue);
1055 return rptr;
1056 }
1057
1058 SWIGRUNTIME swig_type_info *
RSwigPacked_UnpackData(SEXP obj,void * ptr,size_t size)1059 RSwigPacked_UnpackData(SEXP obj, void *ptr, size_t size)
1060 {
1061 RSwigPacked *sobj =
1062 (RSwigPacked *)R_ExternalPtrAddr(obj);
1063 if (sobj->size != size) return 0;
1064 memcpy(ptr, sobj->pack, size);
1065 return sobj->ty;
1066 }
1067
1068 SWIGRUNTIMEINLINE SEXP
SWIG_R_NewPackedObj(void * ptr,size_t sz,swig_type_info * type)1069 SWIG_R_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1070 return ptr ? RSwigPacked_New((void *) ptr, sz, type) : R_NilValue;
1071 }
1072
1073 /* Convert a packed value value */
1074
1075 SWIGRUNTIME int
SWIG_R_ConvertPacked(SEXP obj,void * ptr,size_t sz,swig_type_info * ty)1076 SWIG_R_ConvertPacked(SEXP obj, void *ptr, size_t sz, swig_type_info *ty) {
1077 swig_type_info *to = RSwigPacked_UnpackData(obj, ptr, sz);
1078 if (!to) return SWIG_ERROR;
1079 if (ty) {
1080 if (to != ty) {
1081 /* check type cast? */
1082 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1083 if (!tc) return SWIG_ERROR;
1084 }
1085 }
1086 return SWIG_OK;
1087 }
1088
1089 #ifdef __cplusplus
1090 #include <exception>
1091 #define SWIG_exception_noreturn(code, msg) do { throw std::runtime_error(msg); } while(0)
1092 #else
1093 #define SWIG_exception_noreturn(code, msg) do { return result; } while(0)
1094 #endif
1095
1096 #ifdef __cplusplus
1097 }
1098 #endif
1099
1100
1101
1102 #define SWIG_exception_fail(code, msg) do { Rf_warning(msg); return Rf_ScalarLogical(NA_LOGICAL); return Rf_ScalarLogical(NA_LOGICAL); } while(0)
1103
1104 #define SWIG_contract_assert(expr, msg) if (!(expr)) { Rf_warning(msg); return Rf_ScalarLogical(NA_LOGICAL); return Rf_ScalarLogical(NA_LOGICAL); } else
1105
1106
1107
1108 #define SWIG_exception(code, msg) do { switch (code) {case SWIG_IndexError: return Rf_ScalarLogical(NA_LOGICAL); default: Rf_warning(msg); return Rf_ScalarLogical(NA_LOGICAL); return Rf_ScalarLogical(NA_LOGICAL);}; } while(0)
1109
1110
1111
1112 /* -------- TYPES TABLE (BEGIN) -------- */
1113
1114 #define SWIGTYPE_p_ConstRefIter swig_types[0]
1115 #define SWIGTYPE_p_Mapping swig_types[1]
1116 #define SWIGTYPE_p_Mappings swig_types[2]
1117 #define SWIGTYPE_p_OpMap swig_types[3]
1118 #define SWIGTYPE_p_OpenBabel__AliasData swig_types[4]
1119 #define SWIGTYPE_p_OpenBabel__CharPtrLess swig_types[5]
1120 #define SWIGTYPE_p_OpenBabel__DoubleType swig_types[6]
1121 #define SWIGTYPE_p_OpenBabel__FastSearch swig_types[7]
1122 #define SWIGTYPE_p_OpenBabel__FastSearchIndexer swig_types[8]
1123 #define SWIGTYPE_p_OpenBabel__FptIndex swig_types[9]
1124 #define SWIGTYPE_p_OpenBabel__FptIndexHeader swig_types[10]
1125 #define SWIGTYPE_p_OpenBabel__LineSearchType swig_types[11]
1126 #define SWIGTYPE_p_OpenBabel__OBAlign swig_types[12]
1127 #define SWIGTYPE_p_OpenBabel__OBAngle swig_types[13]
1128 #define SWIGTYPE_p_OpenBabel__OBAngleData swig_types[14]
1129 #define SWIGTYPE_p_OpenBabel__OBAromaticTyper swig_types[15]
1130 #define SWIGTYPE_p_OpenBabel__OBAtom swig_types[16]
1131 #define SWIGTYPE_p_OpenBabel__OBAtomAtomIter swig_types[17]
1132 #define SWIGTYPE_p_OpenBabel__OBAtomBondIter swig_types[18]
1133 #define SWIGTYPE_p_OpenBabel__OBAtomClassData swig_types[19]
1134 #define SWIGTYPE_p_OpenBabel__OBAtomHOF swig_types[20]
1135 #define SWIGTYPE_p_OpenBabel__OBAtomTyper swig_types[21]
1136 #define SWIGTYPE_p_OpenBabel__OBAtomicHeatOfFormationTable swig_types[22]
1137 #define SWIGTYPE_p_OpenBabel__OBBase swig_types[23]
1138 #define SWIGTYPE_p_OpenBabel__OBBitVec swig_types[24]
1139 #define SWIGTYPE_p_OpenBabel__OBBond swig_types[25]
1140 #define SWIGTYPE_p_OpenBabel__OBBuilder swig_types[26]
1141 #define SWIGTYPE_p_OpenBabel__OBChainsParser swig_types[27]
1142 #define SWIGTYPE_p_OpenBabel__OBChargeModel swig_types[28]
1143 #define SWIGTYPE_p_OpenBabel__OBChiralData swig_types[29]
1144 #define SWIGTYPE_p_OpenBabel__OBCisTransConfig swig_types[30]
1145 #define SWIGTYPE_p_OpenBabel__OBCisTransStereo swig_types[31]
1146 #define SWIGTYPE_p_OpenBabel__OBCommentData swig_types[32]
1147 #define SWIGTYPE_p_OpenBabel__OBConformerData swig_types[33]
1148 #define SWIGTYPE_p_OpenBabel__OBConformerFilter swig_types[34]
1149 #define SWIGTYPE_p_OpenBabel__OBConformerFilters swig_types[35]
1150 #define SWIGTYPE_p_OpenBabel__OBConformerScore swig_types[36]
1151 #define SWIGTYPE_p_OpenBabel__OBConformerSearch swig_types[37]
1152 #define SWIGTYPE_p_OpenBabel__OBConversion swig_types[38]
1153 #define SWIGTYPE_p_OpenBabel__OBDOSData swig_types[39]
1154 #define SWIGTYPE_p_OpenBabel__OBDescriptor swig_types[40]
1155 #define SWIGTYPE_p_OpenBabel__OBElectronicTransitionData swig_types[41]
1156 #define SWIGTYPE_p_OpenBabel__OBElement swig_types[42]
1157 #define SWIGTYPE_p_OpenBabel__OBElementTable swig_types[43]
1158 #define SWIGTYPE_p_OpenBabel__OBEnergyConformerScore swig_types[44]
1159 #define SWIGTYPE_p_OpenBabel__OBError swig_types[45]
1160 #define SWIGTYPE_p_OpenBabel__OBExternalBond swig_types[46]
1161 #define SWIGTYPE_p_OpenBabel__OBExternalBondData swig_types[47]
1162 #define SWIGTYPE_p_OpenBabel__OBFFCalculation2 swig_types[48]
1163 #define SWIGTYPE_p_OpenBabel__OBFFCalculation3 swig_types[49]
1164 #define SWIGTYPE_p_OpenBabel__OBFFCalculation4 swig_types[50]
1165 #define SWIGTYPE_p_OpenBabel__OBFFConstraint swig_types[51]
1166 #define SWIGTYPE_p_OpenBabel__OBFFConstraints swig_types[52]
1167 #define SWIGTYPE_p_OpenBabel__OBFFParameter swig_types[53]
1168 #define SWIGTYPE_p_OpenBabel__OBFingerprint swig_types[54]
1169 #define SWIGTYPE_p_OpenBabel__OBForceField swig_types[55]
1170 #define SWIGTYPE_p_OpenBabel__OBFormat swig_types[56]
1171 #define SWIGTYPE_p_OpenBabel__OBFreeGrid swig_types[57]
1172 #define SWIGTYPE_p_OpenBabel__OBFreeGridPoint swig_types[58]
1173 #define SWIGTYPE_p_OpenBabel__OBGenericData swig_types[59]
1174 #define SWIGTYPE_p_OpenBabel__OBGlobalDataBase swig_types[60]
1175 #define SWIGTYPE_p_OpenBabel__OBGraphSym swig_types[61]
1176 #define SWIGTYPE_p_OpenBabel__OBGridData swig_types[62]
1177 #define SWIGTYPE_p_OpenBabel__OBInternalCoord swig_types[63]
1178 #define SWIGTYPE_p_OpenBabel__OBIsomorphismMapper swig_types[64]
1179 #define SWIGTYPE_p_OpenBabel__OBIsomorphismMapper__Functor swig_types[65]
1180 #define SWIGTYPE_p_OpenBabel__OBIsotopeTable swig_types[66]
1181 #define SWIGTYPE_p_OpenBabel__OBMatrixData swig_types[67]
1182 #define SWIGTYPE_p_OpenBabel__OBMessageHandler swig_types[68]
1183 #define SWIGTYPE_p_OpenBabel__OBMinimizingEnergyConformerScore swig_types[69]
1184 #define SWIGTYPE_p_OpenBabel__OBMinimizingRMSDConformerScore swig_types[70]
1185 #define SWIGTYPE_p_OpenBabel__OBMol swig_types[71]
1186 #define SWIGTYPE_p_OpenBabel__OBMolAngleIter swig_types[72]
1187 #define SWIGTYPE_p_OpenBabel__OBMolAtomBFSIter swig_types[73]
1188 #define SWIGTYPE_p_OpenBabel__OBMolAtomDFSIter swig_types[74]
1189 #define SWIGTYPE_p_OpenBabel__OBMolAtomIter swig_types[75]
1190 #define SWIGTYPE_p_OpenBabel__OBMolBondBFSIter swig_types[76]
1191 #define SWIGTYPE_p_OpenBabel__OBMolBondIter swig_types[77]
1192 #define SWIGTYPE_p_OpenBabel__OBMolPairIter swig_types[78]
1193 #define SWIGTYPE_p_OpenBabel__OBMolRingIter swig_types[79]
1194 #define SWIGTYPE_p_OpenBabel__OBMolTorsionIter swig_types[80]
1195 #define SWIGTYPE_p_OpenBabel__OBNasaThermoData swig_types[81]
1196 #define SWIGTYPE_p_OpenBabel__OBOp swig_types[82]
1197 #define SWIGTYPE_p_OpenBabel__OBOrbital swig_types[83]
1198 #define SWIGTYPE_p_OpenBabel__OBOrbitalData swig_types[84]
1199 #define SWIGTYPE_p_OpenBabel__OBPairData swig_types[85]
1200 #define SWIGTYPE_p_OpenBabel__OBPairTemplateT_bool_t swig_types[86]
1201 #define SWIGTYPE_p_OpenBabel__OBPairTemplateT_double_t swig_types[87]
1202 #define SWIGTYPE_p_OpenBabel__OBPairTemplateT_int_t swig_types[88]
1203 #define SWIGTYPE_p_OpenBabel__OBPlugin swig_types[89]
1204 #define SWIGTYPE_p_OpenBabel__OBPlugin__PluginMapType__const_iterator swig_types[90]
1205 #define SWIGTYPE_p_OpenBabel__OBQuery swig_types[91]
1206 #define SWIGTYPE_p_OpenBabel__OBQueryAtom swig_types[92]
1207 #define SWIGTYPE_p_OpenBabel__OBQueryBond swig_types[93]
1208 #define SWIGTYPE_p_OpenBabel__OBRMSDConformerScore swig_types[94]
1209 #define SWIGTYPE_p_OpenBabel__OBRTree swig_types[95]
1210 #define SWIGTYPE_p_OpenBabel__OBRandom swig_types[96]
1211 #define SWIGTYPE_p_OpenBabel__OBRateData swig_types[97]
1212 #define SWIGTYPE_p_OpenBabel__OBReaction swig_types[98]
1213 #define SWIGTYPE_p_OpenBabel__OBResidue swig_types[99]
1214 #define SWIGTYPE_p_OpenBabel__OBResidueAtomIter swig_types[100]
1215 #define SWIGTYPE_p_OpenBabel__OBResidueData swig_types[101]
1216 #define SWIGTYPE_p_OpenBabel__OBResidueIter swig_types[102]
1217 #define SWIGTYPE_p_OpenBabel__OBRing swig_types[103]
1218 #define SWIGTYPE_p_OpenBabel__OBRingData swig_types[104]
1219 #define SWIGTYPE_p_OpenBabel__OBRingSearch swig_types[105]
1220 #define SWIGTYPE_p_OpenBabel__OBRingTyper swig_types[106]
1221 #define SWIGTYPE_p_OpenBabel__OBRotamerList swig_types[107]
1222 #define SWIGTYPE_p_OpenBabel__OBRotationData swig_types[108]
1223 #define SWIGTYPE_p_OpenBabel__OBRotor swig_types[109]
1224 #define SWIGTYPE_p_OpenBabel__OBRotorKeys swig_types[110]
1225 #define SWIGTYPE_p_OpenBabel__OBRotorList swig_types[111]
1226 #define SWIGTYPE_p_OpenBabel__OBRotorRule swig_types[112]
1227 #define SWIGTYPE_p_OpenBabel__OBRotorRules swig_types[113]
1228 #define SWIGTYPE_p_OpenBabel__OBSSMatch swig_types[114]
1229 #define SWIGTYPE_p_OpenBabel__OBSerialNums swig_types[115]
1230 #define SWIGTYPE_p_OpenBabel__OBSetData swig_types[116]
1231 #define SWIGTYPE_p_OpenBabel__OBSmartsMatcher swig_types[117]
1232 #define SWIGTYPE_p_OpenBabel__OBSmartsPattern swig_types[118]
1233 #define SWIGTYPE_p_OpenBabel__OBSpectrophore swig_types[119]
1234 #define SWIGTYPE_p_OpenBabel__OBSqrtTbl swig_types[120]
1235 #define SWIGTYPE_p_OpenBabel__OBSquarePlanarConfig swig_types[121]
1236 #define SWIGTYPE_p_OpenBabel__OBSquarePlanarStereo swig_types[122]
1237 #define SWIGTYPE_p_OpenBabel__OBStereo swig_types[123]
1238 #define SWIGTYPE_p_OpenBabel__OBStereoBase swig_types[124]
1239 #define SWIGTYPE_p_OpenBabel__OBStereoFacade swig_types[125]
1240 #define SWIGTYPE_p_OpenBabel__OBStereoUnit swig_types[126]
1241 #define SWIGTYPE_p_OpenBabel__OBStericConformerFilter swig_types[127]
1242 #define SWIGTYPE_p_OpenBabel__OBStopwatch swig_types[128]
1243 #define SWIGTYPE_p_OpenBabel__OBSymmetryData swig_types[129]
1244 #define SWIGTYPE_p_OpenBabel__OBTetraNonPlanarStereo swig_types[130]
1245 #define SWIGTYPE_p_OpenBabel__OBTetraPlanarStereo swig_types[131]
1246 #define SWIGTYPE_p_OpenBabel__OBTetrahedralConfig swig_types[132]
1247 #define SWIGTYPE_p_OpenBabel__OBTetrahedralStereo swig_types[133]
1248 #define SWIGTYPE_p_OpenBabel__OBTorsion swig_types[134]
1249 #define SWIGTYPE_p_OpenBabel__OBTorsionData swig_types[135]
1250 #define SWIGTYPE_p_OpenBabel__OBTypeTable swig_types[136]
1251 #define SWIGTYPE_p_OpenBabel__OBUnitCell swig_types[137]
1252 #define SWIGTYPE_p_OpenBabel__OBVectorData swig_types[138]
1253 #define SWIGTYPE_p_OpenBabel__OBVibrationData swig_types[139]
1254 #define SWIGTYPE_p_OpenBabel__OBVirtualBond swig_types[140]
1255 #define SWIGTYPE_p_OpenBabel__Pattern swig_types[141]
1256 #define SWIGTYPE_p_OpenBabel__SpaceGroup swig_types[142]
1257 #define SWIGTYPE_p_OpenBabel__Template swig_types[143]
1258 #define SWIGTYPE_p_OpenBabel__matrix3x3 swig_types[144]
1259 #define SWIGTYPE_p_OpenBabel__obLogBuf swig_types[145]
1260 #define SWIGTYPE_p_OpenBabel__quadT_OpenBabel__OBAtom_p_OpenBabel__OBAtom_p_OpenBabel__OBAtom_p_OpenBabel__OBAtom_p_t swig_types[146]
1261 #define SWIGTYPE_p_OpenBabel__rotor_digit swig_types[147]
1262 #define SWIGTYPE_p_OpenBabel__transform3d swig_types[148]
1263 #define SWIGTYPE_p_OpenBabel__tripleT_OpenBabel__OBAtom_p_OpenBabel__OBAtom_p_OpenBabel__OBAtom_p_t swig_types[149]
1264 #define SWIGTYPE_p_OpenBabel__vector3 swig_types[150]
1265 #define SWIGTYPE_p_PluginIterator swig_types[151]
1266 #define SWIGTYPE_p_PluginMapType swig_types[152]
1267 #define SWIGTYPE_p_Ref swig_types[153]
1268 #define SWIGTYPE_p_RefIter swig_types[154]
1269 #define SWIGTYPE_p_Refs swig_types[155]
1270 #define SWIGTYPE_p_Unit swig_types[156]
1271 #define SWIGTYPE_p_a_3__double swig_types[157]
1272 #define SWIGTYPE_p_a_4__char swig_types[158]
1273 #define SWIGTYPE_p_allocator_type swig_types[159]
1274 #define SWIGTYPE_p_char swig_types[160]
1275 #define SWIGTYPE_p_const_reference swig_types[161]
1276 #define SWIGTYPE_p_difference_type swig_types[162]
1277 #define SWIGTYPE_p_double swig_types[163]
1278 #define SWIGTYPE_p_first_type swig_types[164]
1279 #define SWIGTYPE_p_int swig_types[165]
1280 #define SWIGTYPE_p_obsharedptrT_OpenBabel__OBMol_t swig_types[166]
1281 #define SWIGTYPE_p_p_OpenBabel__OBChargeModel swig_types[167]
1282 #define SWIGTYPE_p_p_OpenBabel__OBDescriptor swig_types[168]
1283 #define SWIGTYPE_p_p_OpenBabel__OBFingerprint swig_types[169]
1284 #define SWIGTYPE_p_p_OpenBabel__OBForceField swig_types[170]
1285 #define SWIGTYPE_p_p_OpenBabel__OBFormat swig_types[171]
1286 #define SWIGTYPE_p_p_OpenBabel__OBOp swig_types[172]
1287 #define SWIGTYPE_p_p_double swig_types[173]
1288 #define SWIGTYPE_p_p_int swig_types[174]
1289 #define SWIGTYPE_p_reference swig_types[175]
1290 #define SWIGTYPE_p_second_type swig_types[176]
1291 #define SWIGTYPE_p_size_type swig_types[177]
1292 #define SWIGTYPE_p_std__allocatorT_std__vectorT_std__pairT_unsigned_int_unsigned_int_t_std__allocatorT_std__pairT_unsigned_int_unsigned_int_t_t_t_t swig_types[178]
1293 #define SWIGTYPE_p_std__binary_functionT_char_const_p_char_const_p_bool_t swig_types[179]
1294 #define SWIGTYPE_p_std__dequeT_int_t swig_types[180]
1295 #define SWIGTYPE_p_std__istream swig_types[181]
1296 #define SWIGTYPE_p_std__listT_OpenBabel__transform3d_p_t__const_iterator swig_types[182]
1297 #define SWIGTYPE_p_std__listT_OpenBabel__vector3_t swig_types[183]
1298 #define SWIGTYPE_p_std__mapT_OpenBabel__OBBond_p_OpenBabel__OBStereo__BondDirection_std__lessT_OpenBabel__OBBond_p_t_std__allocatorT_std__pairT_OpenBabel__OBBond_pconst_OpenBabel__OBStereo__BondDirection_t_t_t swig_types[184]
1299 #define SWIGTYPE_p_std__mapT_OpenBabel__OBBond_p_unsigned_long_std__lessT_OpenBabel__OBBond_p_t_std__allocatorT_std__pairT_OpenBabel__OBBond_pconst_unsigned_long_t_t_t swig_types[185]
1300 #define SWIGTYPE_p_std__mapT_char_const_p_OpenBabel__OBPlugin_p_OpenBabel__CharPtrLess_std__allocatorT_std__pairT_char_const_pconst_OpenBabel__OBPlugin_p_t_t_t swig_types[186]
1301 #define SWIGTYPE_p_std__mapT_int_OpenBabel__OBAtom_p_std__lessT_int_t_std__allocatorT_std__pairT_int_const_OpenBabel__OBAtom_p_t_t_t swig_types[187]
1302 #define SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t swig_types[188]
1303 #define SWIGTYPE_p_std__mapT_std__vectorT_int_std__allocatorT_int_t_t_double_std__lessT_std__vectorT_int_t_t_std__allocatorT_std__pairT_std__vectorT_int_std__allocatorT_int_t_t_const_double_t_t_t swig_types[189]
1304 #define SWIGTYPE_p_std__multimapT_double_unsigned_int_t swig_types[190]
1305 #define SWIGTYPE_p_std__ostream swig_types[191]
1306 #define SWIGTYPE_p_std__ostringstream swig_types[192]
1307 #define SWIGTYPE_p_std__pairT_OpenBabel__OBAtom_p_OpenBabel__OBAtom_p_t swig_types[193]
1308 #define SWIGTYPE_p_std__pairT_int_int_t swig_types[194]
1309 #define SWIGTYPE_p_std__pairT_std__string_std__string_t swig_types[195]
1310 #define SWIGTYPE_p_std__pairT_unsigned_int_unsigned_int_t swig_types[196]
1311 #define SWIGTYPE_p_std__setT_OpenBabel__OBBond_p_t swig_types[197]
1312 #define SWIGTYPE_p_std__streampos swig_types[198]
1313 #define SWIGTYPE_p_std__string swig_types[199]
1314 #define SWIGTYPE_p_std__stringbuf swig_types[200]
1315 #define SWIGTYPE_p_std__type_info swig_types[201]
1316 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBAtom_p_std__allocatorT_OpenBabel__OBAtom_p_t_t swig_types[202]
1317 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBAtom_p_std__allocatorT_OpenBabel__OBAtom_p_t_t__iterator swig_types[203]
1318 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBBase_p_std__allocatorT_OpenBabel__OBBase_p_t_t swig_types[204]
1319 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBBond_p_std__allocatorT_OpenBabel__OBBond_p_t_t swig_types[205]
1320 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBBond_p_std__allocatorT_OpenBabel__OBBond_p_t_t__iterator swig_types[206]
1321 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBBond_std__allocatorT_OpenBabel__OBBond_t_t swig_types[207]
1322 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBCisTransStereo_p_std__allocatorT_OpenBabel__OBCisTransStereo_p_t_t swig_types[208]
1323 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBConformerFilter_p_std__allocatorT_OpenBabel__OBConformerFilter_p_t_t swig_types[209]
1324 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBExternalBond_std__allocatorT_OpenBabel__OBExternalBond_t_t swig_types[210]
1325 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBFreeGridPoint_p_std__allocatorT_OpenBabel__OBFreeGridPoint_p_t_t__iterator swig_types[211]
1326 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_std__allocatorT_OpenBabel__OBGenericData_p_t_t swig_types[212]
1327 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_std__allocatorT_OpenBabel__OBGenericData_p_t_t__iterator swig_types[213]
1328 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBInternalCoord_p_std__allocatorT_OpenBabel__OBInternalCoord_p_t_t swig_types[214]
1329 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBInternalCoord_p_std__allocatorT_OpenBabel__OBInternalCoord_p_t_t__iterator swig_types[215]
1330 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBMol_std__allocatorT_OpenBabel__OBMol_t_t swig_types[216]
1331 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBOrbital_std__allocatorT_OpenBabel__OBOrbital_t_t swig_types[217]
1332 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBQueryAtom_p_std__allocatorT_OpenBabel__OBQueryAtom_p_t_t swig_types[218]
1333 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBQueryBond_p_std__allocatorT_OpenBabel__OBQueryBond_p_t_t swig_types[219]
1334 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBResidue_p_std__allocatorT_OpenBabel__OBResidue_p_t_t__iterator swig_types[220]
1335 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBResidue_std__allocatorT_OpenBabel__OBResidue_t_t swig_types[221]
1336 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBRing_p_std__allocatorT_OpenBabel__OBRing_p_t_t swig_types[222]
1337 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBRing_p_std__allocatorT_OpenBabel__OBRing_p_t_t__iterator swig_types[223]
1338 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBRing_std__allocatorT_OpenBabel__OBRing_t_t swig_types[224]
1339 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBRotor_p_std__allocatorT_OpenBabel__OBRotor_p_t_t__iterator swig_types[225]
1340 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBStereoUnit_std__allocatorT_OpenBabel__OBStereoUnit_t_t swig_types[226]
1341 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBTetrahedralStereo_p_std__allocatorT_OpenBabel__OBTetrahedralStereo_p_t_t swig_types[227]
1342 #define SWIGTYPE_p_std__vectorT_OpenBabel__OBTorsion_std__allocatorT_OpenBabel__OBTorsion_t_t swig_types[228]
1343 #define SWIGTYPE_p_std__vectorT_OpenBabel__tripleT_OpenBabel__OBAtom_p_OpenBabel__OBAtom_p_double_t_std__allocatorT_OpenBabel__tripleT_OpenBabel__OBAtom_p_OpenBabel__OBAtom_p_double_t_t_t swig_types[229]
1344 #define SWIGTYPE_p_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t swig_types[230]
1345 #define SWIGTYPE_p_std__vectorT_double_p_std__allocatorT_double_p_t_t swig_types[231]
1346 #define SWIGTYPE_p_std__vectorT_double_p_std__allocatorT_double_p_t_t__iterator swig_types[232]
1347 #define SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t swig_types[233]
1348 #define SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t__iterator swig_types[234]
1349 #define SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t swig_types[235]
1350 #define SWIGTYPE_p_std__vectorT_std__pairT_int_int_t_std__allocatorT_std__pairT_int_int_t_t_t swig_types[236]
1351 #define SWIGTYPE_p_std__vectorT_std__pairT_std__string_std__string_t_std__allocatorT_std__pairT_std__string_std__string_t_t_t swig_types[237]
1352 #define SWIGTYPE_p_std__vectorT_std__pairT_unsigned_int_unsigned_int_t_std__allocatorT_std__pairT_unsigned_int_unsigned_int_t_t_t swig_types[238]
1353 #define SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t swig_types[239]
1354 #define SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__OBStereoUnit_std__allocatorT_OpenBabel__OBStereoUnit_t_t_std__allocatorT_std__vectorT_OpenBabel__OBStereoUnit_std__allocatorT_OpenBabel__OBStereoUnit_t_t_t_t swig_types[240]
1355 #define SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_std__allocatorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_t_t swig_types[241]
1356 #define SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t swig_types[242]
1357 #define SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t__iterator swig_types[243]
1358 #define SWIGTYPE_p_std__vectorT_std__vectorT_std__pairT_unsigned_int_unsigned_int_t_std__allocatorT_std__pairT_unsigned_int_unsigned_int_t_t_t_std__allocatorT_std__vectorT_std__pairT_unsigned_int_unsigned_int_t_std__allocatorT_std__pairT_unsigned_int_unsigned_int_t_t_t_t_t swig_types[244]
1359 #define SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t_std__allocatorT_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t_t_t swig_types[245]
1360 #define SWIGTYPE_p_std__vectorT_uint32_t_std__allocatorT_uint32_t_t_t swig_types[246]
1361 #define SWIGTYPE_p_std__vectorT_unsigned_char_p_std__allocatorT_unsigned_char_p_t_t__iterator swig_types[247]
1362 #define SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t swig_types[248]
1363 #define SWIGTYPE_p_std__vectorT_unsigned_long_std__allocatorT_unsigned_long_t_t swig_types[249]
1364 #define SWIGTYPE_p_std__vectorT_unsigned_short_std__allocatorT_unsigned_short_t_t swig_types[250]
1365 #define SWIGTYPE_p_stringp swig_types[251]
1366 #define SWIGTYPE_p_unsigned_int swig_types[252]
1367 #define SWIGTYPE_p_value_type swig_types[253]
1368 #define SWIGTYPE_p_void swig_types[254]
1369 #define SWIGTYPE_p_word_vector swig_types[255]
1370 static swig_type_info *swig_types[257];
1371 static swig_module_info swig_module = {swig_types, 256, 0, 0, 0, 0};
1372 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1373 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1374
1375 /* -------- TYPES TABLE (END) -------- */
1376
1377
1378 /* -----------------------------------------------------------------------------
1379 * This section contains generic SWIG labels for method/variable
1380 * declarations/attributes, and other compiler dependent labels.
1381 * ----------------------------------------------------------------------------- */
1382
1383 /* template workaround for compilers that cannot correctly implement the C++ standard */
1384 #ifndef SWIGTEMPLATEDISAMBIGUATOR
1385 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
1386 # define SWIGTEMPLATEDISAMBIGUATOR template
1387 # elif defined(__HP_aCC)
1388 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
1389 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
1390 # define SWIGTEMPLATEDISAMBIGUATOR template
1391 # else
1392 # define SWIGTEMPLATEDISAMBIGUATOR
1393 # endif
1394 #endif
1395
1396 /* inline attribute */
1397 #ifndef SWIGINLINE
1398 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
1399 # define SWIGINLINE inline
1400 # else
1401 # define SWIGINLINE
1402 # endif
1403 #endif
1404
1405 /* attribute recognised by some compilers to avoid 'unused' warnings */
1406 #ifndef SWIGUNUSED
1407 # if defined(__GNUC__)
1408 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
1409 # define SWIGUNUSED __attribute__ ((__unused__))
1410 # else
1411 # define SWIGUNUSED
1412 # endif
1413 # elif defined(__ICC)
1414 # define SWIGUNUSED __attribute__ ((__unused__))
1415 # else
1416 # define SWIGUNUSED
1417 # endif
1418 #endif
1419
1420 #ifndef SWIG_MSC_UNSUPPRESS_4505
1421 # if defined(_MSC_VER)
1422 # pragma warning(disable : 4505) /* unreferenced local function has been removed */
1423 # endif
1424 #endif
1425
1426 #ifndef SWIGUNUSEDPARM
1427 # ifdef __cplusplus
1428 # define SWIGUNUSEDPARM(p)
1429 # else
1430 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
1431 # endif
1432 #endif
1433
1434 /* internal SWIG method */
1435 #ifndef SWIGINTERN
1436 # define SWIGINTERN static SWIGUNUSED
1437 #endif
1438
1439 /* internal inline SWIG method */
1440 #ifndef SWIGINTERNINLINE
1441 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
1442 #endif
1443
1444 /* exporting methods */
1445 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
1446 # ifndef GCC_HASCLASSVISIBILITY
1447 # define GCC_HASCLASSVISIBILITY
1448 # endif
1449 #endif
1450
1451 #ifndef SWIGEXPORT
1452 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1453 # if defined(STATIC_LINKED)
1454 # define SWIGEXPORT
1455 # else
1456 # define SWIGEXPORT __declspec(dllexport)
1457 # endif
1458 # else
1459 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
1460 # define SWIGEXPORT __attribute__ ((visibility("default")))
1461 # else
1462 # define SWIGEXPORT
1463 # endif
1464 # endif
1465 #endif
1466
1467 /* calling conventions for Windows */
1468 #ifndef SWIGSTDCALL
1469 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1470 # define SWIGSTDCALL __stdcall
1471 # else
1472 # define SWIGSTDCALL
1473 # endif
1474 #endif
1475
1476 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
1477 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
1478 # define _CRT_SECURE_NO_DEPRECATE
1479 #endif
1480
1481 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
1482 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
1483 # define _SCL_SECURE_NO_DEPRECATE
1484 #endif
1485
1486
1487 /* Errors in SWIG */
1488 #define SWIG_UnknownError -1
1489 #define SWIG_IOError -2
1490 #define SWIG_RuntimeError -3
1491 #define SWIG_IndexError -4
1492 #define SWIG_TypeError -5
1493 #define SWIG_DivisionByZero -6
1494 #define SWIG_OverflowError -7
1495 #define SWIG_SyntaxError -8
1496 #define SWIG_ValueError -9
1497 #define SWIG_SystemError -10
1498 #define SWIG_AttributeError -11
1499 #define SWIG_MemoryError -12
1500 #define SWIG_NullReferenceError -13
1501
1502
1503
1504
1505 #define SWIGVERSION 0x020011
1506 #define SWIG_VERSION SWIGVERSION
1507
1508
1509 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
1510 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
1511
1512
1513 #include <stdexcept>
1514
1515
1516 #include <R.h>
1517 // used to set import/export for Cygwin DLLs
1518 #ifdef WIN32
1519 #define USING_OBDLL
1520 #endif
1521
1522
1523 #include <openbabel/obutil.h>
1524 #include <openbabel/rand.h>
1525 #include <openbabel/math/vector3.h>
1526 #include <openbabel/math/matrix3x3.h>
1527 #include <openbabel/math/transform3d.h>
1528 #include <openbabel/math/spacegroup.h>
1529
1530 #include <openbabel/generic.h>
1531 #include <openbabel/griddata.h>
1532
1533 #include <openbabel/base.h>
1534 #include <openbabel/mol.h>
1535 #include <openbabel/atom.h>
1536 #include <openbabel/bond.h>
1537 #include <openbabel/reaction.h>
1538 #include <openbabel/residue.h>
1539 #include <openbabel/internalcoord.h>
1540
1541 #include <openbabel/ring.h>
1542 #include <openbabel/obconversion.h>
1543 #include <openbabel/oberror.h>
1544 #include <openbabel/plugin.h>
1545 #include <openbabel/fingerprint.h>
1546 #include <openbabel/descriptor.h>
1547 #include <openbabel/format.h>
1548
1549 #include <openbabel/builder.h>
1550 #include <openbabel/op.h>
1551
1552 #include <openbabel/bitvec.h>
1553 #include <openbabel/data.h>
1554 #include <openbabel/parsmart.h>
1555 #include <openbabel/alias.h>
1556 #include <openbabel/atomclass.h>
1557
1558 #include <openbabel/kinetics.h>
1559 #include <openbabel/rotor.h>
1560 #include <openbabel/rotamer.h>
1561 #include <openbabel/spectrophore.h>
1562
1563 #include <openbabel/chargemodel.h>
1564 #include <openbabel/graphsym.h>
1565 #include <openbabel/isomorphism.h>
1566 #include <openbabel/query.h>
1567 #include <openbabel/canon.h>
1568
1569 #include <openbabel/stereo/tetrahedral.h>
1570 #include <openbabel/stereo/cistrans.h>
1571 #include <openbabel/stereo/squareplanar.h>
1572 #include <openbabel/stereo/bindings.h>
1573
1574
1575 #include <openbabel/forcefield.h>
1576 #include <openbabel/conformersearch.h>
1577 #include <openbabel/math/align.h>
1578
1579
1580 #include <stdexcept>
1581
1582
1583 #if defined(__GNUC__)
1584 # if __GNUC__ == 2 && __GNUC_MINOR <= 96
1585 # define SWIG_STD_NOMODERN_STL
1586 # endif
1587 #endif
1588
1589
1590 #include <string>
1591 #include <stdexcept>
1592 #include <stddef.h>
1593
1594
1595 #include <utility>
1596
1597
1598 #include <algorithm>
1599
1600
1601 #include <map>
1602 #include <algorithm>
1603 #include <stdexcept>
1604
1605
1606 #include <vector>
1607
1608
1609 #include <string>
1610
1611
1612 typedef std::string stringp;
1613
new_stringp()1614 SWIGINTERN stringp *new_stringp(){
1615 return new std::string();
1616 }
delete_stringp(stringp * self)1617 SWIGINTERN void delete_stringp(stringp *self){
1618 if (self) delete self;
1619 }
1620
1621 SWIGINTERN int
SWIG_AsCharPtrAndSize(SEXP obj,char ** cptr,size_t * psize,int * alloc)1622 SWIG_AsCharPtrAndSize(SEXP obj, char** cptr, size_t* psize, int *alloc)
1623 {
1624 if (cptr && Rf_isString(obj)) {
1625 char *cstr = const_cast< char * >(CHAR(STRING_ELT(obj, 0)));
1626 int len = strlen(cstr);
1627
1628 if (alloc) {
1629 if (*alloc == SWIG_NEWOBJ) {
1630 *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
1631 *alloc = SWIG_NEWOBJ;
1632 } else {
1633 *cptr = cstr;
1634 }
1635 } else {
1636 *cptr = reinterpret_cast< char * >(malloc(len + 1));
1637 *cptr = strcpy(*cptr, cstr);
1638 }
1639 if (psize) *psize = len + 1;
1640 return SWIG_OK;
1641 }
1642 return SWIG_TypeError;
1643 }
1644
1645
1646 SWIGINTERN int
SWIG_AsPtr_std_string(SEXP obj,std::string ** val)1647 SWIG_AsPtr_std_string (SEXP obj, std::string **val)
1648 {
1649 char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ;
1650 if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) {
1651 if (buf) {
1652 if (val) *val = new std::string(buf, size - 1);
1653 if (alloc == SWIG_NEWOBJ) delete[] buf;
1654 return SWIG_NEWOBJ;
1655 } else {
1656 if (val) *val = 0;
1657 return SWIG_OLDOBJ;
1658 }
1659 } else {
1660 static int init = 0;
1661 static swig_type_info* descriptor = 0;
1662 if (!init) {
1663 descriptor = SWIG_TypeQuery("std::string" " *");
1664 init = 1;
1665 }
1666 if (descriptor) {
1667 std::string *vptr;
1668 int res = SWIG_R_ConvertPtr(obj, (void**)&vptr, descriptor, 0);
1669 if (SWIG_IsOK(res) && val) *val = vptr;
1670 return res;
1671 }
1672 }
1673 return SWIG_ERROR;
1674 }
1675
stringp_assign(stringp * self,std::string value)1676 SWIGINTERN void stringp_assign(stringp *self,std::string value){
1677 *self = value;
1678 }
stringp_value(stringp * self)1679 SWIGINTERN std::string stringp_value(stringp *self){
1680 return *self;
1681 }
1682
1683 SWIGINTERN SEXP
SWIG_FromCharPtrAndSize(const char * carray,size_t size)1684 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
1685 {
1686 SEXP t, c;
1687 if (!carray) return R_NilValue;
1688 /* See R internals document 1.10.
1689 MkCharLen was introduced in 2.7.0. Use that instead of hand
1690 creating vector.
1691
1692 Starting in 2.8.0 creating strings via vectors was deprecated in
1693 order to allow for use of CHARSXP caches. */
1694
1695 Rf_protect(t = Rf_allocVector(STRSXP, 1));
1696 #if R_VERSION >= R_Version(2,7,0)
1697 c = Rf_mkCharLen(carray, size);
1698 #else
1699 c = Rf_allocVector(CHARSXP, size);
1700 strncpy((char *)CHAR(c), carray, size);
1701 #endif
1702 SET_STRING_ELT(t, 0, c);
1703 Rf_unprotect(1);
1704 return t;
1705 }
1706
1707
1708 SWIGINTERNINLINE SEXP
SWIG_From_std_string(const std::string & s)1709 SWIG_From_std_string (const std::string& s)
1710 {
1711 return SWIG_FromCharPtrAndSize(s.data(), s.size());
1712 }
1713
stringp_cast(stringp * self)1714 SWIGINTERN std::string *stringp_cast(stringp *self){
1715 return self;
1716 }
stringp_frompointer(std::string * t)1717 SWIGINTERN stringp *stringp_frompointer(std::string *t){
1718 return (stringp *) t;
1719 }
1720
1721
1722 #include <iostream>
istreamFromString(std::string str)1723 std::istream* istreamFromString(std::string str){
1724 return new std::istringstream(str);
1725 }
istreamFromFile(const char * filename)1726 std::istream* istreamFromFile(const char *filename) {
1727 return new std::ifstream(filename);
1728 }
ostreamToString()1729 std::ostream* ostreamToString(){
1730 return new std::ostringstream();
1731 }
ostreamToFile(const char * filename)1732 std::ostream* ostreamToFile(const char *filename) {
1733 return new std::ofstream(filename);
1734 }
stringFromOstream(const std::ostringstream * os)1735 const std::string stringFromOstream(const std::ostringstream* os){
1736 // return (os->str()).c_str();
1737 return os->str();
1738 }
1739
1740
1741
1742
1743
1744
1745 namespace swig {
1746 template <class Type>
1747 struct noconst_traits {
1748 typedef Type noconst_type;
1749 };
1750
1751 template <class Type>
1752 struct noconst_traits<const Type> {
1753 typedef Type noconst_type;
1754 };
1755
1756 /*
1757 type categories
1758 */
1759 struct pointer_category { };
1760 struct value_category { };
1761
1762 /*
1763 General traits that provides type_name and type_info
1764 */
1765 template <class Type> struct traits { };
1766
1767 template <class Type>
type_name()1768 inline const char* type_name() {
1769 return traits<typename noconst_traits<Type >::noconst_type >::type_name();
1770 }
1771
1772 template <class Type>
1773 struct traits_info {
type_queryswig::traits_info1774 static swig_type_info *type_query(std::string name) {
1775 name += " *";
1776 return SWIG_TypeQuery(name.c_str());
1777 }
type_infoswig::traits_info1778 static swig_type_info *type_info() {
1779 static swig_type_info *info = type_query(type_name<Type>());
1780 return info;
1781 }
1782 };
1783
1784 template <class Type>
type_info()1785 inline swig_type_info *type_info() {
1786 return traits_info<Type>::type_info();
1787 }
1788
1789 /*
1790 Partial specialization for pointers
1791 */
1792 template <class Type> struct traits <Type *> {
1793 typedef pointer_category category;
make_ptr_nameswig::traits1794 static std::string make_ptr_name(const char* name) {
1795 std::string ptrname = name;
1796 ptrname += " *";
1797 return ptrname;
1798 }
type_nameswig::traits1799 static const char* type_name() {
1800 static std::string name = make_ptr_name(swig::type_name<Type>());
1801 return name.c_str();
1802 }
1803 };
1804
1805 template <class Type, class Category>
1806 struct traits_as { };
1807
1808 template <class Type, class Category>
1809 struct traits_check { };
1810
1811 }
1812
1813
1814 namespace swig {
1815 /*
1816 Traits that provides the from method
1817 */
1818
1819 template <class Type> struct traits_from_ptr {
fromswig::traits_from_ptr1820 static SEXP from(Type *val, int owner = 0) {
1821 return SWIG_R_NewPointerObj(val, type_info<Type>(), owner);
1822 }
1823 };
1824
1825 template <class Type> struct traits_from {
fromswig::traits_from1826 static SEXP from(const Type& val) {
1827 return traits_from_ptr<Type>::from(new Type(val), 1);
1828 }
1829 };
1830
1831 template <class Type> struct traits_from<Type *> {
fromswig::traits_from1832 static SEXP from(Type* val) {
1833 return traits_from_ptr<Type>::from(val, 0);
1834 }
1835 };
1836
1837 template <class Type>
from(const Type & val)1838 inline SEXP from(const Type& val) {
1839 return traits_from<Type>::from(val);
1840 }
1841
1842 template <class Type>
from_ptr(Type * val,int owner)1843 inline SEXP from_ptr(Type* val, int owner) {
1844 return traits_from_ptr<Type>::from(val, owner);
1845 }
1846
1847 /*
1848 Traits that provides the asval/as/check method
1849 */
1850 template <class Type>
1851 struct traits_asptr {
asptrswig::traits_asptr1852 static int asptr(SEXP obj, Type **val) {
1853 Type *p;
1854 int res = SWIG_R_ConvertPtr(obj, (void**)&p, type_info<Type>(), 0);
1855 if (SWIG_IsOK(res)) {
1856 if (val) *val = p;
1857 }
1858 return res;
1859 }
1860 };
1861
1862 template <class Type>
asptr(SEXP obj,Type ** vptr)1863 inline int asptr(SEXP obj, Type **vptr) {
1864 return traits_asptr<Type>::asptr(obj, vptr);
1865 }
1866
1867 template <class Type>
1868 struct traits_asval {
asvalswig::traits_asval1869 static int asval(SEXP obj, Type *val) {
1870 if (val) {
1871 Type *p = 0;
1872 int res = traits_asptr<Type>::asptr(obj, &p);
1873 if (!SWIG_IsOK(res)) return res;
1874 if (p) {
1875 typedef typename noconst_traits<Type>::noconst_type noconst_type;
1876 *(const_cast<noconst_type*>(val)) = *p;
1877 if (SWIG_IsNewObj(res)){
1878 delete p;
1879 res = SWIG_DelNewMask(res);
1880 }
1881 return res;
1882 } else {
1883 return SWIG_ERROR;
1884 }
1885 } else {
1886 return traits_asptr<Type>::asptr(obj, (Type **)(0));
1887 }
1888 }
1889 };
1890
1891 template <class Type> struct traits_asval<Type*> {
asvalswig::traits_asval1892 static int asval(SEXP obj, Type **val) {
1893 if (val) {
1894 typedef typename noconst_traits<Type>::noconst_type noconst_type;
1895 noconst_type *p = 0;
1896 int res = traits_asptr<noconst_type>::asptr(obj, &p);
1897 if (SWIG_IsOK(res)) {
1898 *(const_cast<noconst_type**>(val)) = p;
1899 }
1900 return res;
1901 } else {
1902 return traits_asptr<Type>::asptr(obj, (Type **)(0));
1903 }
1904 }
1905 };
1906
1907 template <class Type>
asval(SEXP obj,Type * val)1908 inline int asval(SEXP obj, Type *val) {
1909 return traits_asval<Type>::asval(obj, val);
1910 }
1911
1912 template <class Type>
1913 struct traits_as<Type, value_category> {
asswig::traits_as1914 static Type as(SEXP obj, bool throw_error) {
1915 Type v;
1916 int res = asval(obj, &v);
1917 if (!obj || !SWIG_IsOK(res)) {
1918 if (throw_error)
1919 throw std::invalid_argument("bad type");
1920 }
1921 return v;
1922 }
1923 };
1924
1925 template <class Type>
1926 struct traits_as<Type, pointer_category> {
asswig::traits_as1927 static Type as(SEXP obj, bool throw_error) {
1928 Type *v = 0;
1929 int res = (obj ? traits_asptr<Type>::asptr(obj, &v) : SWIG_ERROR);
1930 if (SWIG_IsOK(res) && v) {
1931 if (SWIG_IsNewObj(res)) {
1932 Type r(*v);
1933 delete v;
1934 return r;
1935 } else {
1936 return *v;
1937 }
1938 } else {
1939 // Uninitialized return value, no Type() constructor required.
1940 static Type *v_def = (Type*) malloc(sizeof(Type));
1941 if (throw_error)
1942 throw std::invalid_argument("bad type");
1943 memset(v_def,0,sizeof(Type));
1944 return *v_def;
1945 }
1946 }
1947 };
1948
1949 template <class Type>
1950 struct traits_as<Type*, pointer_category> {
asswig::traits_as1951 static Type* as(SEXP obj, bool throw_error) {
1952 Type *v = 0;
1953 int res = (obj ? traits_asptr<Type>::asptr(obj, &v) : SWIG_ERROR);
1954 if (SWIG_IsOK(res)) {
1955 return v;
1956 } else {
1957 if (throw_error)
1958 throw std::invalid_argument("bad type");
1959 return 0;
1960 }
1961 }
1962 };
1963
1964 template <class Type>
as(SEXP obj,bool te=false)1965 inline Type as(SEXP obj, bool te = false) {
1966 return traits_as<Type, typename traits<Type>::category>::as(obj, te);
1967 }
1968
1969 template <class Type>
1970 struct traits_check<Type, value_category> {
checkswig::traits_check1971 static bool check(SEXP obj) {
1972 int res = obj ? asval(obj, (Type *)(0)) : SWIG_ERROR;
1973 return SWIG_IsOK(res) ? true : false;
1974 }
1975 };
1976
1977 template <class Type>
1978 struct traits_check<Type, pointer_category> {
checkswig::traits_check1979 static bool check(SEXP obj) {
1980 int res = obj ? asptr(obj, (Type **)(0)) : SWIG_ERROR;
1981 return SWIG_IsOK(res) ? true : false;
1982 }
1983 };
1984
1985 template <class Type>
check(SEXP obj)1986 inline bool check(SEXP obj) {
1987 return traits_check<Type, typename traits<Type>::category>::check(obj);
1988 }
1989 }
1990
1991
1992 #include <stddef.h>
1993
1994
1995 #include <functional>
1996 namespace swig {
1997 inline size_t
check_index(ptrdiff_t i,size_t size,bool insert=false)1998 check_index(ptrdiff_t i, size_t size, bool insert = false) {
1999 if ( i < 0 ) {
2000 if ((size_t) (-i) <= size)
2001 return (size_t) (i + size);
2002 } else if ( (size_t) i < size ) {
2003 return (size_t) i;
2004 } else if (insert && ((size_t) i == size)) {
2005 return size;
2006 }
2007
2008 throw std::out_of_range("index out of range");
2009 }
2010
2011 inline size_t
slice_index(ptrdiff_t i,size_t size)2012 slice_index(ptrdiff_t i, size_t size) {
2013 if ( i < 0 ) {
2014 if ((size_t) (-i) <= size) {
2015 return (size_t) (i + size);
2016 } else {
2017 throw std::out_of_range("index out of range");
2018 }
2019 } else {
2020 return ( (size_t) i < size ) ? ((size_t) i) : size;
2021 }
2022 }
2023
2024 template <class Sequence, class Difference>
2025 inline typename Sequence::iterator
getpos(Sequence * self,Difference i)2026 getpos(Sequence* self, Difference i) {
2027 typename Sequence::iterator pos = self->begin();
2028 std::advance(pos, check_index(i,self->size()));
2029 return pos;
2030 }
2031
2032 template <class Sequence, class Difference>
2033 inline typename Sequence::const_iterator
cgetpos(const Sequence * self,Difference i)2034 cgetpos(const Sequence* self, Difference i) {
2035 typename Sequence::const_iterator pos = self->begin();
2036 std::advance(pos, check_index(i,self->size()));
2037 return pos;
2038 }
2039
2040 template <class Sequence, class Difference>
2041 inline Sequence*
getslice(const Sequence * self,Difference i,Difference j)2042 getslice(const Sequence* self, Difference i, Difference j) {
2043 typename Sequence::size_type size = self->size();
2044 typename Sequence::size_type ii = swig::check_index(i, size);
2045 typename Sequence::size_type jj = swig::slice_index(j, size);
2046
2047 if (jj > ii) {
2048 typename Sequence::const_iterator vb = self->begin();
2049 typename Sequence::const_iterator ve = self->begin();
2050 std::advance(vb,ii);
2051 std::advance(ve,jj);
2052 return new Sequence(vb, ve);
2053 } else {
2054 return new Sequence();
2055 }
2056 }
2057
2058 template <class Sequence, class Difference, class InputSeq>
2059 inline void
setslice(Sequence * self,Difference i,Difference j,const InputSeq & v)2060 setslice(Sequence* self, Difference i, Difference j, const InputSeq& v) {
2061 typename Sequence::size_type size = self->size();
2062 typename Sequence::size_type ii = swig::check_index(i, size, true);
2063 typename Sequence::size_type jj = swig::slice_index(j, size);
2064 if (jj < ii) jj = ii;
2065 size_t ssize = jj - ii;
2066 if (ssize <= v.size()) {
2067 typename Sequence::iterator sb = self->begin();
2068 typename InputSeq::const_iterator vmid = v.begin();
2069 std::advance(sb,ii);
2070 std::advance(vmid, jj - ii);
2071 self->insert(std::copy(v.begin(), vmid, sb), vmid, v.end());
2072 } else {
2073 typename Sequence::iterator sb = self->begin();
2074 typename Sequence::iterator se = self->begin();
2075 std::advance(sb,ii);
2076 std::advance(se,jj);
2077 self->erase(sb,se);
2078 self->insert(sb, v.begin(), v.end());
2079 }
2080 }
2081
2082 template <class Sequence, class Difference>
2083 inline void
delslice(Sequence * self,Difference i,Difference j)2084 delslice(Sequence* self, Difference i, Difference j) {
2085 typename Sequence::size_type size = self->size();
2086 typename Sequence::size_type ii = swig::check_index(i, size, true);
2087 typename Sequence::size_type jj = swig::slice_index(j, size);
2088 if (jj > ii) {
2089 typename Sequence::iterator sb = self->begin();
2090 typename Sequence::iterator se = self->begin();
2091 std::advance(sb,ii);
2092 std::advance(se,jj);
2093 self->erase(sb,se);
2094 }
2095 }
2096 }
2097
2098
2099 namespace swig {
2100 // vectors of doubles
2101 template <>
2102 struct traits_from_ptr<std::vector<double> > {
fromswig::traits_from_ptr2103 static SEXP from (std::vector<double > *val, int owner = 0) {
2104 SEXP result;
2105 PROTECT(result = Rf_allocVector(REALSXP, val->size()));
2106 for (unsigned pos = 0; pos < val->size(); pos++)
2107 {
2108 NUMERIC_POINTER(result)[pos] = ((*val)[pos]);
2109 }
2110 UNPROTECT(1);
2111 return(result);
2112 }
2113 };
2114 // vectors of floats
2115 template <>
2116 struct traits_from_ptr<std::vector<float> > {
fromswig::traits_from_ptr2117 static SEXP from (std::vector<float > *val, int owner = 0) {
2118 SEXP result;
2119 PROTECT(result = Rf_allocVector(REALSXP, val->size()));
2120 for (unsigned pos = 0; pos < val->size(); pos++)
2121 {
2122 NUMERIC_POINTER(result)[pos] = ((*val)[pos]);
2123 }
2124 UNPROTECT(1);
2125 return(result);
2126 }
2127 };
2128 // vectors of unsigned int
2129 template <>
2130 struct traits_from_ptr<std::vector<unsigned int> > {
fromswig::traits_from_ptr2131 static SEXP from (std::vector<unsigned int > *val, int owner = 0) {
2132 SEXP result;
2133 PROTECT(result = Rf_allocVector(INTSXP, val->size()));
2134 for (unsigned pos = 0; pos < val->size(); pos++)
2135 {
2136 INTEGER_POINTER(result)[pos] = ((*val)[pos]);
2137 }
2138 UNPROTECT(1);
2139 return(result);
2140 }
2141 };
2142 // vectors of int
2143 template <>
2144 struct traits_from_ptr<std::vector<int> > {
fromswig::traits_from_ptr2145 static SEXP from (std::vector<int > *val, int owner = 0) {
2146 SEXP result;
2147 PROTECT(result = Rf_allocVector(INTSXP, val->size()));
2148 for (unsigned pos = 0; pos < val->size(); pos++)
2149 {
2150 INTEGER_POINTER(result)[pos] = ((*val)[pos]);
2151 }
2152 UNPROTECT(1);
2153 return(result);
2154 }
2155 };
2156
2157 // vectors of bool
2158 template <>
2159 struct traits_from_ptr<std::vector<bool> > {
fromswig::traits_from_ptr2160 static SEXP from (std::vector<bool> *val, int owner = 0) {
2161 SEXP result;
2162 PROTECT(result = Rf_allocVector(LGLSXP, val->size()));
2163 for (unsigned pos = 0; pos < val->size(); pos++)
2164 {
2165 LOGICAL_POINTER(result)[pos] = ((*val)[pos]);
2166 }
2167 UNPROTECT(1);
2168 return(result);
2169 //return SWIG_R_NewPointerObj(val, type_info< std::vector<T > >(), owner);
2170 }
2171 };
2172 // vectors of strings
2173 template <>
2174 struct traits_from_ptr<std::vector<std::basic_string<char> > > {
fromswig::traits_from_ptr2175 static SEXP from (std::vector<std::basic_string<char> > *val, int owner = 0) {
2176 SEXP result;
2177 PROTECT(result = Rf_allocVector(STRSXP, val->size()));
2178 for (unsigned pos = 0; pos < val->size(); pos++)
2179 {
2180 CHARACTER_POINTER(result)[pos] = Rf_mkChar(((*val)[pos]).c_str());
2181 }
2182 UNPROTECT(1);
2183 return(result);
2184 //return SWIG_R_NewPointerObj(val, type_info< std::vector<T > >(), owner);
2185 }
2186 };
2187
2188 // catch all that does everything with vectors
2189 template <typename T>
2190 struct traits_from_ptr< std::vector< T > > {
fromswig::traits_from_ptr2191 static SEXP from (std::vector< T > *val, int owner = 0) {
2192 return SWIG_R_NewPointerObj(val, type_info< std::vector< T > >(), owner);
2193 }
2194 };
2195
2196 template <>
2197 struct traits_asptr < std::vector<double> > {
asptrswig::traits_asptr2198 static int asptr(SEXP obj, std::vector<double> **val) {
2199 std::vector<double> *p;
2200 // not sure how to check the size of the SEXP obj is correct
2201 unsigned int sexpsz = Rf_length(obj);
2202 p = new std::vector<double>(sexpsz);
2203 double *S = NUMERIC_POINTER(obj);
2204 for (unsigned pos = 0; pos < p->size(); pos++)
2205 {
2206 (*p)[pos] = static_cast<double>(S[pos]);
2207 }
2208 int res = SWIG_OK;
2209 if (SWIG_IsOK(res)) {
2210 if (val) *val = p;
2211 }
2212 return res;
2213 }
2214 };
2215
2216 template <>
2217 struct traits_asptr < std::vector<float> > {
asptrswig::traits_asptr2218 static int asptr(SEXP obj, std::vector<float> **val) {
2219 std::vector<float> *p;
2220 // not sure how to check the size of the SEXP obj is correct
2221 unsigned int sexpsz = Rf_length(obj);
2222 p = new std::vector<float>(sexpsz);
2223 double *S = NUMERIC_POINTER(obj);
2224 for (unsigned pos = 0; pos < p->size(); pos++)
2225 {
2226 (*p)[pos] = static_cast<double>(S[pos]);
2227 }
2228 int res = SWIG_OK;
2229 if (SWIG_IsOK(res)) {
2230 if (val) *val = p;
2231 }
2232 return res;
2233 }
2234 };
2235
2236 template <>
2237 struct traits_asptr < std::vector<unsigned int> > {
asptrswig::traits_asptr2238 static int asptr(SEXP obj, std::vector<unsigned int> **val) {
2239 std::vector<unsigned int> *p;
2240 unsigned int sexpsz = Rf_length(obj);
2241 p = new std::vector<unsigned int>(sexpsz);
2242 SEXP coerced;
2243 PROTECT(coerced = Rf_coerceVector(obj, INTSXP));
2244 int *S = INTEGER_POINTER(coerced);
2245 for (unsigned pos = 0; pos < p->size(); pos++)
2246 {
2247 (*p)[pos] = static_cast<unsigned int>(S[pos]);
2248 }
2249 int res = SWIG_OK;
2250 if (SWIG_IsOK(res)) {
2251 if (val) *val = p;
2252 }
2253 UNPROTECT(1);
2254 return res;
2255 }
2256 };
2257
2258 template <>
2259 struct traits_asptr < std::vector<int> > {
asptrswig::traits_asptr2260 static int asptr(SEXP obj, std::vector<int> **val) {
2261 std::vector<int> *p;
2262 // not sure how to check the size of the SEXP obj is correct
2263 int sexpsz = Rf_length(obj);
2264 p = new std::vector<int>(sexpsz);
2265 SEXP coerced;
2266 PROTECT(coerced = Rf_coerceVector(obj, INTSXP));
2267 int *S = INTEGER_POINTER(coerced);
2268 for (unsigned pos = 0; pos < p->size(); pos++)
2269 {
2270 (*p)[pos] = static_cast<int>(S[pos]);
2271 }
2272 int res = SWIG_OK;
2273 if (SWIG_IsOK(res)) {
2274 if (val) *val = p;
2275 }
2276 UNPROTECT(1);
2277 return res;
2278 }
2279 };
2280
2281 template <>
2282 struct traits_asptr < std::vector<bool> > {
asptrswig::traits_asptr2283 static int asptr(SEXP obj, std::vector<bool> **val) {
2284 std::vector<bool> *p;
2285 // not sure how to check the size of the SEXP obj is correct
2286 int sexpsz = Rf_length(obj);
2287 p = new std::vector<bool>(sexpsz);
2288 SEXP coerced;
2289 PROTECT(coerced = Rf_coerceVector(obj, LGLSXP));
2290 int *S = LOGICAL_POINTER(coerced);
2291 for (unsigned pos = 0; pos < p->size(); pos++)
2292 {
2293 (*p)[pos] = static_cast<bool>(S[pos]);
2294 }
2295 int res = SWIG_OK;
2296 if (SWIG_IsOK(res)) {
2297 if (val) *val = p;
2298 }
2299 UNPROTECT(1);
2300 return res;
2301 }
2302 };
2303
2304 // catchall for R to vector conversion
2305 template <typename T>
2306 struct traits_asptr < std::vector<T> > {
asptrswig::traits_asptr2307 static int asptr(SEXP obj, std::vector<T> **val) {
2308 std::vector<T> *p;
2309 Rprintf("my asptr\n");
2310 int res = SWIG_R_ConvertPtr(obj, (void**)&p, type_info< std::vector<T> >(), 0);
2311 if (SWIG_IsOK(res)) {
2312 if (val) *val = p;
2313 }
2314 return res;
2315 }
2316 };
2317
2318 // now for vectors of vectors. These will be represented as lists of vectors on the
2319 // catch all that does everything with vectors
2320 template <>
2321 struct traits_from_ptr<std::vector<std::vector<unsigned int> > > {
fromswig::traits_from_ptr2322 static SEXP from (std::vector< std::vector<unsigned int > > *val, int owner = 0) {
2323 SEXP result;
2324 // allocate the R list
2325 PROTECT(result = Rf_allocVector(VECSXP, val->size()));
2326 for (unsigned pos = 0; pos < val->size(); pos++)
2327 {
2328 // allocate the R vector
2329 SET_VECTOR_ELT(result, pos, Rf_allocVector(INTSXP, val->at(pos).size()));
2330 // Fill the R vector
2331 for (unsigned vpos = 0; vpos < val->at(pos).size(); ++vpos)
2332 {
2333 INTEGER_POINTER(VECTOR_ELT(result, pos))[vpos] = static_cast<int>(val->at(pos).at(vpos));
2334 }
2335 }
2336 UNPROTECT(1);
2337 return(result);
2338 }
2339 };
2340
2341 template <>
2342 struct traits_from_ptr<std::vector<std::vector<int> > > {
fromswig::traits_from_ptr2343 static SEXP from (std::vector< std::vector<int > > *val, int owner = 0) {
2344 SEXP result;
2345 // allocate the R list
2346 PROTECT(result = Rf_allocVector(VECSXP, val->size()));
2347 for (unsigned pos = 0; pos < val->size(); pos++)
2348 {
2349 // allocate the R vector
2350 SET_VECTOR_ELT(result, pos, Rf_allocVector(INTSXP, val->at(pos).size()));
2351 // Fill the R vector
2352 for (unsigned vpos = 0; vpos < val->at(pos).size(); ++vpos)
2353 {
2354 INTEGER_POINTER(VECTOR_ELT(result, pos))[vpos] = static_cast<int>(val->at(pos).at(vpos));
2355 }
2356 }
2357 UNPROTECT(1);
2358 return(result);
2359 }
2360 };
2361
2362 template <>
2363 struct traits_from_ptr<std::vector<std::vector<float> > > {
fromswig::traits_from_ptr2364 static SEXP from (std::vector< std::vector<float > > *val, int owner = 0) {
2365 SEXP result;
2366 // allocate the R list
2367 PROTECT(result = Rf_allocVector(VECSXP, val->size()));
2368 for (unsigned pos = 0; pos < val->size(); pos++)
2369 {
2370 // allocate the R vector
2371 SET_VECTOR_ELT(result, pos, Rf_allocVector(REALSXP, val->at(pos).size()));
2372 // Fill the R vector
2373 for (unsigned vpos = 0; vpos < val->at(pos).size(); ++vpos)
2374 {
2375 NUMERIC_POINTER(VECTOR_ELT(result, pos))[vpos] = static_cast<double>(val->at(pos).at(vpos));
2376 }
2377 }
2378 UNPROTECT(1);
2379 return(result);
2380 }
2381 };
2382
2383 template <>
2384 struct traits_from_ptr<std::vector<std::vector<double> > > {
fromswig::traits_from_ptr2385 static SEXP from (std::vector< std::vector<double > > *val, int owner = 0) {
2386 SEXP result;
2387 // allocate the R list
2388 PROTECT(result = Rf_allocVector(VECSXP, val->size()));
2389 for (unsigned pos = 0; pos < val->size(); pos++)
2390 {
2391 // allocate the R vector
2392 SET_VECTOR_ELT(result, pos, Rf_allocVector(REALSXP, val->at(pos).size()));
2393 // Fill the R vector
2394 for (unsigned vpos = 0; vpos < val->at(pos).size(); ++vpos)
2395 {
2396 NUMERIC_POINTER(VECTOR_ELT(result, pos))[vpos] = static_cast<double>(val->at(pos).at(vpos));
2397 }
2398 }
2399 UNPROTECT(1);
2400 return(result);
2401 }
2402 };
2403
2404 template <>
2405 struct traits_from_ptr<std::vector<std::vector<bool> > > {
fromswig::traits_from_ptr2406 static SEXP from (std::vector< std::vector<bool> > *val, int owner = 0) {
2407 SEXP result;
2408 // allocate the R list
2409 PROTECT(result = Rf_allocVector(VECSXP, val->size()));
2410 for (unsigned pos = 0; pos < val->size(); pos++)
2411 {
2412 // allocate the R vector
2413 SET_VECTOR_ELT(result, pos, Rf_allocVector(LGLSXP, val->at(pos).size()));
2414 // Fill the R vector
2415 for (unsigned vpos = 0; vpos < val->at(pos).size(); ++vpos)
2416 {
2417 LOGICAL_POINTER(VECTOR_ELT(result, pos))[vpos] = (val->at(pos).at(vpos));
2418 }
2419 }
2420 UNPROTECT(1);
2421 return(result);
2422 }
2423 };
2424
2425 template <typename T>
2426 struct traits_from_ptr< std::vector < std::vector< T > > > {
fromswig::traits_from_ptr2427 static SEXP from (std::vector < std::vector< T > > *val, int owner = 0) {
2428 return SWIG_R_NewPointerObj(val, type_info< std::vector < std::vector< T > > >(), owner);
2429 }
2430 };
2431
2432 // R side
2433 template <>
2434 struct traits_asptr < std::vector< std::vector<unsigned int> > > {
asptrswig::traits_asptr2435 static int asptr(SEXP obj, std::vector< std::vector<unsigned int> > **val) {
2436 std::vector <std::vector<unsigned int> > *p;
2437 // this is the length of the list
2438 unsigned int sexpsz = Rf_length(obj);
2439 p = new std::vector< std::vector<unsigned int> > (sexpsz);
2440
2441 for (unsigned listpos = 0; listpos < sexpsz; ++listpos)
2442 {
2443 unsigned vecsize = Rf_length(VECTOR_ELT(obj, listpos));
2444 for (unsigned vpos = 0; vpos < vecsize; ++vpos)
2445 {
2446 (*p)[listpos].push_back(static_cast<int>(INTEGER_POINTER(VECTOR_ELT(obj, listpos))[vpos]));
2447 }
2448 }
2449
2450 int res = SWIG_OK;
2451
2452 if (SWIG_IsOK(res)) {
2453 if (val) *val = p;
2454 }
2455 return res;
2456 }
2457 };
2458
2459 template <>
2460 struct traits_asptr < std::vector< std::vector< int> > > {
asptrswig::traits_asptr2461 static int asptr(SEXP obj, std::vector< std::vector< int> > **val) {
2462 std::vector <std::vector< int> > *p;
2463 // this is the length of the list
2464 unsigned int sexpsz = Rf_length(obj);
2465 p = new std::vector< std::vector< int> > (sexpsz);
2466
2467 for (unsigned listpos = 0; listpos < sexpsz; ++listpos)
2468 {
2469 unsigned vecsize = Rf_length(VECTOR_ELT(obj, listpos));
2470 for (unsigned vpos = 0; vpos < vecsize; ++vpos)
2471 {
2472 (*p)[listpos].push_back(static_cast<int>(INTEGER_POINTER(VECTOR_ELT(obj, listpos))[vpos]));
2473 }
2474 }
2475
2476 int res = SWIG_OK;
2477
2478 if (SWIG_IsOK(res)) {
2479 if (val) *val = p;
2480 }
2481 return res;
2482 }
2483 };
2484
2485 template <>
2486 struct traits_asptr < std::vector< std::vector< float> > > {
asptrswig::traits_asptr2487 static int asptr(SEXP obj, std::vector< std::vector< float> > **val) {
2488 std::vector <std::vector< float> > *p;
2489 // this is the length of the list
2490 unsigned int sexpsz = Rf_length(obj);
2491 p = new std::vector< std::vector< float> > (sexpsz);
2492
2493 for (unsigned listpos = 0; listpos < sexpsz; ++listpos)
2494 {
2495 unsigned vecsize = Rf_length(VECTOR_ELT(obj, listpos));
2496 for (unsigned vpos = 0; vpos < vecsize; ++vpos)
2497 {
2498 (*p)[listpos].push_back(static_cast<float>(NUMERIC_POINTER(VECTOR_ELT(obj, listpos))[vpos]));
2499 }
2500 }
2501
2502 int res = SWIG_OK;
2503
2504 if (SWIG_IsOK(res)) {
2505 if (val) *val = p;
2506 }
2507 return res;
2508 }
2509 };
2510
2511 template <>
2512 struct traits_asptr < std::vector< std::vector< double> > > {
asptrswig::traits_asptr2513 static int asptr(SEXP obj, std::vector< std::vector< double> > **val) {
2514 std::vector <std::vector< double> > *p;
2515 // this is the length of the list
2516 unsigned int sexpsz = Rf_length(obj);
2517 p = new std::vector< std::vector< double> > (sexpsz);
2518
2519 for (unsigned listpos = 0; listpos < sexpsz; ++listpos)
2520 {
2521 unsigned vecsize = Rf_length(VECTOR_ELT(obj, listpos));
2522 for (unsigned vpos = 0; vpos < vecsize; ++vpos)
2523 {
2524 (*p)[listpos].push_back(static_cast<double>(NUMERIC_POINTER(VECTOR_ELT(obj, listpos))[vpos]));
2525 }
2526 }
2527
2528 int res = SWIG_OK;
2529
2530 if (SWIG_IsOK(res)) {
2531 if (val) *val = p;
2532 }
2533 return res;
2534 }
2535 };
2536
2537 template <>
2538 struct traits_asptr < std::vector< std::vector< bool > > > {
asptrswig::traits_asptr2539 static int asptr(SEXP obj, std::vector< std::vector< bool> > **val) {
2540 std::vector <std::vector< bool > > *p;
2541 // this is the length of the list
2542 unsigned int sexpsz = Rf_length(obj);
2543 p = new std::vector< std::vector< bool > > (sexpsz);
2544
2545 for (unsigned listpos = 0; listpos < sexpsz; ++listpos)
2546 {
2547 unsigned vecsize = Rf_length(VECTOR_ELT(obj, listpos));
2548 for (unsigned vpos = 0; vpos < vecsize; ++vpos)
2549 {
2550 (*p)[listpos].push_back(static_cast<bool>(LOGICAL_POINTER(VECTOR_ELT(obj, listpos))[vpos]));
2551 }
2552 }
2553
2554 int res = SWIG_OK;
2555
2556 if (SWIG_IsOK(res)) {
2557 if (val) *val = p;
2558 }
2559 return res;
2560 }
2561 };
2562
2563 // catchall
2564 template <typename T>
2565 struct traits_asptr < std::vector< std::vector<T> > > {
asptrswig::traits_asptr2566 static int asptr(SEXP obj, std::vector< std::vector<T> > **val) {
2567 std::vector< std::vector<T> > *p;
2568 Rprintf("vector of vectors - unsupported content\n");
2569 int res = SWIG_R_ConvertPtr(obj, (void**)&p, type_info< std::vector< std::vector<T> > > (), 0);
2570 if (SWIG_IsOK(res)) {
2571 if (val) *val = p;
2572 }
2573 return res;
2574 }
2575 };
2576
2577 }
2578
2579
2580 namespace swig {
2581 template <> struct traits< std::vector<int> > {
2582 typedef pointer_category category;
type_nameswig::traits2583 static const char* type_name() {
2584 return"std::vector<int>";
2585 }
2586 };
2587 }
2588
std_vector_Sl_int_Sg____nonzero__(std::vector<int> const * self)2589 SWIGINTERN bool std_vector_Sl_int_Sg____nonzero__(std::vector< int > const *self){
2590 return !(self->empty());
2591 }
std_vector_Sl_int_Sg____len__(std::vector<int> const * self)2592 SWIGINTERN std::vector< int >::size_type std_vector_Sl_int_Sg____len__(std::vector< int > const *self){
2593 return self->size();
2594 }
2595
2596 SWIGINTERNINLINE SEXP
SWIG_From_long(long value)2597 SWIG_From_long (long value)
2598 {
2599 return Rf_ScalarInteger((int)value);
2600 }
2601
2602
2603 SWIGINTERNINLINE SEXP
SWIG_From_int(int value)2604 SWIG_From_int (int value)
2605 {
2606 return SWIG_From_long (value);
2607 }
2608
2609
2610 #include <limits.h>
2611 #if !defined(SWIG_NO_LLONG_MAX)
2612 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
2613 # define LLONG_MAX __LONG_LONG_MAX__
2614 # define LLONG_MIN (-LLONG_MAX - 1LL)
2615 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
2616 # endif
2617 #endif
2618
2619
2620 SWIGINTERNINLINE int
SWIG_AsVal_long(SEXP obj,long * val)2621 SWIG_AsVal_long (SEXP obj, long *val)
2622 {
2623 if (val) *val = Rf_asInteger(obj);
2624 return SWIG_OK;
2625 }
2626
2627
2628 SWIGINTERN int
SWIG_AsVal_int(SEXP obj,int * val)2629 SWIG_AsVal_int (SEXP obj, int *val)
2630 {
2631 long v;
2632 int res = SWIG_AsVal_long (obj, &v);
2633 if (SWIG_IsOK(res)) {
2634 if ((v < INT_MIN || v > INT_MAX)) {
2635 return SWIG_OverflowError;
2636 } else {
2637 if (val) *val = static_cast< int >(v);
2638 }
2639 }
2640 return res;
2641 }
2642
std_vector_Sl_int_Sg____getslice__(std::vector<int> * self,std::vector<int>::difference_type i,std::vector<int>::difference_type j)2643 SWIGINTERN std::vector< int,std::allocator< int > > *std_vector_Sl_int_Sg____getslice__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j){
2644 return swig::getslice(self, i, j);
2645 }
std_vector_Sl_int_Sg____setslice__(std::vector<int> * self,std::vector<int>::difference_type i,std::vector<int>::difference_type j,std::vector<int,std::allocator<int>> const & v)2646 SWIGINTERN void std_vector_Sl_int_Sg____setslice__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j,std::vector< int,std::allocator< int > > const &v){
2647 swig::setslice(self, i, j, v);
2648 }
std_vector_Sl_int_Sg____delslice__(std::vector<int> * self,std::vector<int>::difference_type i,std::vector<int>::difference_type j)2649 SWIGINTERN void std_vector_Sl_int_Sg____delslice__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j){
2650 swig::delslice(self, i, j);
2651 }
std_vector_Sl_int_Sg____delitem__(std::vector<int> * self,std::vector<int>::difference_type i)2652 SWIGINTERN void std_vector_Sl_int_Sg____delitem__(std::vector< int > *self,std::vector< int >::difference_type i){
2653 self->erase(swig::getpos(self,i));
2654 }
std_vector_Sl_int_Sg____getitem__(std::vector<int> const * self,std::vector<int>::difference_type i)2655 SWIGINTERN std::vector< int >::value_type const &std_vector_Sl_int_Sg____getitem__(std::vector< int > const *self,std::vector< int >::difference_type i){
2656 return *(swig::cgetpos(self, i));
2657 }
std_vector_Sl_int_Sg____setitem__(std::vector<int> * self,std::vector<int>::difference_type i,std::vector<int>::value_type const & x)2658 SWIGINTERN void std_vector_Sl_int_Sg____setitem__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::value_type const &x){
2659 *(swig::getpos(self,i)) = x;
2660 }
2661
2662 namespace swig {
2663 template <> struct traits< std::vector<unsigned int> > {
2664 typedef pointer_category category;
type_nameswig::traits2665 static const char* type_name() {
2666 return"std::vector<unsigned int>";
2667 }
2668 };
2669 }
2670
std_vector_Sl_unsigned_SS_int_Sg____nonzero__(std::vector<unsigned int> const * self)2671 SWIGINTERN bool std_vector_Sl_unsigned_SS_int_Sg____nonzero__(std::vector< unsigned int > const *self){
2672 return !(self->empty());
2673 }
std_vector_Sl_unsigned_SS_int_Sg____len__(std::vector<unsigned int> const * self)2674 SWIGINTERN std::vector< unsigned int >::size_type std_vector_Sl_unsigned_SS_int_Sg____len__(std::vector< unsigned int > const *self){
2675 return self->size();
2676 }
std_vector_Sl_unsigned_SS_int_Sg____getslice__(std::vector<unsigned int> * self,std::vector<unsigned int>::difference_type i,std::vector<unsigned int>::difference_type j)2677 SWIGINTERN std::vector< unsigned int,std::allocator< unsigned int > > *std_vector_Sl_unsigned_SS_int_Sg____getslice__(std::vector< unsigned int > *self,std::vector< unsigned int >::difference_type i,std::vector< unsigned int >::difference_type j){
2678 return swig::getslice(self, i, j);
2679 }
std_vector_Sl_unsigned_SS_int_Sg____setslice__(std::vector<unsigned int> * self,std::vector<unsigned int>::difference_type i,std::vector<unsigned int>::difference_type j,std::vector<unsigned int,std::allocator<unsigned int>> const & v)2680 SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg____setslice__(std::vector< unsigned int > *self,std::vector< unsigned int >::difference_type i,std::vector< unsigned int >::difference_type j,std::vector< unsigned int,std::allocator< unsigned int > > const &v){
2681 swig::setslice(self, i, j, v);
2682 }
std_vector_Sl_unsigned_SS_int_Sg____delslice__(std::vector<unsigned int> * self,std::vector<unsigned int>::difference_type i,std::vector<unsigned int>::difference_type j)2683 SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg____delslice__(std::vector< unsigned int > *self,std::vector< unsigned int >::difference_type i,std::vector< unsigned int >::difference_type j){
2684 swig::delslice(self, i, j);
2685 }
std_vector_Sl_unsigned_SS_int_Sg____delitem__(std::vector<unsigned int> * self,std::vector<unsigned int>::difference_type i)2686 SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg____delitem__(std::vector< unsigned int > *self,std::vector< unsigned int >::difference_type i){
2687 self->erase(swig::getpos(self,i));
2688 }
std_vector_Sl_unsigned_SS_int_Sg____getitem__(std::vector<unsigned int> const * self,std::vector<unsigned int>::difference_type i)2689 SWIGINTERN std::vector< unsigned int >::value_type const &std_vector_Sl_unsigned_SS_int_Sg____getitem__(std::vector< unsigned int > const *self,std::vector< unsigned int >::difference_type i){
2690 return *(swig::cgetpos(self, i));
2691 }
2692
2693 SWIGINTERNINLINE SEXP
SWIG_From_unsigned_SS_long(unsigned long value)2694 SWIG_From_unsigned_SS_long (unsigned long value)
2695 {
2696 return Rf_ScalarInteger((int)value);
2697 }
2698
2699
2700 SWIGINTERNINLINE SEXP
SWIG_From_unsigned_SS_int(unsigned int value)2701 SWIG_From_unsigned_SS_int (unsigned int value)
2702 {
2703 return SWIG_From_unsigned_SS_long (value);
2704 }
2705
2706
2707 SWIGINTERNINLINE int
SWIG_AsVal_unsigned_SS_long(SEXP obj,unsigned long * val)2708 SWIG_AsVal_unsigned_SS_long (SEXP obj, unsigned long *val)
2709 {
2710 if (val) *val = Rf_asInteger(obj);
2711 return SWIG_OK;
2712 }
2713
2714
2715 SWIGINTERN int
SWIG_AsVal_unsigned_SS_int(SEXP obj,unsigned int * val)2716 SWIG_AsVal_unsigned_SS_int (SEXP obj, unsigned int *val)
2717 {
2718 unsigned long v;
2719 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2720 if (SWIG_IsOK(res)) {
2721 if ((v > UINT_MAX)) {
2722 return SWIG_OverflowError;
2723 } else {
2724 if (val) *val = static_cast< unsigned int >(v);
2725 }
2726 }
2727 return res;
2728 }
2729
std_vector_Sl_unsigned_SS_int_Sg____setitem__(std::vector<unsigned int> * self,std::vector<unsigned int>::difference_type i,std::vector<unsigned int>::value_type const & x)2730 SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg____setitem__(std::vector< unsigned int > *self,std::vector< unsigned int >::difference_type i,std::vector< unsigned int >::value_type const &x){
2731 *(swig::getpos(self,i)) = x;
2732 }
2733
2734 namespace swig {
2735 template <> struct traits< std::vector< std::vector<int> > > {
2736 typedef pointer_category category;
type_nameswig::traits2737 static const char* type_name() {
2738 return"std::vector< std::vector<int> >";
2739 }
2740 };
2741 }
2742
std_vector_Sl_std_vector_Sl_int_Sg__Sg____nonzero__(std::vector<std::vector<int>> const * self)2743 SWIGINTERN bool std_vector_Sl_std_vector_Sl_int_Sg__Sg____nonzero__(std::vector< std::vector< int > > const *self){
2744 return !(self->empty());
2745 }
std_vector_Sl_std_vector_Sl_int_Sg__Sg____len__(std::vector<std::vector<int>> const * self)2746 SWIGINTERN std::vector< std::vector< int > >::size_type std_vector_Sl_std_vector_Sl_int_Sg__Sg____len__(std::vector< std::vector< int > > const *self){
2747 return self->size();
2748 }
std_vector_Sl_std_vector_Sl_int_Sg__Sg____getslice__(std::vector<std::vector<int>> * self,std::vector<std::vector<int>>::difference_type i,std::vector<std::vector<int>>::difference_type j)2749 SWIGINTERN std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *std_vector_Sl_std_vector_Sl_int_Sg__Sg____getslice__(std::vector< std::vector< int > > *self,std::vector< std::vector< int > >::difference_type i,std::vector< std::vector< int > >::difference_type j){
2750 return swig::getslice(self, i, j);
2751 }
std_vector_Sl_std_vector_Sl_int_Sg__Sg____setslice__(std::vector<std::vector<int>> * self,std::vector<std::vector<int>>::difference_type i,std::vector<std::vector<int>>::difference_type j,std::vector<std::vector<int,std::allocator<int>>,std::allocator<std::vector<int,std::allocator<int>>>> const & v)2752 SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg____setslice__(std::vector< std::vector< int > > *self,std::vector< std::vector< int > >::difference_type i,std::vector< std::vector< int > >::difference_type j,std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > const &v){
2753 swig::setslice(self, i, j, v);
2754 }
std_vector_Sl_std_vector_Sl_int_Sg__Sg____delslice__(std::vector<std::vector<int>> * self,std::vector<std::vector<int>>::difference_type i,std::vector<std::vector<int>>::difference_type j)2755 SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg____delslice__(std::vector< std::vector< int > > *self,std::vector< std::vector< int > >::difference_type i,std::vector< std::vector< int > >::difference_type j){
2756 swig::delslice(self, i, j);
2757 }
std_vector_Sl_std_vector_Sl_int_Sg__Sg____delitem__(std::vector<std::vector<int>> * self,std::vector<std::vector<int>>::difference_type i)2758 SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg____delitem__(std::vector< std::vector< int > > *self,std::vector< std::vector< int > >::difference_type i){
2759 self->erase(swig::getpos(self,i));
2760 }
std_vector_Sl_std_vector_Sl_int_Sg__Sg____getitem__(std::vector<std::vector<int>> const * self,std::vector<std::vector<int>>::difference_type i)2761 SWIGINTERN std::vector< std::vector< int > >::value_type const &std_vector_Sl_std_vector_Sl_int_Sg__Sg____getitem__(std::vector< std::vector< int > > const *self,std::vector< std::vector< int > >::difference_type i){
2762 return *(swig::cgetpos(self, i));
2763 }
std_vector_Sl_std_vector_Sl_int_Sg__Sg____setitem__(std::vector<std::vector<int>> * self,std::vector<std::vector<int>>::difference_type i,std::vector<std::vector<int>>::value_type const & x)2764 SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg____setitem__(std::vector< std::vector< int > > *self,std::vector< std::vector< int > >::difference_type i,std::vector< std::vector< int > >::value_type const &x){
2765 *(swig::getpos(self,i)) = x;
2766 }
2767
2768 namespace swig {
2769 template <> struct traits< std::vector<double> > {
2770 typedef pointer_category category;
type_nameswig::traits2771 static const char* type_name() {
2772 return"std::vector<double>";
2773 }
2774 };
2775 }
2776
std_vector_Sl_double_Sg____nonzero__(std::vector<double> const * self)2777 SWIGINTERN bool std_vector_Sl_double_Sg____nonzero__(std::vector< double > const *self){
2778 return !(self->empty());
2779 }
std_vector_Sl_double_Sg____len__(std::vector<double> const * self)2780 SWIGINTERN std::vector< double >::size_type std_vector_Sl_double_Sg____len__(std::vector< double > const *self){
2781 return self->size();
2782 }
std_vector_Sl_double_Sg____getslice__(std::vector<double> * self,std::vector<double>::difference_type i,std::vector<double>::difference_type j)2783 SWIGINTERN std::vector< double,std::allocator< double > > *std_vector_Sl_double_Sg____getslice__(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::difference_type j){
2784 return swig::getslice(self, i, j);
2785 }
std_vector_Sl_double_Sg____setslice__(std::vector<double> * self,std::vector<double>::difference_type i,std::vector<double>::difference_type j,std::vector<double,std::allocator<double>> const & v)2786 SWIGINTERN void std_vector_Sl_double_Sg____setslice__(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::difference_type j,std::vector< double,std::allocator< double > > const &v){
2787 swig::setslice(self, i, j, v);
2788 }
std_vector_Sl_double_Sg____delslice__(std::vector<double> * self,std::vector<double>::difference_type i,std::vector<double>::difference_type j)2789 SWIGINTERN void std_vector_Sl_double_Sg____delslice__(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::difference_type j){
2790 swig::delslice(self, i, j);
2791 }
std_vector_Sl_double_Sg____delitem__(std::vector<double> * self,std::vector<double>::difference_type i)2792 SWIGINTERN void std_vector_Sl_double_Sg____delitem__(std::vector< double > *self,std::vector< double >::difference_type i){
2793 self->erase(swig::getpos(self,i));
2794 }
std_vector_Sl_double_Sg____getitem__(std::vector<double> const * self,std::vector<double>::difference_type i)2795 SWIGINTERN std::vector< double >::value_type const &std_vector_Sl_double_Sg____getitem__(std::vector< double > const *self,std::vector< double >::difference_type i){
2796 return *(swig::cgetpos(self, i));
2797 }
2798
2799 SWIGINTERNINLINE SEXP
SWIG_From_double(double value)2800 SWIG_From_double (double value)
2801 {
2802 return Rf_ScalarReal(value);
2803 }
2804
2805
2806 SWIGINTERNINLINE int
SWIG_AsVal_double(SEXP obj,double * val)2807 SWIG_AsVal_double (SEXP obj, double *val)
2808 {
2809 if (val) *val = Rf_asReal(obj);
2810 return SWIG_OK;
2811 }
2812
std_vector_Sl_double_Sg____setitem__(std::vector<double> * self,std::vector<double>::difference_type i,std::vector<double>::value_type const & x)2813 SWIGINTERN void std_vector_Sl_double_Sg____setitem__(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::value_type const &x){
2814 *(swig::getpos(self,i)) = x;
2815 }
2816
2817 SWIGINTERN int
SWIG_AsVal_std_string(SEXP obj,std::string * val)2818 SWIG_AsVal_std_string (SEXP obj, std::string *val)
2819 {
2820 std::string* v = (std::string *) 0;
2821 int res = SWIG_AsPtr_std_string (obj, &v);
2822 if (!SWIG_IsOK(res)) return res;
2823 if (v) {
2824 if (val) *val = *v;
2825 if (SWIG_IsNewObj(res)) {
2826 delete v;
2827 res = SWIG_DelNewMask(res);
2828 }
2829 return res;
2830 }
2831 return SWIG_ERROR;
2832 }
2833
2834
2835 namespace swig {
2836 template <> struct traits<std::string > {
2837 typedef value_category category;
type_nameswig::traits2838 static const char* type_name() { return"std::string"; }
2839 };
2840 template <> struct traits_asval<std::string > {
2841 typedef std::string value_type;
asvalswig::traits_asval2842 static int asval(SEXP obj, value_type *val) {
2843 return SWIG_AsVal_std_string (obj, val);
2844 }
2845 };
2846 template <> struct traits_from<std::string > {
2847 typedef std::string value_type;
fromswig::traits_from2848 static SEXP from(const value_type& val) {
2849 return SWIG_From_std_string (val);
2850 }
2851 };
2852 }
2853
2854
2855 namespace swig {
2856 template <> struct traits<std::vector<std::string, std::allocator< std::string > > > {
2857 typedef pointer_category category;
type_nameswig::traits2858 static const char* type_name() {
2859 return "std::vector<" "std::string" "," "std::allocator< std::string >" " >";
2860 }
2861 };
2862 }
2863
std_vector_Sl_std_string_Sg____nonzero__(std::vector<std::string> const * self)2864 SWIGINTERN bool std_vector_Sl_std_string_Sg____nonzero__(std::vector< std::string > const *self){
2865 return !(self->empty());
2866 }
std_vector_Sl_std_string_Sg____len__(std::vector<std::string> const * self)2867 SWIGINTERN std::vector< std::string >::size_type std_vector_Sl_std_string_Sg____len__(std::vector< std::string > const *self){
2868 return self->size();
2869 }
std_vector_Sl_std_string_Sg____getslice__(std::vector<std::string> * self,std::vector<std::string>::difference_type i,std::vector<std::string>::difference_type j)2870 SWIGINTERN std::vector< std::string,std::allocator< std::string > > *std_vector_Sl_std_string_Sg____getslice__(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j){
2871 return swig::getslice(self, i, j);
2872 }
std_vector_Sl_std_string_Sg____setslice__(std::vector<std::string> * self,std::vector<std::string>::difference_type i,std::vector<std::string>::difference_type j,std::vector<std::string,std::allocator<std::string>> const & v)2873 SWIGINTERN void std_vector_Sl_std_string_Sg____setslice__(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j,std::vector< std::string,std::allocator< std::string > > const &v){
2874 swig::setslice(self, i, j, v);
2875 }
std_vector_Sl_std_string_Sg____delslice__(std::vector<std::string> * self,std::vector<std::string>::difference_type i,std::vector<std::string>::difference_type j)2876 SWIGINTERN void std_vector_Sl_std_string_Sg____delslice__(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j){
2877 swig::delslice(self, i, j);
2878 }
std_vector_Sl_std_string_Sg____delitem__(std::vector<std::string> * self,std::vector<std::string>::difference_type i)2879 SWIGINTERN void std_vector_Sl_std_string_Sg____delitem__(std::vector< std::string > *self,std::vector< std::string >::difference_type i){
2880 self->erase(swig::getpos(self,i));
2881 }
std_vector_Sl_std_string_Sg____getitem__(std::vector<std::string> const * self,std::vector<std::string>::difference_type i)2882 SWIGINTERN std::vector< std::string >::value_type const &std_vector_Sl_std_string_Sg____getitem__(std::vector< std::string > const *self,std::vector< std::string >::difference_type i){
2883 return *(swig::cgetpos(self, i));
2884 }
std_vector_Sl_std_string_Sg____setitem__(std::vector<std::string> * self,std::vector<std::string>::difference_type i,std::vector<std::string>::value_type const & x)2885 SWIGINTERN void std_vector_Sl_std_string_Sg____setitem__(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::value_type const &x){
2886 *(swig::getpos(self,i)) = x;
2887 }
2888
2889 namespace swig {
2890 template <> struct traits<OpenBabel::vector3 > {
2891 typedef pointer_category category;
type_nameswig::traits2892 static const char* type_name() { return"OpenBabel::vector3"; }
2893 };
2894 }
2895
2896
2897 namespace swig {
2898 template <> struct traits<std::vector<OpenBabel::vector3, std::allocator< OpenBabel::vector3 > > > {
2899 typedef pointer_category category;
type_nameswig::traits2900 static const char* type_name() {
2901 return "std::vector<" "OpenBabel::vector3" "," "std::allocator< OpenBabel::vector3 >" " >";
2902 }
2903 };
2904 }
2905
std_vector_Sl_OpenBabel_vector3_Sg____nonzero__(std::vector<OpenBabel::vector3> const * self)2906 SWIGINTERN bool std_vector_Sl_OpenBabel_vector3_Sg____nonzero__(std::vector< OpenBabel::vector3 > const *self){
2907 return !(self->empty());
2908 }
std_vector_Sl_OpenBabel_vector3_Sg____len__(std::vector<OpenBabel::vector3> const * self)2909 SWIGINTERN std::vector< OpenBabel::vector3 >::size_type std_vector_Sl_OpenBabel_vector3_Sg____len__(std::vector< OpenBabel::vector3 > const *self){
2910 return self->size();
2911 }
std_vector_Sl_OpenBabel_vector3_Sg____getslice__(std::vector<OpenBabel::vector3> * self,std::vector<OpenBabel::vector3>::difference_type i,std::vector<OpenBabel::vector3>::difference_type j)2912 SWIGINTERN std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > *std_vector_Sl_OpenBabel_vector3_Sg____getslice__(std::vector< OpenBabel::vector3 > *self,std::vector< OpenBabel::vector3 >::difference_type i,std::vector< OpenBabel::vector3 >::difference_type j){
2913 return swig::getslice(self, i, j);
2914 }
std_vector_Sl_OpenBabel_vector3_Sg____setslice__(std::vector<OpenBabel::vector3> * self,std::vector<OpenBabel::vector3>::difference_type i,std::vector<OpenBabel::vector3>::difference_type j,std::vector<OpenBabel::vector3,std::allocator<OpenBabel::vector3>> const & v)2915 SWIGINTERN void std_vector_Sl_OpenBabel_vector3_Sg____setslice__(std::vector< OpenBabel::vector3 > *self,std::vector< OpenBabel::vector3 >::difference_type i,std::vector< OpenBabel::vector3 >::difference_type j,std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > const &v){
2916 swig::setslice(self, i, j, v);
2917 }
std_vector_Sl_OpenBabel_vector3_Sg____delslice__(std::vector<OpenBabel::vector3> * self,std::vector<OpenBabel::vector3>::difference_type i,std::vector<OpenBabel::vector3>::difference_type j)2918 SWIGINTERN void std_vector_Sl_OpenBabel_vector3_Sg____delslice__(std::vector< OpenBabel::vector3 > *self,std::vector< OpenBabel::vector3 >::difference_type i,std::vector< OpenBabel::vector3 >::difference_type j){
2919 swig::delslice(self, i, j);
2920 }
std_vector_Sl_OpenBabel_vector3_Sg____delitem__(std::vector<OpenBabel::vector3> * self,std::vector<OpenBabel::vector3>::difference_type i)2921 SWIGINTERN void std_vector_Sl_OpenBabel_vector3_Sg____delitem__(std::vector< OpenBabel::vector3 > *self,std::vector< OpenBabel::vector3 >::difference_type i){
2922 self->erase(swig::getpos(self,i));
2923 }
std_vector_Sl_OpenBabel_vector3_Sg____getitem__(std::vector<OpenBabel::vector3> const * self,std::vector<OpenBabel::vector3>::difference_type i)2924 SWIGINTERN std::vector< OpenBabel::vector3 >::value_type const &std_vector_Sl_OpenBabel_vector3_Sg____getitem__(std::vector< OpenBabel::vector3 > const *self,std::vector< OpenBabel::vector3 >::difference_type i){
2925 return *(swig::cgetpos(self, i));
2926 }
std_vector_Sl_OpenBabel_vector3_Sg____setitem__(std::vector<OpenBabel::vector3> * self,std::vector<OpenBabel::vector3>::difference_type i,std::vector<OpenBabel::vector3>::value_type const & x)2927 SWIGINTERN void std_vector_Sl_OpenBabel_vector3_Sg____setitem__(std::vector< OpenBabel::vector3 > *self,std::vector< OpenBabel::vector3 >::difference_type i,std::vector< OpenBabel::vector3 >::value_type const &x){
2928 *(swig::getpos(self,i)) = x;
2929 }
2930
2931 namespace swig {
2932 template <> struct traits<std::vector<std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > >, std::allocator< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > > > > {
2933 typedef pointer_category category;
type_nameswig::traits2934 static const char* type_name() {
2935 return "std::vector<" "std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > >" "," "std::allocator< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > >" " >";
2936 }
2937 };
2938 }
2939
std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____nonzero__(std::vector<std::vector<OpenBabel::vector3>> const * self)2940 SWIGINTERN bool std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____nonzero__(std::vector< std::vector< OpenBabel::vector3 > > const *self){
2941 return !(self->empty());
2942 }
std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____len__(std::vector<std::vector<OpenBabel::vector3>> const * self)2943 SWIGINTERN std::vector< std::vector< OpenBabel::vector3 > >::size_type std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____len__(std::vector< std::vector< OpenBabel::vector3 > > const *self){
2944 return self->size();
2945 }
std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____getslice__(std::vector<std::vector<OpenBabel::vector3>> * self,std::vector<std::vector<OpenBabel::vector3>>::difference_type i,std::vector<std::vector<OpenBabel::vector3>>::difference_type j)2946 SWIGINTERN std::vector< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > >,std::allocator< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > > > *std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____getslice__(std::vector< std::vector< OpenBabel::vector3 > > *self,std::vector< std::vector< OpenBabel::vector3 > >::difference_type i,std::vector< std::vector< OpenBabel::vector3 > >::difference_type j){
2947 return swig::getslice(self, i, j);
2948 }
std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____setslice__(std::vector<std::vector<OpenBabel::vector3>> * self,std::vector<std::vector<OpenBabel::vector3>>::difference_type i,std::vector<std::vector<OpenBabel::vector3>>::difference_type j,std::vector<std::vector<OpenBabel::vector3,std::allocator<OpenBabel::vector3>>,std::allocator<std::vector<OpenBabel::vector3,std::allocator<OpenBabel::vector3>>>> const & v)2949 SWIGINTERN void std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____setslice__(std::vector< std::vector< OpenBabel::vector3 > > *self,std::vector< std::vector< OpenBabel::vector3 > >::difference_type i,std::vector< std::vector< OpenBabel::vector3 > >::difference_type j,std::vector< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > >,std::allocator< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > > > const &v){
2950 swig::setslice(self, i, j, v);
2951 }
std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____delslice__(std::vector<std::vector<OpenBabel::vector3>> * self,std::vector<std::vector<OpenBabel::vector3>>::difference_type i,std::vector<std::vector<OpenBabel::vector3>>::difference_type j)2952 SWIGINTERN void std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____delslice__(std::vector< std::vector< OpenBabel::vector3 > > *self,std::vector< std::vector< OpenBabel::vector3 > >::difference_type i,std::vector< std::vector< OpenBabel::vector3 > >::difference_type j){
2953 swig::delslice(self, i, j);
2954 }
std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____delitem__(std::vector<std::vector<OpenBabel::vector3>> * self,std::vector<std::vector<OpenBabel::vector3>>::difference_type i)2955 SWIGINTERN void std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____delitem__(std::vector< std::vector< OpenBabel::vector3 > > *self,std::vector< std::vector< OpenBabel::vector3 > >::difference_type i){
2956 self->erase(swig::getpos(self,i));
2957 }
std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____getitem__(std::vector<std::vector<OpenBabel::vector3>> const * self,std::vector<std::vector<OpenBabel::vector3>>::difference_type i)2958 SWIGINTERN std::vector< std::vector< OpenBabel::vector3 > >::value_type const &std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____getitem__(std::vector< std::vector< OpenBabel::vector3 > > const *self,std::vector< std::vector< OpenBabel::vector3 > >::difference_type i){
2959 return *(swig::cgetpos(self, i));
2960 }
std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____setitem__(std::vector<std::vector<OpenBabel::vector3>> * self,std::vector<std::vector<OpenBabel::vector3>>::difference_type i,std::vector<std::vector<OpenBabel::vector3>>::value_type const & x)2961 SWIGINTERN void std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____setitem__(std::vector< std::vector< OpenBabel::vector3 > > *self,std::vector< std::vector< OpenBabel::vector3 > >::difference_type i,std::vector< std::vector< OpenBabel::vector3 > >::value_type const &x){
2962 *(swig::getpos(self,i)) = x;
2963 }
2964
2965 namespace swig {
2966 template <> struct traits<OpenBabel::OBMol > {
2967 typedef pointer_category category;
type_nameswig::traits2968 static const char* type_name() { return"OpenBabel::OBMol"; }
2969 };
2970 }
2971
2972
2973 namespace swig {
2974 template <> struct traits<std::vector<OpenBabel::OBMol, std::allocator< OpenBabel::OBMol > > > {
2975 typedef pointer_category category;
type_nameswig::traits2976 static const char* type_name() {
2977 return "std::vector<" "OpenBabel::OBMol" "," "std::allocator< OpenBabel::OBMol >" " >";
2978 }
2979 };
2980 }
2981
std_vector_Sl_OpenBabel_OBMol_Sg____nonzero__(std::vector<OpenBabel::OBMol> const * self)2982 SWIGINTERN bool std_vector_Sl_OpenBabel_OBMol_Sg____nonzero__(std::vector< OpenBabel::OBMol > const *self){
2983 return !(self->empty());
2984 }
std_vector_Sl_OpenBabel_OBMol_Sg____len__(std::vector<OpenBabel::OBMol> const * self)2985 SWIGINTERN std::vector< OpenBabel::OBMol >::size_type std_vector_Sl_OpenBabel_OBMol_Sg____len__(std::vector< OpenBabel::OBMol > const *self){
2986 return self->size();
2987 }
std_vector_Sl_OpenBabel_OBMol_Sg____getslice__(std::vector<OpenBabel::OBMol> * self,std::vector<OpenBabel::OBMol>::difference_type i,std::vector<OpenBabel::OBMol>::difference_type j)2988 SWIGINTERN std::vector< OpenBabel::OBMol,std::allocator< OpenBabel::OBMol > > *std_vector_Sl_OpenBabel_OBMol_Sg____getslice__(std::vector< OpenBabel::OBMol > *self,std::vector< OpenBabel::OBMol >::difference_type i,std::vector< OpenBabel::OBMol >::difference_type j){
2989 return swig::getslice(self, i, j);
2990 }
std_vector_Sl_OpenBabel_OBMol_Sg____setslice__(std::vector<OpenBabel::OBMol> * self,std::vector<OpenBabel::OBMol>::difference_type i,std::vector<OpenBabel::OBMol>::difference_type j,std::vector<OpenBabel::OBMol,std::allocator<OpenBabel::OBMol>> const & v)2991 SWIGINTERN void std_vector_Sl_OpenBabel_OBMol_Sg____setslice__(std::vector< OpenBabel::OBMol > *self,std::vector< OpenBabel::OBMol >::difference_type i,std::vector< OpenBabel::OBMol >::difference_type j,std::vector< OpenBabel::OBMol,std::allocator< OpenBabel::OBMol > > const &v){
2992 swig::setslice(self, i, j, v);
2993 }
std_vector_Sl_OpenBabel_OBMol_Sg____delslice__(std::vector<OpenBabel::OBMol> * self,std::vector<OpenBabel::OBMol>::difference_type i,std::vector<OpenBabel::OBMol>::difference_type j)2994 SWIGINTERN void std_vector_Sl_OpenBabel_OBMol_Sg____delslice__(std::vector< OpenBabel::OBMol > *self,std::vector< OpenBabel::OBMol >::difference_type i,std::vector< OpenBabel::OBMol >::difference_type j){
2995 swig::delslice(self, i, j);
2996 }
std_vector_Sl_OpenBabel_OBMol_Sg____delitem__(std::vector<OpenBabel::OBMol> * self,std::vector<OpenBabel::OBMol>::difference_type i)2997 SWIGINTERN void std_vector_Sl_OpenBabel_OBMol_Sg____delitem__(std::vector< OpenBabel::OBMol > *self,std::vector< OpenBabel::OBMol >::difference_type i){
2998 self->erase(swig::getpos(self,i));
2999 }
std_vector_Sl_OpenBabel_OBMol_Sg____getitem__(std::vector<OpenBabel::OBMol> const * self,std::vector<OpenBabel::OBMol>::difference_type i)3000 SWIGINTERN std::vector< OpenBabel::OBMol >::value_type const &std_vector_Sl_OpenBabel_OBMol_Sg____getitem__(std::vector< OpenBabel::OBMol > const *self,std::vector< OpenBabel::OBMol >::difference_type i){
3001 return *(swig::cgetpos(self, i));
3002 }
std_vector_Sl_OpenBabel_OBMol_Sg____setitem__(std::vector<OpenBabel::OBMol> * self,std::vector<OpenBabel::OBMol>::difference_type i,std::vector<OpenBabel::OBMol>::value_type const & x)3003 SWIGINTERN void std_vector_Sl_OpenBabel_OBMol_Sg____setitem__(std::vector< OpenBabel::OBMol > *self,std::vector< OpenBabel::OBMol >::difference_type i,std::vector< OpenBabel::OBMol >::value_type const &x){
3004 *(swig::getpos(self,i)) = x;
3005 }
3006
3007 namespace swig {
3008 template <> struct traits<OpenBabel::OBBond > {
3009 typedef pointer_category category;
type_nameswig::traits3010 static const char* type_name() { return"OpenBabel::OBBond"; }
3011 };
3012 }
3013
3014
3015 namespace swig {
3016 template <> struct traits<std::vector<OpenBabel::OBBond, std::allocator< OpenBabel::OBBond > > > {
3017 typedef pointer_category category;
type_nameswig::traits3018 static const char* type_name() {
3019 return "std::vector<" "OpenBabel::OBBond" "," "std::allocator< OpenBabel::OBBond >" " >";
3020 }
3021 };
3022 }
3023
std_vector_Sl_OpenBabel_OBBond_Sg____nonzero__(std::vector<OpenBabel::OBBond> const * self)3024 SWIGINTERN bool std_vector_Sl_OpenBabel_OBBond_Sg____nonzero__(std::vector< OpenBabel::OBBond > const *self){
3025 return !(self->empty());
3026 }
std_vector_Sl_OpenBabel_OBBond_Sg____len__(std::vector<OpenBabel::OBBond> const * self)3027 SWIGINTERN std::vector< OpenBabel::OBBond >::size_type std_vector_Sl_OpenBabel_OBBond_Sg____len__(std::vector< OpenBabel::OBBond > const *self){
3028 return self->size();
3029 }
std_vector_Sl_OpenBabel_OBBond_Sg____getslice__(std::vector<OpenBabel::OBBond> * self,std::vector<OpenBabel::OBBond>::difference_type i,std::vector<OpenBabel::OBBond>::difference_type j)3030 SWIGINTERN std::vector< OpenBabel::OBBond,std::allocator< OpenBabel::OBBond > > *std_vector_Sl_OpenBabel_OBBond_Sg____getslice__(std::vector< OpenBabel::OBBond > *self,std::vector< OpenBabel::OBBond >::difference_type i,std::vector< OpenBabel::OBBond >::difference_type j){
3031 return swig::getslice(self, i, j);
3032 }
std_vector_Sl_OpenBabel_OBBond_Sg____setslice__(std::vector<OpenBabel::OBBond> * self,std::vector<OpenBabel::OBBond>::difference_type i,std::vector<OpenBabel::OBBond>::difference_type j,std::vector<OpenBabel::OBBond,std::allocator<OpenBabel::OBBond>> const & v)3033 SWIGINTERN void std_vector_Sl_OpenBabel_OBBond_Sg____setslice__(std::vector< OpenBabel::OBBond > *self,std::vector< OpenBabel::OBBond >::difference_type i,std::vector< OpenBabel::OBBond >::difference_type j,std::vector< OpenBabel::OBBond,std::allocator< OpenBabel::OBBond > > const &v){
3034 swig::setslice(self, i, j, v);
3035 }
std_vector_Sl_OpenBabel_OBBond_Sg____delslice__(std::vector<OpenBabel::OBBond> * self,std::vector<OpenBabel::OBBond>::difference_type i,std::vector<OpenBabel::OBBond>::difference_type j)3036 SWIGINTERN void std_vector_Sl_OpenBabel_OBBond_Sg____delslice__(std::vector< OpenBabel::OBBond > *self,std::vector< OpenBabel::OBBond >::difference_type i,std::vector< OpenBabel::OBBond >::difference_type j){
3037 swig::delslice(self, i, j);
3038 }
std_vector_Sl_OpenBabel_OBBond_Sg____delitem__(std::vector<OpenBabel::OBBond> * self,std::vector<OpenBabel::OBBond>::difference_type i)3039 SWIGINTERN void std_vector_Sl_OpenBabel_OBBond_Sg____delitem__(std::vector< OpenBabel::OBBond > *self,std::vector< OpenBabel::OBBond >::difference_type i){
3040 self->erase(swig::getpos(self,i));
3041 }
std_vector_Sl_OpenBabel_OBBond_Sg____getitem__(std::vector<OpenBabel::OBBond> const * self,std::vector<OpenBabel::OBBond>::difference_type i)3042 SWIGINTERN std::vector< OpenBabel::OBBond >::value_type const &std_vector_Sl_OpenBabel_OBBond_Sg____getitem__(std::vector< OpenBabel::OBBond > const *self,std::vector< OpenBabel::OBBond >::difference_type i){
3043 return *(swig::cgetpos(self, i));
3044 }
std_vector_Sl_OpenBabel_OBBond_Sg____setitem__(std::vector<OpenBabel::OBBond> * self,std::vector<OpenBabel::OBBond>::difference_type i,std::vector<OpenBabel::OBBond>::value_type const & x)3045 SWIGINTERN void std_vector_Sl_OpenBabel_OBBond_Sg____setitem__(std::vector< OpenBabel::OBBond > *self,std::vector< OpenBabel::OBBond >::difference_type i,std::vector< OpenBabel::OBBond >::value_type const &x){
3046 *(swig::getpos(self,i)) = x;
3047 }
3048
3049 namespace swig {
3050 template <> struct traits<OpenBabel::OBResidue > {
3051 typedef pointer_category category;
type_nameswig::traits3052 static const char* type_name() { return"OpenBabel::OBResidue"; }
3053 };
3054 }
3055
3056
3057 namespace swig {
3058 template <> struct traits<std::vector<OpenBabel::OBResidue, std::allocator< OpenBabel::OBResidue > > > {
3059 typedef pointer_category category;
type_nameswig::traits3060 static const char* type_name() {
3061 return "std::vector<" "OpenBabel::OBResidue" "," "std::allocator< OpenBabel::OBResidue >" " >";
3062 }
3063 };
3064 }
3065
std_vector_Sl_OpenBabel_OBResidue_Sg____nonzero__(std::vector<OpenBabel::OBResidue> const * self)3066 SWIGINTERN bool std_vector_Sl_OpenBabel_OBResidue_Sg____nonzero__(std::vector< OpenBabel::OBResidue > const *self){
3067 return !(self->empty());
3068 }
std_vector_Sl_OpenBabel_OBResidue_Sg____len__(std::vector<OpenBabel::OBResidue> const * self)3069 SWIGINTERN std::vector< OpenBabel::OBResidue >::size_type std_vector_Sl_OpenBabel_OBResidue_Sg____len__(std::vector< OpenBabel::OBResidue > const *self){
3070 return self->size();
3071 }
std_vector_Sl_OpenBabel_OBResidue_Sg____getslice__(std::vector<OpenBabel::OBResidue> * self,std::vector<OpenBabel::OBResidue>::difference_type i,std::vector<OpenBabel::OBResidue>::difference_type j)3072 SWIGINTERN std::vector< OpenBabel::OBResidue,std::allocator< OpenBabel::OBResidue > > *std_vector_Sl_OpenBabel_OBResidue_Sg____getslice__(std::vector< OpenBabel::OBResidue > *self,std::vector< OpenBabel::OBResidue >::difference_type i,std::vector< OpenBabel::OBResidue >::difference_type j){
3073 return swig::getslice(self, i, j);
3074 }
std_vector_Sl_OpenBabel_OBResidue_Sg____setslice__(std::vector<OpenBabel::OBResidue> * self,std::vector<OpenBabel::OBResidue>::difference_type i,std::vector<OpenBabel::OBResidue>::difference_type j,std::vector<OpenBabel::OBResidue,std::allocator<OpenBabel::OBResidue>> const & v)3075 SWIGINTERN void std_vector_Sl_OpenBabel_OBResidue_Sg____setslice__(std::vector< OpenBabel::OBResidue > *self,std::vector< OpenBabel::OBResidue >::difference_type i,std::vector< OpenBabel::OBResidue >::difference_type j,std::vector< OpenBabel::OBResidue,std::allocator< OpenBabel::OBResidue > > const &v){
3076 swig::setslice(self, i, j, v);
3077 }
std_vector_Sl_OpenBabel_OBResidue_Sg____delslice__(std::vector<OpenBabel::OBResidue> * self,std::vector<OpenBabel::OBResidue>::difference_type i,std::vector<OpenBabel::OBResidue>::difference_type j)3078 SWIGINTERN void std_vector_Sl_OpenBabel_OBResidue_Sg____delslice__(std::vector< OpenBabel::OBResidue > *self,std::vector< OpenBabel::OBResidue >::difference_type i,std::vector< OpenBabel::OBResidue >::difference_type j){
3079 swig::delslice(self, i, j);
3080 }
std_vector_Sl_OpenBabel_OBResidue_Sg____delitem__(std::vector<OpenBabel::OBResidue> * self,std::vector<OpenBabel::OBResidue>::difference_type i)3081 SWIGINTERN void std_vector_Sl_OpenBabel_OBResidue_Sg____delitem__(std::vector< OpenBabel::OBResidue > *self,std::vector< OpenBabel::OBResidue >::difference_type i){
3082 self->erase(swig::getpos(self,i));
3083 }
std_vector_Sl_OpenBabel_OBResidue_Sg____getitem__(std::vector<OpenBabel::OBResidue> const * self,std::vector<OpenBabel::OBResidue>::difference_type i)3084 SWIGINTERN std::vector< OpenBabel::OBResidue >::value_type const &std_vector_Sl_OpenBabel_OBResidue_Sg____getitem__(std::vector< OpenBabel::OBResidue > const *self,std::vector< OpenBabel::OBResidue >::difference_type i){
3085 return *(swig::cgetpos(self, i));
3086 }
std_vector_Sl_OpenBabel_OBResidue_Sg____setitem__(std::vector<OpenBabel::OBResidue> * self,std::vector<OpenBabel::OBResidue>::difference_type i,std::vector<OpenBabel::OBResidue>::value_type const & x)3087 SWIGINTERN void std_vector_Sl_OpenBabel_OBResidue_Sg____setitem__(std::vector< OpenBabel::OBResidue > *self,std::vector< OpenBabel::OBResidue >::difference_type i,std::vector< OpenBabel::OBResidue >::value_type const &x){
3088 *(swig::getpos(self,i)) = x;
3089 }
3090
3091 namespace swig {
3092 template <> struct traits<OpenBabel::OBRing > {
3093 typedef pointer_category category;
type_nameswig::traits3094 static const char* type_name() { return"OpenBabel::OBRing"; }
3095 };
3096 }
3097
3098
3099 namespace swig {
3100 template <> struct traits<std::vector<OpenBabel::OBRing, std::allocator< OpenBabel::OBRing > > > {
3101 typedef pointer_category category;
type_nameswig::traits3102 static const char* type_name() {
3103 return "std::vector<" "OpenBabel::OBRing" "," "std::allocator< OpenBabel::OBRing >" " >";
3104 }
3105 };
3106 }
3107
std_vector_Sl_OpenBabel_OBRing_Sg____nonzero__(std::vector<OpenBabel::OBRing> const * self)3108 SWIGINTERN bool std_vector_Sl_OpenBabel_OBRing_Sg____nonzero__(std::vector< OpenBabel::OBRing > const *self){
3109 return !(self->empty());
3110 }
std_vector_Sl_OpenBabel_OBRing_Sg____len__(std::vector<OpenBabel::OBRing> const * self)3111 SWIGINTERN std::vector< OpenBabel::OBRing >::size_type std_vector_Sl_OpenBabel_OBRing_Sg____len__(std::vector< OpenBabel::OBRing > const *self){
3112 return self->size();
3113 }
std_vector_Sl_OpenBabel_OBRing_Sg____getslice__(std::vector<OpenBabel::OBRing> * self,std::vector<OpenBabel::OBRing>::difference_type i,std::vector<OpenBabel::OBRing>::difference_type j)3114 SWIGINTERN std::vector< OpenBabel::OBRing,std::allocator< OpenBabel::OBRing > > *std_vector_Sl_OpenBabel_OBRing_Sg____getslice__(std::vector< OpenBabel::OBRing > *self,std::vector< OpenBabel::OBRing >::difference_type i,std::vector< OpenBabel::OBRing >::difference_type j){
3115 return swig::getslice(self, i, j);
3116 }
std_vector_Sl_OpenBabel_OBRing_Sg____setslice__(std::vector<OpenBabel::OBRing> * self,std::vector<OpenBabel::OBRing>::difference_type i,std::vector<OpenBabel::OBRing>::difference_type j,std::vector<OpenBabel::OBRing,std::allocator<OpenBabel::OBRing>> const & v)3117 SWIGINTERN void std_vector_Sl_OpenBabel_OBRing_Sg____setslice__(std::vector< OpenBabel::OBRing > *self,std::vector< OpenBabel::OBRing >::difference_type i,std::vector< OpenBabel::OBRing >::difference_type j,std::vector< OpenBabel::OBRing,std::allocator< OpenBabel::OBRing > > const &v){
3118 swig::setslice(self, i, j, v);
3119 }
std_vector_Sl_OpenBabel_OBRing_Sg____delslice__(std::vector<OpenBabel::OBRing> * self,std::vector<OpenBabel::OBRing>::difference_type i,std::vector<OpenBabel::OBRing>::difference_type j)3120 SWIGINTERN void std_vector_Sl_OpenBabel_OBRing_Sg____delslice__(std::vector< OpenBabel::OBRing > *self,std::vector< OpenBabel::OBRing >::difference_type i,std::vector< OpenBabel::OBRing >::difference_type j){
3121 swig::delslice(self, i, j);
3122 }
std_vector_Sl_OpenBabel_OBRing_Sg____delitem__(std::vector<OpenBabel::OBRing> * self,std::vector<OpenBabel::OBRing>::difference_type i)3123 SWIGINTERN void std_vector_Sl_OpenBabel_OBRing_Sg____delitem__(std::vector< OpenBabel::OBRing > *self,std::vector< OpenBabel::OBRing >::difference_type i){
3124 self->erase(swig::getpos(self,i));
3125 }
std_vector_Sl_OpenBabel_OBRing_Sg____getitem__(std::vector<OpenBabel::OBRing> const * self,std::vector<OpenBabel::OBRing>::difference_type i)3126 SWIGINTERN std::vector< OpenBabel::OBRing >::value_type const &std_vector_Sl_OpenBabel_OBRing_Sg____getitem__(std::vector< OpenBabel::OBRing > const *self,std::vector< OpenBabel::OBRing >::difference_type i){
3127 return *(swig::cgetpos(self, i));
3128 }
std_vector_Sl_OpenBabel_OBRing_Sg____setitem__(std::vector<OpenBabel::OBRing> * self,std::vector<OpenBabel::OBRing>::difference_type i,std::vector<OpenBabel::OBRing>::value_type const & x)3129 SWIGINTERN void std_vector_Sl_OpenBabel_OBRing_Sg____setitem__(std::vector< OpenBabel::OBRing > *self,std::vector< OpenBabel::OBRing >::difference_type i,std::vector< OpenBabel::OBRing >::value_type const &x){
3130 *(swig::getpos(self,i)) = x;
3131 }
3132
3133 namespace swig {
3134 template <> struct traits<std::vector<OpenBabel::OBRing*, std::allocator< OpenBabel::OBRing * > > > {
3135 typedef value_category category;
type_nameswig::traits3136 static const char* type_name() {
3137 return "std::vector<" "OpenBabel::OBRing" " *," "std::allocator< OpenBabel::OBRing * >" " >";
3138 }
3139 };
3140 }
3141
std_vector_Sl_OpenBabel_OBRing_Sm__Sg____nonzero__(std::vector<OpenBabel::OBRing * > const * self)3142 SWIGINTERN bool std_vector_Sl_OpenBabel_OBRing_Sm__Sg____nonzero__(std::vector< OpenBabel::OBRing * > const *self){
3143 return !(self->empty());
3144 }
std_vector_Sl_OpenBabel_OBRing_Sm__Sg____len__(std::vector<OpenBabel::OBRing * > const * self)3145 SWIGINTERN std::vector< OpenBabel::OBRing * >::size_type std_vector_Sl_OpenBabel_OBRing_Sm__Sg____len__(std::vector< OpenBabel::OBRing * > const *self){
3146 return self->size();
3147 }
std_vector_Sl_OpenBabel_OBRing_Sm__Sg____getslice__(std::vector<OpenBabel::OBRing * > * self,std::vector<OpenBabel::OBRing * >::difference_type i,std::vector<OpenBabel::OBRing * >::difference_type j)3148 SWIGINTERN std::vector< OpenBabel::OBRing *,std::allocator< OpenBabel::OBRing * > > *std_vector_Sl_OpenBabel_OBRing_Sm__Sg____getslice__(std::vector< OpenBabel::OBRing * > *self,std::vector< OpenBabel::OBRing * >::difference_type i,std::vector< OpenBabel::OBRing * >::difference_type j){
3149 return swig::getslice(self, i, j);
3150 }
std_vector_Sl_OpenBabel_OBRing_Sm__Sg____setslice__(std::vector<OpenBabel::OBRing * > * self,std::vector<OpenBabel::OBRing * >::difference_type i,std::vector<OpenBabel::OBRing * >::difference_type j,std::vector<OpenBabel::OBRing *,std::allocator<OpenBabel::OBRing * >> const & v)3151 SWIGINTERN void std_vector_Sl_OpenBabel_OBRing_Sm__Sg____setslice__(std::vector< OpenBabel::OBRing * > *self,std::vector< OpenBabel::OBRing * >::difference_type i,std::vector< OpenBabel::OBRing * >::difference_type j,std::vector< OpenBabel::OBRing *,std::allocator< OpenBabel::OBRing * > > const &v){
3152 swig::setslice(self, i, j, v);
3153 }
std_vector_Sl_OpenBabel_OBRing_Sm__Sg____delslice__(std::vector<OpenBabel::OBRing * > * self,std::vector<OpenBabel::OBRing * >::difference_type i,std::vector<OpenBabel::OBRing * >::difference_type j)3154 SWIGINTERN void std_vector_Sl_OpenBabel_OBRing_Sm__Sg____delslice__(std::vector< OpenBabel::OBRing * > *self,std::vector< OpenBabel::OBRing * >::difference_type i,std::vector< OpenBabel::OBRing * >::difference_type j){
3155 swig::delslice(self, i, j);
3156 }
std_vector_Sl_OpenBabel_OBRing_Sm__Sg____delitem__(std::vector<OpenBabel::OBRing * > * self,std::vector<OpenBabel::OBRing * >::difference_type i)3157 SWIGINTERN void std_vector_Sl_OpenBabel_OBRing_Sm__Sg____delitem__(std::vector< OpenBabel::OBRing * > *self,std::vector< OpenBabel::OBRing * >::difference_type i){
3158 self->erase(swig::getpos(self,i));
3159 }
std_vector_Sl_OpenBabel_OBRing_Sm__Sg____getitem__(std::vector<OpenBabel::OBRing * > * self,std::vector<OpenBabel::OBRing * >::difference_type i)3160 SWIGINTERN std::vector< OpenBabel::OBRing * >::value_type std_vector_Sl_OpenBabel_OBRing_Sm__Sg____getitem__(std::vector< OpenBabel::OBRing * > *self,std::vector< OpenBabel::OBRing * >::difference_type i){
3161 return *(swig::cgetpos(self, i));
3162 }
std_vector_Sl_OpenBabel_OBRing_Sm__Sg____setitem__(std::vector<OpenBabel::OBRing * > * self,std::vector<OpenBabel::OBRing * >::difference_type i,std::vector<OpenBabel::OBRing * >::value_type x)3163 SWIGINTERN void std_vector_Sl_OpenBabel_OBRing_Sm__Sg____setitem__(std::vector< OpenBabel::OBRing * > *self,std::vector< OpenBabel::OBRing * >::difference_type i,std::vector< OpenBabel::OBRing * >::value_type x){
3164 *(swig::getpos(self,i)) = x;
3165 }
3166
3167 namespace swig {
3168 template <> struct traits<OpenBabel::OBGenericData > {
3169 typedef pointer_category category;
type_nameswig::traits3170 static const char* type_name() { return"OpenBabel::OBGenericData"; }
3171 };
3172 }
3173
3174
3175 namespace swig {
3176 template <> struct traits<std::vector<OpenBabel::OBGenericData*, std::allocator< OpenBabel::OBGenericData * > > > {
3177 typedef value_category category;
type_nameswig::traits3178 static const char* type_name() {
3179 return "std::vector<" "OpenBabel::OBGenericData" " *," "std::allocator< OpenBabel::OBGenericData * >" " >";
3180 }
3181 };
3182 }
3183
std_vector_Sl_OpenBabel_OBGenericData_Sm__Sg____nonzero__(std::vector<OpenBabel::OBGenericData * > const * self)3184 SWIGINTERN bool std_vector_Sl_OpenBabel_OBGenericData_Sm__Sg____nonzero__(std::vector< OpenBabel::OBGenericData * > const *self){
3185 return !(self->empty());
3186 }
std_vector_Sl_OpenBabel_OBGenericData_Sm__Sg____len__(std::vector<OpenBabel::OBGenericData * > const * self)3187 SWIGINTERN std::vector< OpenBabel::OBGenericData * >::size_type std_vector_Sl_OpenBabel_OBGenericData_Sm__Sg____len__(std::vector< OpenBabel::OBGenericData * > const *self){
3188 return self->size();
3189 }
std_vector_Sl_OpenBabel_OBGenericData_Sm__Sg____getslice__(std::vector<OpenBabel::OBGenericData * > * self,std::vector<OpenBabel::OBGenericData * >::difference_type i,std::vector<OpenBabel::OBGenericData * >::difference_type j)3190 SWIGINTERN std::vector< OpenBabel::OBGenericData *,std::allocator< OpenBabel::OBGenericData * > > *std_vector_Sl_OpenBabel_OBGenericData_Sm__Sg____getslice__(std::vector< OpenBabel::OBGenericData * > *self,std::vector< OpenBabel::OBGenericData * >::difference_type i,std::vector< OpenBabel::OBGenericData * >::difference_type j){
3191 return swig::getslice(self, i, j);
3192 }
std_vector_Sl_OpenBabel_OBGenericData_Sm__Sg____setslice__(std::vector<OpenBabel::OBGenericData * > * self,std::vector<OpenBabel::OBGenericData * >::difference_type i,std::vector<OpenBabel::OBGenericData * >::difference_type j,std::vector<OpenBabel::OBGenericData *,std::allocator<OpenBabel::OBGenericData * >> const & v)3193 SWIGINTERN void std_vector_Sl_OpenBabel_OBGenericData_Sm__Sg____setslice__(std::vector< OpenBabel::OBGenericData * > *self,std::vector< OpenBabel::OBGenericData * >::difference_type i,std::vector< OpenBabel::OBGenericData * >::difference_type j,std::vector< OpenBabel::OBGenericData *,std::allocator< OpenBabel::OBGenericData * > > const &v){
3194 swig::setslice(self, i, j, v);
3195 }
std_vector_Sl_OpenBabel_OBGenericData_Sm__Sg____delslice__(std::vector<OpenBabel::OBGenericData * > * self,std::vector<OpenBabel::OBGenericData * >::difference_type i,std::vector<OpenBabel::OBGenericData * >::difference_type j)3196 SWIGINTERN void std_vector_Sl_OpenBabel_OBGenericData_Sm__Sg____delslice__(std::vector< OpenBabel::OBGenericData * > *self,std::vector< OpenBabel::OBGenericData * >::difference_type i,std::vector< OpenBabel::OBGenericData * >::difference_type j){
3197 swig::delslice(self, i, j);
3198 }
std_vector_Sl_OpenBabel_OBGenericData_Sm__Sg____delitem__(std::vector<OpenBabel::OBGenericData * > * self,std::vector<OpenBabel::OBGenericData * >::difference_type i)3199 SWIGINTERN void std_vector_Sl_OpenBabel_OBGenericData_Sm__Sg____delitem__(std::vector< OpenBabel::OBGenericData * > *self,std::vector< OpenBabel::OBGenericData * >::difference_type i){
3200 self->erase(swig::getpos(self,i));
3201 }
std_vector_Sl_OpenBabel_OBGenericData_Sm__Sg____getitem__(std::vector<OpenBabel::OBGenericData * > * self,std::vector<OpenBabel::OBGenericData * >::difference_type i)3202 SWIGINTERN std::vector< OpenBabel::OBGenericData * >::value_type std_vector_Sl_OpenBabel_OBGenericData_Sm__Sg____getitem__(std::vector< OpenBabel::OBGenericData * > *self,std::vector< OpenBabel::OBGenericData * >::difference_type i){
3203 return *(swig::cgetpos(self, i));
3204 }
std_vector_Sl_OpenBabel_OBGenericData_Sm__Sg____setitem__(std::vector<OpenBabel::OBGenericData * > * self,std::vector<OpenBabel::OBGenericData * >::difference_type i,std::vector<OpenBabel::OBGenericData * >::value_type x)3205 SWIGINTERN void std_vector_Sl_OpenBabel_OBGenericData_Sm__Sg____setitem__(std::vector< OpenBabel::OBGenericData * > *self,std::vector< OpenBabel::OBGenericData * >::difference_type i,std::vector< OpenBabel::OBGenericData * >::value_type x){
3206 *(swig::getpos(self,i)) = x;
3207 }
3208
3209 namespace swig {
3210 template <> struct traits<OpenBabel::OBInternalCoord > {
3211 typedef pointer_category category;
type_nameswig::traits3212 static const char* type_name() { return"OpenBabel::OBInternalCoord"; }
3213 };
3214 }
3215
3216
3217 namespace swig {
3218 template <> struct traits<std::vector<OpenBabel::OBInternalCoord*, std::allocator< OpenBabel::OBInternalCoord * > > > {
3219 typedef value_category category;
type_nameswig::traits3220 static const char* type_name() {
3221 return "std::vector<" "OpenBabel::OBInternalCoord" " *," "std::allocator< OpenBabel::OBInternalCoord * >" " >";
3222 }
3223 };
3224 }
3225
std_vector_Sl_OpenBabel_OBInternalCoord_Sm__Sg____nonzero__(std::vector<OpenBabel::OBInternalCoord * > const * self)3226 SWIGINTERN bool std_vector_Sl_OpenBabel_OBInternalCoord_Sm__Sg____nonzero__(std::vector< OpenBabel::OBInternalCoord * > const *self){
3227 return !(self->empty());
3228 }
std_vector_Sl_OpenBabel_OBInternalCoord_Sm__Sg____len__(std::vector<OpenBabel::OBInternalCoord * > const * self)3229 SWIGINTERN std::vector< OpenBabel::OBInternalCoord * >::size_type std_vector_Sl_OpenBabel_OBInternalCoord_Sm__Sg____len__(std::vector< OpenBabel::OBInternalCoord * > const *self){
3230 return self->size();
3231 }
std_vector_Sl_OpenBabel_OBInternalCoord_Sm__Sg____getslice__(std::vector<OpenBabel::OBInternalCoord * > * self,std::vector<OpenBabel::OBInternalCoord * >::difference_type i,std::vector<OpenBabel::OBInternalCoord * >::difference_type j)3232 SWIGINTERN std::vector< OpenBabel::OBInternalCoord *,std::allocator< OpenBabel::OBInternalCoord * > > *std_vector_Sl_OpenBabel_OBInternalCoord_Sm__Sg____getslice__(std::vector< OpenBabel::OBInternalCoord * > *self,std::vector< OpenBabel::OBInternalCoord * >::difference_type i,std::vector< OpenBabel::OBInternalCoord * >::difference_type j){
3233 return swig::getslice(self, i, j);
3234 }
std_vector_Sl_OpenBabel_OBInternalCoord_Sm__Sg____setslice__(std::vector<OpenBabel::OBInternalCoord * > * self,std::vector<OpenBabel::OBInternalCoord * >::difference_type i,std::vector<OpenBabel::OBInternalCoord * >::difference_type j,std::vector<OpenBabel::OBInternalCoord *,std::allocator<OpenBabel::OBInternalCoord * >> const & v)3235 SWIGINTERN void std_vector_Sl_OpenBabel_OBInternalCoord_Sm__Sg____setslice__(std::vector< OpenBabel::OBInternalCoord * > *self,std::vector< OpenBabel::OBInternalCoord * >::difference_type i,std::vector< OpenBabel::OBInternalCoord * >::difference_type j,std::vector< OpenBabel::OBInternalCoord *,std::allocator< OpenBabel::OBInternalCoord * > > const &v){
3236 swig::setslice(self, i, j, v);
3237 }
std_vector_Sl_OpenBabel_OBInternalCoord_Sm__Sg____delslice__(std::vector<OpenBabel::OBInternalCoord * > * self,std::vector<OpenBabel::OBInternalCoord * >::difference_type i,std::vector<OpenBabel::OBInternalCoord * >::difference_type j)3238 SWIGINTERN void std_vector_Sl_OpenBabel_OBInternalCoord_Sm__Sg____delslice__(std::vector< OpenBabel::OBInternalCoord * > *self,std::vector< OpenBabel::OBInternalCoord * >::difference_type i,std::vector< OpenBabel::OBInternalCoord * >::difference_type j){
3239 swig::delslice(self, i, j);
3240 }
std_vector_Sl_OpenBabel_OBInternalCoord_Sm__Sg____delitem__(std::vector<OpenBabel::OBInternalCoord * > * self,std::vector<OpenBabel::OBInternalCoord * >::difference_type i)3241 SWIGINTERN void std_vector_Sl_OpenBabel_OBInternalCoord_Sm__Sg____delitem__(std::vector< OpenBabel::OBInternalCoord * > *self,std::vector< OpenBabel::OBInternalCoord * >::difference_type i){
3242 self->erase(swig::getpos(self,i));
3243 }
std_vector_Sl_OpenBabel_OBInternalCoord_Sm__Sg____getitem__(std::vector<OpenBabel::OBInternalCoord * > * self,std::vector<OpenBabel::OBInternalCoord * >::difference_type i)3244 SWIGINTERN std::vector< OpenBabel::OBInternalCoord * >::value_type std_vector_Sl_OpenBabel_OBInternalCoord_Sm__Sg____getitem__(std::vector< OpenBabel::OBInternalCoord * > *self,std::vector< OpenBabel::OBInternalCoord * >::difference_type i){
3245 return *(swig::cgetpos(self, i));
3246 }
std_vector_Sl_OpenBabel_OBInternalCoord_Sm__Sg____setitem__(std::vector<OpenBabel::OBInternalCoord * > * self,std::vector<OpenBabel::OBInternalCoord * >::difference_type i,std::vector<OpenBabel::OBInternalCoord * >::value_type x)3247 SWIGINTERN void std_vector_Sl_OpenBabel_OBInternalCoord_Sm__Sg____setitem__(std::vector< OpenBabel::OBInternalCoord * > *self,std::vector< OpenBabel::OBInternalCoord * >::difference_type i,std::vector< OpenBabel::OBInternalCoord * >::value_type x){
3248 *(swig::getpos(self,i)) = x;
3249 }
3250
3251 namespace swig {
3252 template <> struct traits<unsigned int > {
3253 typedef value_category category;
type_nameswig::traits3254 static const char* type_name() { return"unsigned int"; }
3255 };
3256 template <> struct traits_asval<unsigned int > {
3257 typedef unsigned int value_type;
asvalswig::traits_asval3258 static int asval(SEXP obj, value_type *val) {
3259 return SWIG_AsVal_unsigned_SS_int (obj, val);
3260 }
3261 };
3262 template <> struct traits_from<unsigned int > {
3263 typedef unsigned int value_type;
fromswig::traits_from3264 static SEXP from(const value_type& val) {
3265 return SWIG_From_unsigned_SS_int (val);
3266 }
3267 };
3268 }
3269
3270
3271
3272
3273 namespace swig {
3274 template <> struct traits<std::pair<unsigned int,unsigned int > > {
3275 typedef pointer_category category;
type_nameswig::traits3276 static const char* type_name() {
3277 return "std::pair<" "unsigned int" "," "unsigned int" " >";
3278 }
3279 };
3280 }
3281
3282
3283 namespace swig {
3284 template <> struct traits<std::vector<std::pair< unsigned int,unsigned int >, std::allocator< std::pair< unsigned int,unsigned int > > > > {
3285 typedef pointer_category category;
type_nameswig::traits3286 static const char* type_name() {
3287 return "std::vector<" "std::pair< unsigned int,unsigned int >" "," "std::allocator< std::pair< unsigned int,unsigned int > >" " >";
3288 }
3289 };
3290 }
3291
std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg____nonzero__(std::vector<std::pair<unsigned int,unsigned int>> const * self)3292 SWIGINTERN bool std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg____nonzero__(std::vector< std::pair< unsigned int,unsigned int > > const *self){
3293 return !(self->empty());
3294 }
std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg____len__(std::vector<std::pair<unsigned int,unsigned int>> const * self)3295 SWIGINTERN std::vector< std::pair< unsigned int,unsigned int > >::size_type std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg____len__(std::vector< std::pair< unsigned int,unsigned int > > const *self){
3296 return self->size();
3297 }
std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg____getslice__(std::vector<std::pair<unsigned int,unsigned int>> * self,std::vector<std::pair<unsigned int,unsigned int>>::difference_type i,std::vector<std::pair<unsigned int,unsigned int>>::difference_type j)3298 SWIGINTERN std::vector< std::pair< unsigned int,unsigned int >,std::allocator< std::pair< unsigned int,unsigned int > > > *std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg____getslice__(std::vector< std::pair< unsigned int,unsigned int > > *self,std::vector< std::pair< unsigned int,unsigned int > >::difference_type i,std::vector< std::pair< unsigned int,unsigned int > >::difference_type j){
3299 return swig::getslice(self, i, j);
3300 }
std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg____setslice__(std::vector<std::pair<unsigned int,unsigned int>> * self,std::vector<std::pair<unsigned int,unsigned int>>::difference_type i,std::vector<std::pair<unsigned int,unsigned int>>::difference_type j,std::vector<std::pair<unsigned int,unsigned int>,std::allocator<std::pair<unsigned int,unsigned int>>> const & v)3301 SWIGINTERN void std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg____setslice__(std::vector< std::pair< unsigned int,unsigned int > > *self,std::vector< std::pair< unsigned int,unsigned int > >::difference_type i,std::vector< std::pair< unsigned int,unsigned int > >::difference_type j,std::vector< std::pair< unsigned int,unsigned int >,std::allocator< std::pair< unsigned int,unsigned int > > > const &v){
3302 swig::setslice(self, i, j, v);
3303 }
std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg____delslice__(std::vector<std::pair<unsigned int,unsigned int>> * self,std::vector<std::pair<unsigned int,unsigned int>>::difference_type i,std::vector<std::pair<unsigned int,unsigned int>>::difference_type j)3304 SWIGINTERN void std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg____delslice__(std::vector< std::pair< unsigned int,unsigned int > > *self,std::vector< std::pair< unsigned int,unsigned int > >::difference_type i,std::vector< std::pair< unsigned int,unsigned int > >::difference_type j){
3305 swig::delslice(self, i, j);
3306 }
std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg____delitem__(std::vector<std::pair<unsigned int,unsigned int>> * self,std::vector<std::pair<unsigned int,unsigned int>>::difference_type i)3307 SWIGINTERN void std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg____delitem__(std::vector< std::pair< unsigned int,unsigned int > > *self,std::vector< std::pair< unsigned int,unsigned int > >::difference_type i){
3308 self->erase(swig::getpos(self,i));
3309 }
std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg____getitem__(std::vector<std::pair<unsigned int,unsigned int>> const * self,std::vector<std::pair<unsigned int,unsigned int>>::difference_type i)3310 SWIGINTERN std::vector< std::pair< unsigned int,unsigned int > >::value_type const &std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg____getitem__(std::vector< std::pair< unsigned int,unsigned int > > const *self,std::vector< std::pair< unsigned int,unsigned int > >::difference_type i){
3311 return *(swig::cgetpos(self, i));
3312 }
std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg____setitem__(std::vector<std::pair<unsigned int,unsigned int>> * self,std::vector<std::pair<unsigned int,unsigned int>>::difference_type i,std::vector<std::pair<unsigned int,unsigned int>>::value_type const & x)3313 SWIGINTERN void std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg____setitem__(std::vector< std::pair< unsigned int,unsigned int > > *self,std::vector< std::pair< unsigned int,unsigned int > >::difference_type i,std::vector< std::pair< unsigned int,unsigned int > >::value_type const &x){
3314 *(swig::getpos(self,i)) = x;
3315 }
3316
3317 namespace swig {
3318 template <> struct traits<std::vector<std::vector< std::pair< unsigned int,unsigned int >,std::allocator< std::pair< unsigned int,unsigned int > > >, std::allocator< std::vector< std::pair< unsigned int,unsigned int >,std::allocator< std::pair< unsigned int,unsigned int > > > > > > {
3319 typedef pointer_category category;
type_nameswig::traits3320 static const char* type_name() {
3321 return "std::vector<" "std::vector< std::pair< unsigned int,unsigned int >,std::allocator< std::pair< unsigned int,unsigned int > > >" "," "std::allocator< std::vector< std::pair< unsigned int,unsigned int >,std::allocator< std::pair< unsigned int,unsigned int > > > >" " >";
3322 }
3323 };
3324 }
3325
std_vector_Sl_std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg__Sg____nonzero__(std::vector<std::vector<std::pair<unsigned int,unsigned int>>> const * self)3326 SWIGINTERN bool std_vector_Sl_std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg__Sg____nonzero__(std::vector< std::vector< std::pair< unsigned int,unsigned int > > > const *self){
3327 return !(self->empty());
3328 }
std_vector_Sl_std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg__Sg____len__(std::vector<std::vector<std::pair<unsigned int,unsigned int>>> const * self)3329 SWIGINTERN std::vector< std::vector< std::pair< unsigned int,unsigned int > > >::size_type std_vector_Sl_std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg__Sg____len__(std::vector< std::vector< std::pair< unsigned int,unsigned int > > > const *self){
3330 return self->size();
3331 }
std_vector_Sl_std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg__Sg__pop(std::vector<std::vector<std::pair<unsigned int,unsigned int>>> * self)3332 SWIGINTERN std::vector< std::vector< std::pair< unsigned int,unsigned int > > >::value_type std_vector_Sl_std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg__Sg__pop(std::vector< std::vector< std::pair< unsigned int,unsigned int > > > *self){
3333 if (self->size() == 0)
3334 throw std::out_of_range("pop from empty container");
3335 std::vector<std::vector< std::pair< unsigned int,unsigned int >,std::allocator< std::pair< unsigned int,unsigned int > > >,std::allocator< std::vector< std::pair< unsigned int,unsigned int >,std::allocator< std::pair< unsigned int,unsigned int > > > > >::value_type x = self->back();
3336 self->pop_back();
3337 return x;
3338 }
std_vector_Sl_std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg__Sg____getslice__(std::vector<std::vector<std::pair<unsigned int,unsigned int>>> * self,std::vector<std::vector<std::pair<unsigned int,unsigned int>>>::difference_type i,std::vector<std::vector<std::pair<unsigned int,unsigned int>>>::difference_type j)3339 SWIGINTERN std::vector< std::vector< std::pair< unsigned int,unsigned int >,std::allocator< std::pair< unsigned int,unsigned int > > >,std::allocator< std::vector< std::pair< unsigned int,unsigned int >,std::allocator< std::pair< unsigned int,unsigned int > > > > > *std_vector_Sl_std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg__Sg____getslice__(std::vector< std::vector< std::pair< unsigned int,unsigned int > > > *self,std::vector< std::vector< std::pair< unsigned int,unsigned int > > >::difference_type i,std::vector< std::vector< std::pair< unsigned int,unsigned int > > >::difference_type j){
3340 return swig::getslice(self, i, j);
3341 }
std_vector_Sl_std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg__Sg____setslice__(std::vector<std::vector<std::pair<unsigned int,unsigned int>>> * self,std::vector<std::vector<std::pair<unsigned int,unsigned int>>>::difference_type i,std::vector<std::vector<std::pair<unsigned int,unsigned int>>>::difference_type j,std::vector<std::vector<std::pair<unsigned int,unsigned int>,std::allocator<std::pair<unsigned int,unsigned int>>>,std::allocator<std::vector<std::pair<unsigned int,unsigned int>,std::allocator<std::pair<unsigned int,unsigned int>>>>> const & v)3342 SWIGINTERN void std_vector_Sl_std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg__Sg____setslice__(std::vector< std::vector< std::pair< unsigned int,unsigned int > > > *self,std::vector< std::vector< std::pair< unsigned int,unsigned int > > >::difference_type i,std::vector< std::vector< std::pair< unsigned int,unsigned int > > >::difference_type j,std::vector< std::vector< std::pair< unsigned int,unsigned int >,std::allocator< std::pair< unsigned int,unsigned int > > >,std::allocator< std::vector< std::pair< unsigned int,unsigned int >,std::allocator< std::pair< unsigned int,unsigned int > > > > > const &v){
3343 swig::setslice(self, i, j, v);
3344 }
std_vector_Sl_std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg__Sg____delslice__(std::vector<std::vector<std::pair<unsigned int,unsigned int>>> * self,std::vector<std::vector<std::pair<unsigned int,unsigned int>>>::difference_type i,std::vector<std::vector<std::pair<unsigned int,unsigned int>>>::difference_type j)3345 SWIGINTERN void std_vector_Sl_std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg__Sg____delslice__(std::vector< std::vector< std::pair< unsigned int,unsigned int > > > *self,std::vector< std::vector< std::pair< unsigned int,unsigned int > > >::difference_type i,std::vector< std::vector< std::pair< unsigned int,unsigned int > > >::difference_type j){
3346 swig::delslice(self, i, j);
3347 }
std_vector_Sl_std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg__Sg____delitem__(std::vector<std::vector<std::pair<unsigned int,unsigned int>>> * self,std::vector<std::vector<std::pair<unsigned int,unsigned int>>>::difference_type i)3348 SWIGINTERN void std_vector_Sl_std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg__Sg____delitem__(std::vector< std::vector< std::pair< unsigned int,unsigned int > > > *self,std::vector< std::vector< std::pair< unsigned int,unsigned int > > >::difference_type i){
3349 self->erase(swig::getpos(self,i));
3350 }
std_vector_Sl_std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg__Sg____getitem__(std::vector<std::vector<std::pair<unsigned int,unsigned int>>> const * self,std::vector<std::vector<std::pair<unsigned int,unsigned int>>>::difference_type i)3351 SWIGINTERN std::vector< std::vector< std::pair< unsigned int,unsigned int > > >::value_type const &std_vector_Sl_std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg__Sg____getitem__(std::vector< std::vector< std::pair< unsigned int,unsigned int > > > const *self,std::vector< std::vector< std::pair< unsigned int,unsigned int > > >::difference_type i){
3352 return *(swig::cgetpos(self, i));
3353 }
std_vector_Sl_std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg__Sg____setitem__(std::vector<std::vector<std::pair<unsigned int,unsigned int>>> * self,std::vector<std::vector<std::pair<unsigned int,unsigned int>>>::difference_type i,std::vector<std::vector<std::pair<unsigned int,unsigned int>>>::value_type const & x)3354 SWIGINTERN void std_vector_Sl_std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg__Sg____setitem__(std::vector< std::vector< std::pair< unsigned int,unsigned int > > > *self,std::vector< std::vector< std::pair< unsigned int,unsigned int > > >::difference_type i,std::vector< std::vector< std::pair< unsigned int,unsigned int > > >::value_type const &x){
3355 *(swig::getpos(self,i)) = x;
3356 }
std_vector_Sl_std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg__Sg__append(std::vector<std::vector<std::pair<unsigned int,unsigned int>>> * self,std::vector<std::vector<std::pair<unsigned int,unsigned int>>>::value_type const & x)3357 SWIGINTERN void std_vector_Sl_std_vector_Sl_std_pair_Sl_unsigned_SS_int_Sc_unsigned_SS_int_Sg__Sg__Sg__append(std::vector< std::vector< std::pair< unsigned int,unsigned int > > > *self,std::vector< std::vector< std::pair< unsigned int,unsigned int > > >::value_type const &x){
3358 self->push_back(x);
3359 }
3360 // cant use macro -- AliasData not OBAliasData
toAliasData(OpenBabel::OBGenericData * data)3361 OpenBabel::AliasData *toAliasData(OpenBabel::OBGenericData *data) {
3362 return (OpenBabel::AliasData*) data;
3363 }
3364
3365
toAngleData(OpenBabel::OBGenericData * data)3366 OpenBabel::OBAngleData *toAngleData(OpenBabel::OBGenericData *data) {
3367 return (OpenBabel::OBAngleData *) data;
3368 }
3369
3370
toAtomClassData(OpenBabel::OBGenericData * data)3371 OpenBabel::OBAtomClassData *toAtomClassData(OpenBabel::OBGenericData *data) {
3372 return (OpenBabel::OBAtomClassData *) data;
3373 }
3374
3375
toChiralData(OpenBabel::OBGenericData * data)3376 OpenBabel::OBChiralData *toChiralData(OpenBabel::OBGenericData *data) {
3377 return (OpenBabel::OBChiralData *) data;
3378 }
3379
3380
toCommentData(OpenBabel::OBGenericData * data)3381 OpenBabel::OBCommentData *toCommentData(OpenBabel::OBGenericData *data) {
3382 return (OpenBabel::OBCommentData *) data;
3383 }
3384
3385
toConformerData(OpenBabel::OBGenericData * data)3386 OpenBabel::OBConformerData *toConformerData(OpenBabel::OBGenericData *data) {
3387 return (OpenBabel::OBConformerData *) data;
3388 }
3389
3390
toExternalBondData(OpenBabel::OBGenericData * data)3391 OpenBabel::OBExternalBondData *toExternalBondData(OpenBabel::OBGenericData *data) {
3392 return (OpenBabel::OBExternalBondData *) data;
3393 }
3394
3395
toGridData(OpenBabel::OBGenericData * data)3396 OpenBabel::OBGridData *toGridData(OpenBabel::OBGenericData *data) {
3397 return (OpenBabel::OBGridData *) data;
3398 }
3399
3400
toMatrixData(OpenBabel::OBGenericData * data)3401 OpenBabel::OBMatrixData *toMatrixData(OpenBabel::OBGenericData *data) {
3402 return (OpenBabel::OBMatrixData *) data;
3403 }
3404
3405
toNasaThermoData(OpenBabel::OBGenericData * data)3406 OpenBabel::OBNasaThermoData *toNasaThermoData(OpenBabel::OBGenericData *data) {
3407 return (OpenBabel::OBNasaThermoData *) data;
3408 }
3409
3410
toPairData(OpenBabel::OBGenericData * data)3411 OpenBabel::OBPairData *toPairData(OpenBabel::OBGenericData *data) {
3412 return (OpenBabel::OBPairData *) data;
3413 }
3414
3415
toRateData(OpenBabel::OBGenericData * data)3416 OpenBabel::OBRateData *toRateData(OpenBabel::OBGenericData *data) {
3417 return (OpenBabel::OBRateData *) data;
3418 }
3419
3420
toRotamerList(OpenBabel::OBGenericData * data)3421 OpenBabel::OBRotamerList *toRotamerList(OpenBabel::OBGenericData *data) {
3422 return (OpenBabel::OBRotamerList *) data;
3423 }
3424
3425
toRotationData(OpenBabel::OBGenericData * data)3426 OpenBabel::OBRotationData *toRotationData(OpenBabel::OBGenericData *data) {
3427 return (OpenBabel::OBRotationData *) data;
3428 }
3429
3430
toSerialNums(OpenBabel::OBGenericData * data)3431 OpenBabel::OBSerialNums *toSerialNums(OpenBabel::OBGenericData *data) {
3432 return (OpenBabel::OBSerialNums *) data;
3433 }
3434
3435
toSetData(OpenBabel::OBGenericData * data)3436 OpenBabel::OBSetData *toSetData(OpenBabel::OBGenericData *data) {
3437 return (OpenBabel::OBSetData *) data;
3438 }
3439
3440
toSymmetryData(OpenBabel::OBGenericData * data)3441 OpenBabel::OBSymmetryData *toSymmetryData(OpenBabel::OBGenericData *data) {
3442 return (OpenBabel::OBSymmetryData *) data;
3443 }
3444
3445
toTorsionData(OpenBabel::OBGenericData * data)3446 OpenBabel::OBTorsionData *toTorsionData(OpenBabel::OBGenericData *data) {
3447 return (OpenBabel::OBTorsionData *) data;
3448 }
3449
3450
toUnitCell(OpenBabel::OBGenericData * data)3451 OpenBabel::OBUnitCell *toUnitCell(OpenBabel::OBGenericData *data) {
3452 return (OpenBabel::OBUnitCell *) data;
3453 }
3454
3455
toVectorData(OpenBabel::OBGenericData * data)3456 OpenBabel::OBVectorData *toVectorData(OpenBabel::OBGenericData *data) {
3457 return (OpenBabel::OBVectorData *) data;
3458 }
3459
3460
toVibrationData(OpenBabel::OBGenericData * data)3461 OpenBabel::OBVibrationData *toVibrationData(OpenBabel::OBGenericData *data) {
3462 return (OpenBabel::OBVibrationData *) data;
3463 }
3464
3465
toVirtualBond(OpenBabel::OBGenericData * data)3466 OpenBabel::OBVirtualBond *toVirtualBond(OpenBabel::OBGenericData *data) {
3467 return (OpenBabel::OBVirtualBond *) data;
3468 }
3469
3470
3471 SWIGINTERN char *
SWIG_strdup(const char * str)3472 SWIG_strdup(const char *str)
3473 {
3474 char *newstr = reinterpret_cast< char * >(malloc(strlen(str) + 1));
3475 return strcpy(newstr, str);
3476 }
3477
3478
3479 SWIGINTERNINLINE SEXP
SWIG_FromCharPtr(const char * cptr)3480 SWIG_FromCharPtr(const char *cptr)
3481 {
3482 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
3483 }
3484
3485
3486 SWIGINTERN int
SWIG_AsCharArray(SEXP obj,char * val,size_t size)3487 SWIG_AsCharArray(SEXP obj, char *val, size_t size)
3488 {
3489 char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
3490 int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
3491 if (SWIG_IsOK(res)) {
3492 if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize;
3493 if (csize <= size) {
3494 if (val) {
3495 if (csize) memcpy(val, cptr, csize*sizeof(char));
3496 if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
3497 }
3498 if (alloc == SWIG_NEWOBJ) {
3499 delete[] cptr;
3500 res = SWIG_DelNewMask(res);
3501 }
3502 return res;
3503 }
3504 if (alloc == SWIG_NEWOBJ) delete[] cptr;
3505 }
3506 return SWIG_TypeError;
3507 }
3508
3509
3510 SWIGINTERN int
SWIG_AsVal_char(SEXP obj,char * val)3511 SWIG_AsVal_char (SEXP obj, char *val)
3512 {
3513 int res = SWIG_AsCharArray(obj, val, 1);
3514 if (!SWIG_IsOK(res)) {
3515 long v;
3516 res = SWIG_AddCast(SWIG_AsVal_long (obj, &v));
3517 if (SWIG_IsOK(res)) {
3518 if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) {
3519 if (val) *val = static_cast< char >(v);
3520 } else {
3521 res = SWIG_OverflowError;
3522 }
3523 }
3524 }
3525 return res;
3526 }
3527
OpenBabel_OBTetrahedralStereo_SetConfig(OpenBabel::OBTetrahedralStereo * self,OpenBabel::OBTetrahedralConfig const & config)3528 SWIGINTERN void OpenBabel_OBTetrahedralStereo_SetConfig(OpenBabel::OBTetrahedralStereo *self,OpenBabel::OBTetrahedralConfig const &config){
3529 self->SetConfig(OpenBabel::OBTetrahedralConfig::Convert(config));
3530 }
OpenBabel_OBTetrahedralStereo_GetConfig__SWIG_0(OpenBabel::OBTetrahedralStereo * self,OpenBabel::OBStereo::Winding winding=OpenBabel::OBStereo::Clockwise,OpenBabel::OBStereo::View view=OpenBabel::OBStereo::ViewFrom)3531 SWIGINTERN OpenBabel::OBTetrahedralConfig OpenBabel_OBTetrahedralStereo_GetConfig__SWIG_0(OpenBabel::OBTetrahedralStereo *self,OpenBabel::OBStereo::Winding winding=OpenBabel::OBStereo::Clockwise,OpenBabel::OBStereo::View view=OpenBabel::OBStereo::ViewFrom){
3532 OpenBabel::OBTetrahedralStereo::Config cConfig = self->GetConfig(winding, view);
3533
3534 OpenBabel::OBTetrahedralConfig pyConfig;
3535 pyConfig.center = cConfig.center;
3536 pyConfig.from_or_towards = cConfig.from;
3537 pyConfig.refs = cConfig.refs;
3538 pyConfig.winding = cConfig.winding;
3539 pyConfig.view = cConfig.view;
3540 pyConfig.specified = cConfig.specified;
3541
3542 return pyConfig;
3543 }
OpenBabel_OBTetrahedralStereo_GetConfig__SWIG_3(OpenBabel::OBTetrahedralStereo * self,unsigned long from_or_towards,OpenBabel::OBStereo::Winding winding=OpenBabel::OBStereo::Clockwise,OpenBabel::OBStereo::View view=OpenBabel::OBStereo::ViewFrom)3544 SWIGINTERN OpenBabel::OBTetrahedralConfig OpenBabel_OBTetrahedralStereo_GetConfig__SWIG_3(OpenBabel::OBTetrahedralStereo *self,unsigned long from_or_towards,OpenBabel::OBStereo::Winding winding=OpenBabel::OBStereo::Clockwise,OpenBabel::OBStereo::View view=OpenBabel::OBStereo::ViewFrom){
3545 OpenBabel::OBTetrahedralStereo::Config cConfig = self->GetConfig(from_or_towards, winding, view);
3546
3547 OpenBabel::OBTetrahedralConfig pyConfig;
3548 pyConfig.center = cConfig.center;
3549 pyConfig.from_or_towards = cConfig.from;
3550 pyConfig.refs = cConfig.refs;
3551 pyConfig.winding = cConfig.winding;
3552 pyConfig.view = cConfig.view;
3553 pyConfig.specified = cConfig.specified;
3554
3555 return pyConfig;
3556 }
OpenBabel_OBCisTransStereo_SetConfig(OpenBabel::OBCisTransStereo * self,OpenBabel::OBCisTransConfig const & config)3557 SWIGINTERN void OpenBabel_OBCisTransStereo_SetConfig(OpenBabel::OBCisTransStereo *self,OpenBabel::OBCisTransConfig const &config){
3558 self->SetConfig(OpenBabel::OBCisTransConfig::Convert(config));
3559 }
OpenBabel_OBCisTransStereo_GetConfig__SWIG_0(OpenBabel::OBCisTransStereo * self,OpenBabel::OBStereo::Shape shape=OpenBabel::OBStereo::ShapeU)3560 SWIGINTERN OpenBabel::OBCisTransConfig OpenBabel_OBCisTransStereo_GetConfig__SWIG_0(OpenBabel::OBCisTransStereo *self,OpenBabel::OBStereo::Shape shape=OpenBabel::OBStereo::ShapeU){
3561 OpenBabel::OBCisTransStereo::Config cConfig = self->GetConfig(shape);
3562
3563 OpenBabel::OBCisTransConfig pyConfig;
3564 pyConfig.begin = cConfig.begin;
3565 pyConfig.end = cConfig.end;
3566 pyConfig.refs = cConfig.refs;
3567 pyConfig.shape = cConfig.shape;
3568 pyConfig.specified = cConfig.specified;
3569
3570 return pyConfig;
3571 }
OpenBabel_OBCisTransStereo_GetConfig__SWIG_2(OpenBabel::OBCisTransStereo * self,unsigned long start,OpenBabel::OBStereo::Shape shape=OpenBabel::OBStereo::ShapeU)3572 SWIGINTERN OpenBabel::OBCisTransConfig OpenBabel_OBCisTransStereo_GetConfig__SWIG_2(OpenBabel::OBCisTransStereo *self,unsigned long start,OpenBabel::OBStereo::Shape shape=OpenBabel::OBStereo::ShapeU){
3573 OpenBabel::OBCisTransStereo::Config cConfig = self->GetConfig(start, shape);
3574
3575 OpenBabel::OBCisTransConfig pyConfig;
3576 pyConfig.begin = cConfig.begin;
3577 pyConfig.end = cConfig.end;
3578 pyConfig.refs = cConfig.refs;
3579 pyConfig.shape = cConfig.shape;
3580 pyConfig.specified = cConfig.specified;
3581
3582 return pyConfig;
3583 }
OpenBabel_OBSquarePlanarStereo_SetConfig(OpenBabel::OBSquarePlanarStereo * self,OpenBabel::OBSquarePlanarConfig const & config)3584 SWIGINTERN void OpenBabel_OBSquarePlanarStereo_SetConfig(OpenBabel::OBSquarePlanarStereo *self,OpenBabel::OBSquarePlanarConfig const &config){
3585 self->SetConfig(OpenBabel::OBSquarePlanarConfig::Convert(config));
3586 }
OpenBabel_OBSquarePlanarStereo_GetConfig__SWIG_0(OpenBabel::OBSquarePlanarStereo * self,OpenBabel::OBStereo::Shape shape=OpenBabel::OBStereo::ShapeU)3587 SWIGINTERN OpenBabel::OBSquarePlanarConfig OpenBabel_OBSquarePlanarStereo_GetConfig__SWIG_0(OpenBabel::OBSquarePlanarStereo *self,OpenBabel::OBStereo::Shape shape=OpenBabel::OBStereo::ShapeU){
3588 OpenBabel::OBSquarePlanarStereo::Config cConfig = self->GetConfig(shape);
3589
3590 OpenBabel::OBSquarePlanarConfig pyConfig;
3591 pyConfig.center = cConfig.center;
3592 pyConfig.refs = cConfig.refs;
3593 pyConfig.shape = cConfig.shape;
3594 pyConfig.specified = cConfig.specified;
3595
3596 return pyConfig;
3597 }
OpenBabel_OBSquarePlanarStereo_GetConfig__SWIG_2(OpenBabel::OBSquarePlanarStereo * self,unsigned long start,OpenBabel::OBStereo::Shape shape=OpenBabel::OBStereo::ShapeU)3598 SWIGINTERN OpenBabel::OBSquarePlanarConfig OpenBabel_OBSquarePlanarStereo_GetConfig__SWIG_2(OpenBabel::OBSquarePlanarStereo *self,unsigned long start,OpenBabel::OBStereo::Shape shape=OpenBabel::OBStereo::ShapeU){
3599 OpenBabel::OBSquarePlanarStereo::Config cConfig = self->GetConfig(start, shape);
3600
3601 OpenBabel::OBSquarePlanarConfig pyConfig;
3602 pyConfig.center = cConfig.center;
3603 pyConfig.refs = cConfig.refs;
3604 pyConfig.shape = cConfig.shape;
3605 pyConfig.specified = cConfig.specified;
3606
3607 return pyConfig;
3608 }
3609
3610 #ifdef __cplusplus
3611 extern "C" {
3612 #endif
3613
R_swig_new_stringp()3614 SWIGEXPORT SEXP R_swig_new_stringp ( ) { stringp *result = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ;
3615 VMAXTYPE r_vmax = vmaxget() ; result = (stringp *)new_stringp();
3616 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stringp, R_SWIG_OWNER | 0 ); vmaxset(r_vmax);
3617 if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_delete_stringp(SEXP self)3618 SWIGEXPORT SEXP R_swig_delete_stringp ( SEXP self) { stringp *arg1 = (stringp *) 0 ; void *argp1 = 0 ; int res1 = 0 ;
3619 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3620 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_stringp, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) {
3621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_stringp" "', argument " "1"" of type '" "stringp *""'"); }
3622 arg1 = reinterpret_cast< stringp * >(argp1); delete_stringp(arg1); r_ans = R_NilValue; vmaxset(r_vmax);
3623 if(r_nprotect) Rf_unprotect(r_nprotect); R_ClearExternalPtr(self); return r_ans; }
R_swig_stringp_assign(SEXP self,SEXP value)3624 SWIGEXPORT SEXP R_swig_stringp_assign ( SEXP self, SEXP value) { stringp *arg1 = (stringp *) 0 ; std::string arg2 ;
3625 void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3626 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_stringp, 0 | 0 ); if (!SWIG_IsOK(res1)) {
3627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "stringp_assign" "', argument " "1"" of type '" "stringp *""'"); }
3628 arg1 = reinterpret_cast< stringp * >(argp1); { std::string *ptr = (std::string *)0;
3629 int res = SWIG_AsPtr_std_string(value, &ptr); if (!SWIG_IsOK(res) || !ptr) {
3630 SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "stringp_assign" "', argument " "2"" of type '" "std::string""'"); }
3631 arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } stringp_assign(arg1,arg2); r_ans = R_NilValue; vmaxset(r_vmax);
3632 if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_stringp_value(SEXP self,SEXP s_swig_copy)3633 SWIGEXPORT SEXP R_swig_stringp_value ( SEXP self, SEXP s_swig_copy) { std::string result; stringp *arg1 = (stringp *) 0 ;
3634 void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3635 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_stringp, 0 | 0 ); if (!SWIG_IsOK(res1)) {
3636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "stringp_value" "', argument " "1"" of type '" "stringp *""'"); }
3637 arg1 = reinterpret_cast< stringp * >(argp1); result = stringp_value(arg1);
3638 r_ans = SWIG_From_std_string(static_cast< std::string >(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect);
3639 return r_ans; }
R_swig_stringp_cast(SEXP self)3640 SWIGEXPORT SEXP R_swig_stringp_cast ( SEXP self) { std::string *result = 0 ; stringp *arg1 = (stringp *) 0 ; void *argp1 = 0 ;
3641 int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3642 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_stringp, 0 | 0 ); if (!SWIG_IsOK(res1)) {
3643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "stringp_cast" "', argument " "1"" of type '" "stringp *""'"); }
3644 arg1 = reinterpret_cast< stringp * >(argp1); result = (std::string *)stringp_cast(arg1);
3645 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__string, R_SWIG_EXTERNAL | 0 ); vmaxset(r_vmax);
3646 if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_stringp_frompointer(SEXP t)3647 SWIGEXPORT SEXP R_swig_stringp_frompointer ( SEXP t) { stringp *result = 0 ; std::string *arg1 = (std::string *) 0 ;
3648 void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3649 res1 = SWIG_R_ConvertPtr(t, &argp1, SWIGTYPE_p_std__string, 0 | 0 ); if (!SWIG_IsOK(res1)) {
3650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "stringp_frompointer" "', argument " "1"" of type '" "std::string *""'"); }
3651 arg1 = reinterpret_cast< std::string * >(argp1); result = (stringp *)stringp_frompointer(arg1);
3652 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stringp, R_SWIG_EXTERNAL | 0 ); vmaxset(r_vmax);
3653 if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_istreamFromString(SEXP str)3654 SWIGEXPORT SEXP R_swig_istreamFromString ( SEXP str) { std::istream *result = 0 ; std::string arg1 ;
3655 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; { std::string *ptr = (std::string *)0;
3656 int res = SWIG_AsPtr_std_string(str, &ptr); if (!SWIG_IsOK(res) || !ptr) {
3657 SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "istreamFromString" "', argument " "1"" of type '" "std::string""'"); }
3658 arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (std::istream *)istreamFromString(arg1);
3659 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__istream, R_SWIG_EXTERNAL | 0 ); vmaxset(r_vmax);
3660 if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_istreamFromFile(SEXP filename)3661 SWIGEXPORT SEXP R_swig_istreamFromFile ( SEXP filename) { std::istream *result = 0 ; char *arg1 = (char *) 0 ; int res1 ;
3662 char *buf1 = 0 ; int alloc1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3663 res1 = SWIG_AsCharPtrAndSize(filename, &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) {
3664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "istreamFromFile" "', argument " "1"" of type '" "char const *""'"); }
3665 arg1 = reinterpret_cast< char * >(buf1); result = (std::istream *)istreamFromFile((char const *)arg1);
3666 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__istream, R_SWIG_EXTERNAL | 0 );
3667 if (alloc1 == SWIG_NEWOBJ) delete[] buf1; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_ostreamToString()3668 SWIGEXPORT SEXP R_swig_ostreamToString ( ) { std::ostream *result = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ;
3669 VMAXTYPE r_vmax = vmaxget() ; result = (std::ostream *)ostreamToString();
3670 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__ostream, R_SWIG_EXTERNAL | 0 ); vmaxset(r_vmax);
3671 if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_ostreamToFile(SEXP filename)3672 SWIGEXPORT SEXP R_swig_ostreamToFile ( SEXP filename) { std::ostream *result = 0 ; char *arg1 = (char *) 0 ; int res1 ;
3673 char *buf1 = 0 ; int alloc1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3674 res1 = SWIG_AsCharPtrAndSize(filename, &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) {
3675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ostreamToFile" "', argument " "1"" of type '" "char const *""'"); }
3676 arg1 = reinterpret_cast< char * >(buf1); result = (std::ostream *)ostreamToFile((char const *)arg1);
3677 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__ostream, R_SWIG_EXTERNAL | 0 );
3678 if (alloc1 == SWIG_NEWOBJ) delete[] buf1; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_stringFromOstream(SEXP os,SEXP s_swig_copy)3679 SWIGEXPORT SEXP R_swig_stringFromOstream ( SEXP os, SEXP s_swig_copy) { std::string result;
3680 std::ostringstream *arg1 = (std::ostringstream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0;
3681 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3682 res1 = SWIG_R_ConvertPtr(os, &argp1, SWIGTYPE_p_std__ostringstream, 0 | 0 ); if (!SWIG_IsOK(res1)) {
3683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "stringFromOstream" "', argument " "1"" of type '" "std::ostringstream const *""'"); }
3684 arg1 = reinterpret_cast< std::ostringstream * >(argp1); result = stringFromOstream((std::ostringstream const *)arg1);
3685 r_ans = SWIG_From_std_string(static_cast< std::string >(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect);
3686 return r_ans; }
R_swig_vectorInt___nonzero__(SEXP self,SEXP s_swig_copy)3687 SWIGEXPORT SEXP R_swig_vectorInt___nonzero__ ( SEXP self, SEXP s_swig_copy) { bool result;
3688 std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0;
3689 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3690 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) {
3691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorInt___nonzero__" "', argument " "1"" of type '" "std::vector< int > const *""'"); }
3692 arg1 = reinterpret_cast< std::vector< int > * >(argp1);
3693 result = (bool)std_vector_Sl_int_Sg____nonzero__((std::vector< int > const *)arg1); r_ans = Rf_ScalarLogical(result);
3694 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorInt___len__(SEXP self,SEXP s_swig_copy)3695 SWIGEXPORT SEXP R_swig_vectorInt___len__ ( SEXP self, SEXP s_swig_copy) { std::vector< int >::size_type result;
3696 std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0;
3697 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3698 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) {
3699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorInt___len__" "', argument " "1"" of type '" "std::vector< int > const *""'"); }
3700 arg1 = reinterpret_cast< std::vector< int > * >(argp1);
3701 result = std_vector_Sl_int_Sg____len__((std::vector< int > const *)arg1); r_ans = SWIG_From_int(static_cast< int >(result));
3702 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorInt___getslice__(SEXP self,SEXP i,SEXP j)3703 SWIGEXPORT SEXP R_swig_vectorInt___getslice__ ( SEXP self, SEXP i, SEXP j) {
3704 std::vector< int,std::allocator< int > > *result = 0 ; std::vector< int > *arg1 = (std::vector< int > *) 0 ;
3705 std::vector< int >::difference_type arg2 ; std::vector< int >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ;
3706 int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ;
3707 VMAXTYPE r_vmax = vmaxget() ;
3708 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) {
3709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorInt___getslice__" "', argument " "1"" of type '" "std::vector< int > *""'"); }
3710 arg1 = reinterpret_cast< std::vector< int > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
3711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorInt___getslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'"); }
3712 arg2 = static_cast< std::vector< int >::difference_type >(val2); ecode3 = SWIG_AsVal_int(j, &val3);
3713 if (!SWIG_IsOK(ecode3)) {
3714 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorInt___getslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'"); }
3715 arg3 = static_cast< std::vector< int >::difference_type >(val3); try {
3716 result = (std::vector< int,std::allocator< int > > *)std_vector_Sl_int_Sg____getslice__(arg1,arg2,arg3);}
3717 catch(std::out_of_range &_e) { return R_NilValue; ; }
3718 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, R_SWIG_OWNER | 0 );
3719 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorInt___setslice__(SEXP self,SEXP i,SEXP j,SEXP v)3720 SWIGEXPORT SEXP R_swig_vectorInt___setslice__ ( SEXP self, SEXP i, SEXP j, SEXP v) {
3721 std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::difference_type arg2 ;
3722 std::vector< int >::difference_type arg3 ; std::vector< int,std::allocator< int > > *arg4 = 0 ; void *argp1 = 0 ;
3723 int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; unsigned int r_nprotect = 0;
3724 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3725 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) {
3726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorInt___setslice__" "', argument " "1"" of type '" "std::vector< int > *""'"); }
3727 arg1 = reinterpret_cast< std::vector< int > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
3728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorInt___setslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'"); }
3729 arg2 = static_cast< std::vector< int >::difference_type >(val2); ecode3 = SWIG_AsVal_int(j, &val3);
3730 if (!SWIG_IsOK(ecode3)) {
3731 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorInt___setslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'"); }
3732 arg3 = static_cast< std::vector< int >::difference_type >(val3); {
3733 std::vector<int,std::allocator< int > > *ptr = (std::vector<int,std::allocator< int > > *)0; res4 = swig::asptr(v, &ptr);
3734 if (!SWIG_IsOK(res4)) {
3735 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vectorInt___setslice__" "', argument " "4"" of type '" "std::vector< int,std::allocator< int > > const &""'"); }
3736 if (!ptr) {
3737 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorInt___setslice__" "', argument " "4"" of type '" "std::vector< int,std::allocator< int > > const &""'"); }
3738 arg4 = ptr; } try {
3739 std_vector_Sl_int_Sg____setslice__(arg1,arg2,arg3,(std::vector< int,std::allocator< int > > const &)*arg4);}
3740 catch(std::out_of_range &_e) { return R_NilValue; ; } catch(std::invalid_argument &_e) { return R_NilValue; ; }
3741 r_ans = R_NilValue; if (SWIG_IsNewObj(res4)) delete arg4; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect);
3742 return r_ans; }
R_swig_vectorInt___delslice__(SEXP self,SEXP i,SEXP j)3743 SWIGEXPORT SEXP R_swig_vectorInt___delslice__ ( SEXP self, SEXP i, SEXP j) {
3744 std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::difference_type arg2 ;
3745 std::vector< int >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ;
3746 int ecode3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3747 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) {
3748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorInt___delslice__" "', argument " "1"" of type '" "std::vector< int > *""'"); }
3749 arg1 = reinterpret_cast< std::vector< int > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
3750 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorInt___delslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'"); }
3751 arg2 = static_cast< std::vector< int >::difference_type >(val2); ecode3 = SWIG_AsVal_int(j, &val3);
3752 if (!SWIG_IsOK(ecode3)) {
3753 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorInt___delslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'"); }
3754 arg3 = static_cast< std::vector< int >::difference_type >(val3); try { std_vector_Sl_int_Sg____delslice__(arg1,arg2,arg3);}
3755 catch(std::out_of_range &_e) { return R_NilValue; ; } r_ans = R_NilValue; vmaxset(r_vmax);
3756 if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorInt___delitem__(SEXP self,SEXP i)3757 SWIGEXPORT SEXP R_swig_vectorInt___delitem__ ( SEXP self, SEXP i) { std::vector< int > *arg1 = (std::vector< int > *) 0 ;
3758 std::vector< int >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ;
3759 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3760 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) {
3761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorInt___delitem__" "', argument " "1"" of type '" "std::vector< int > *""'"); }
3762 arg1 = reinterpret_cast< std::vector< int > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
3763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorInt___delitem__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'"); }
3764 arg2 = static_cast< std::vector< int >::difference_type >(val2); try { std_vector_Sl_int_Sg____delitem__(arg1,arg2);}
3765 catch(std::out_of_range &_e) { return R_NilValue; ; } r_ans = R_NilValue; vmaxset(r_vmax);
3766 if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorInt___getitem__(SEXP self,SEXP i,SEXP s_swig_copy)3767 SWIGEXPORT SEXP R_swig_vectorInt___getitem__ ( SEXP self, SEXP i, SEXP s_swig_copy) {
3768 std::vector< int >::value_type *result = 0 ; std::vector< int > *arg1 = (std::vector< int > *) 0 ;
3769 std::vector< int >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ;
3770 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3771 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) {
3772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorInt___getitem__" "', argument " "1"" of type '" "std::vector< int > const *""'"); }
3773 arg1 = reinterpret_cast< std::vector< int > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
3774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorInt___getitem__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'"); }
3775 arg2 = static_cast< std::vector< int >::difference_type >(val2); try {
3776 result = (std::vector< int >::value_type *) &std_vector_Sl_int_Sg____getitem__((std::vector< int > const *)arg1,arg2);}
3777 catch(std::out_of_range &_e) { return R_NilValue; ; } r_ans = SWIG_From_int(static_cast< int >(*result)); vmaxset(r_vmax);
3778 if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorInt___setitem__(SEXP self,SEXP i,SEXP x)3779 SWIGEXPORT SEXP R_swig_vectorInt___setitem__ ( SEXP self, SEXP i, SEXP x) {
3780 std::vector< int > *arg1 = (std::vector< int > *) 0 ; std::vector< int >::difference_type arg2 ;
3781 std::vector< int >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ;
3782 std::vector< int >::value_type temp3 ; int val3 ; int ecode3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ;
3783 VMAXTYPE r_vmax = vmaxget() ;
3784 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) {
3785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorInt___setitem__" "', argument " "1"" of type '" "std::vector< int > *""'"); }
3786 arg1 = reinterpret_cast< std::vector< int > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
3787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorInt___setitem__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'"); }
3788 arg2 = static_cast< std::vector< int >::difference_type >(val2); ecode3 = SWIG_AsVal_int(x, &val3);
3789 if (!SWIG_IsOK(ecode3)) {
3790 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorInt___setitem__" "', argument " "3"" of type '" "std::vector< int >::value_type""'"); }
3791 temp3 = static_cast< std::vector< int >::value_type >(val3); arg3 = &temp3; try {
3792 std_vector_Sl_int_Sg____setitem__(arg1,arg2,(int const &)*arg3);} catch(std::out_of_range &_e) { return R_NilValue; ; }
3793 r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorInt__SWIG_0()3794 SWIGEXPORT SEXP R_swig_new_vectorInt__SWIG_0 ( ) { std::vector< int > *result = 0 ; unsigned int r_nprotect = 0;
3795 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (std::vector< int > *)new std::vector< int >();
3796 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, R_SWIG_OWNER | 0 );
3797 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorInt__SWIG_1(SEXP s_arg1)3798 SWIGEXPORT SEXP R_swig_new_vectorInt__SWIG_1 ( SEXP s_arg1) { std::vector< int > *result = 0 ; std::vector< int > *arg1 = 0 ;
3799 int res1 = SWIG_OLDOBJ ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; {
3800 std::vector<int,std::allocator< int > > *ptr = (std::vector<int,std::allocator< int > > *)0;
3801 res1 = swig::asptr(s_arg1, &ptr); if (!SWIG_IsOK(res1)) {
3802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_vectorInt" "', argument " "1"" of type '" "std::vector< int > const &""'"); }
3803 if (!ptr) {
3804 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vectorInt" "', argument " "1"" of type '" "std::vector< int > const &""'"); }
3805 arg1 = ptr; } result = (std::vector< int > *)new std::vector< int >((std::vector< int > const &)*arg1);
3806 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, R_SWIG_OWNER | 0 );
3807 if (SWIG_IsNewObj(res1)) delete arg1; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorInt_size(SEXP self,SEXP s_swig_copy)3808 SWIGEXPORT SEXP R_swig_vectorInt_size ( SEXP self, SEXP s_swig_copy) { std::vector< int >::size_type result;
3809 std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0;
3810 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3811 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) {
3812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorInt_size" "', argument " "1"" of type '" "std::vector< int > const *""'"); }
3813 arg1 = reinterpret_cast< std::vector< int > * >(argp1); result = ((std::vector< int > const *)arg1)->size();
3814 r_ans = SWIG_From_int(static_cast< int >(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorInt__SWIG_2(SEXP size)3815 SWIGEXPORT SEXP R_swig_new_vectorInt__SWIG_2 ( SEXP size) { std::vector< int > *result = 0 ;
3816 std::vector< int >::size_type arg1 ; int val1 ; int ecode1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ;
3817 VMAXTYPE r_vmax = vmaxget() ; ecode1 = SWIG_AsVal_int(size, &val1); if (!SWIG_IsOK(ecode1)) {
3818 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vectorInt" "', argument " "1"" of type '" "std::vector< int >::size_type""'"); }
3819 arg1 = static_cast< std::vector< int >::size_type >(val1); result = (std::vector< int > *)new std::vector< int >(arg1);
3820 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, R_SWIG_OWNER | 0 );
3821 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorInt__SWIG_3(SEXP size,SEXP value)3822 SWIGEXPORT SEXP R_swig_new_vectorInt__SWIG_3 ( SEXP size, SEXP value) { std::vector< int > *result = 0 ;
3823 std::vector< int >::size_type arg1 ; std::vector< int >::value_type *arg2 = 0 ; int val1 ; int ecode1 = 0 ;
3824 std::vector< int >::value_type temp2 ; int val2 ; int ecode2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ;
3825 VMAXTYPE r_vmax = vmaxget() ; ecode1 = SWIG_AsVal_int(size, &val1); if (!SWIG_IsOK(ecode1)) {
3826 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vectorInt" "', argument " "1"" of type '" "std::vector< int >::size_type""'"); }
3827 arg1 = static_cast< std::vector< int >::size_type >(val1); ecode2 = SWIG_AsVal_int(value, &val2); if (!SWIG_IsOK(ecode2)) {
3828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_vectorInt" "', argument " "2"" of type '" "std::vector< int >::value_type""'"); }
3829 temp2 = static_cast< std::vector< int >::value_type >(val2); arg2 = &temp2;
3830 result = (std::vector< int > *)new std::vector< int >(arg1,(std::vector< int >::value_type const &)*arg2);
3831 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, R_SWIG_OWNER | 0 );
3832 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_delete_vectorInt(SEXP self)3833 SWIGEXPORT SEXP R_swig_delete_vectorInt ( SEXP self) { std::vector< int > *arg1 = (std::vector< int > *) 0 ; void *argp1 = 0 ;
3834 int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3835 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_DISOWN | 0 );
3836 if (!SWIG_IsOK(res1)) {
3837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_vectorInt" "', argument " "1"" of type '" "std::vector< int > *""'"); }
3838 arg1 = reinterpret_cast< std::vector< int > * >(argp1); delete arg1; r_ans = R_NilValue; vmaxset(r_vmax);
3839 if(r_nprotect) Rf_unprotect(r_nprotect); R_ClearExternalPtr(self); return r_ans; }
R_swig_vectorUnsignedInt___nonzero__(SEXP self,SEXP s_swig_copy)3840 SWIGEXPORT SEXP R_swig_vectorUnsignedInt___nonzero__ ( SEXP self, SEXP s_swig_copy) { bool result;
3841 std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ;
3842 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3843 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 | 0 );
3844 if (!SWIG_IsOK(res1)) {
3845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorUnsignedInt___nonzero__" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'"); }
3846 arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
3847 result = (bool)std_vector_Sl_unsigned_SS_int_Sg____nonzero__((std::vector< unsigned int > const *)arg1);
3848 r_ans = Rf_ScalarLogical(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorUnsignedInt___len__(SEXP self,SEXP s_swig_copy)3849 SWIGEXPORT SEXP R_swig_vectorUnsignedInt___len__ ( SEXP self, SEXP s_swig_copy) { std::vector< unsigned int >::size_type result;
3850 std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ;
3851 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3852 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 | 0 );
3853 if (!SWIG_IsOK(res1)) {
3854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorUnsignedInt___len__" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'"); }
3855 arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
3856 result = std_vector_Sl_unsigned_SS_int_Sg____len__((std::vector< unsigned int > const *)arg1);
3857 r_ans = SWIG_From_int(static_cast< int >(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorUnsignedInt___getslice__(SEXP self,SEXP i,SEXP j)3858 SWIGEXPORT SEXP R_swig_vectorUnsignedInt___getslice__ ( SEXP self, SEXP i, SEXP j) {
3859 std::vector< unsigned int,std::allocator< unsigned int > > *result = 0 ;
3860 std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ; std::vector< unsigned int >::difference_type arg2 ;
3861 std::vector< unsigned int >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ;
3862 int ecode3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3863 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 | 0 );
3864 if (!SWIG_IsOK(res1)) {
3865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorUnsignedInt___getslice__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); }
3866 arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
3867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorUnsignedInt___getslice__" "', argument " "2"" of type '" "std::vector< unsigned int >::difference_type""'"); }
3868 arg2 = static_cast< std::vector< unsigned int >::difference_type >(val2); ecode3 = SWIG_AsVal_int(j, &val3);
3869 if (!SWIG_IsOK(ecode3)) {
3870 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorUnsignedInt___getslice__" "', argument " "3"" of type '" "std::vector< unsigned int >::difference_type""'"); }
3871 arg3 = static_cast< std::vector< unsigned int >::difference_type >(val3); try {
3872 result = (std::vector< unsigned int,std::allocator< unsigned int > > *)std_vector_Sl_unsigned_SS_int_Sg____getslice__(arg1,arg2,arg3);}
3873 catch(std::out_of_range &_e) { return R_NilValue; ; }
3874 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, R_SWIG_OWNER | 0 );
3875 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorUnsignedInt___setslice__(SEXP self,SEXP i,SEXP j,SEXP v)3876 SWIGEXPORT SEXP R_swig_vectorUnsignedInt___setslice__ ( SEXP self, SEXP i, SEXP j, SEXP v) {
3877 std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ; std::vector< unsigned int >::difference_type arg2 ;
3878 std::vector< unsigned int >::difference_type arg3 ; std::vector< unsigned int,std::allocator< unsigned int > > *arg4 = 0 ;
3879 void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ;
3880 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3881 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 | 0 );
3882 if (!SWIG_IsOK(res1)) {
3883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorUnsignedInt___setslice__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); }
3884 arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
3885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorUnsignedInt___setslice__" "', argument " "2"" of type '" "std::vector< unsigned int >::difference_type""'"); }
3886 arg2 = static_cast< std::vector< unsigned int >::difference_type >(val2); ecode3 = SWIG_AsVal_int(j, &val3);
3887 if (!SWIG_IsOK(ecode3)) {
3888 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorUnsignedInt___setslice__" "', argument " "3"" of type '" "std::vector< unsigned int >::difference_type""'"); }
3889 arg3 = static_cast< std::vector< unsigned int >::difference_type >(val3); {
3890 std::vector<unsigned int,std::allocator< unsigned int > > *ptr = (std::vector<unsigned int,std::allocator< unsigned int > > *)0;
3891 res4 = swig::asptr(v, &ptr); if (!SWIG_IsOK(res4)) {
3892 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vectorUnsignedInt___setslice__" "', argument " "4"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > > const &""'"); }
3893 if (!ptr) {
3894 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorUnsignedInt___setslice__" "', argument " "4"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > > const &""'"); }
3895 arg4 = ptr; } try {
3896 std_vector_Sl_unsigned_SS_int_Sg____setslice__(arg1,arg2,arg3,(std::vector< unsigned int,std::allocator< unsigned int > > const &)*arg4);}
3897 catch(std::out_of_range &_e) { return R_NilValue; ; } catch(std::invalid_argument &_e) { return R_NilValue; ; }
3898 r_ans = R_NilValue; if (SWIG_IsNewObj(res4)) delete arg4; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect);
3899 return r_ans; }
R_swig_vectorUnsignedInt___delslice__(SEXP self,SEXP i,SEXP j)3900 SWIGEXPORT SEXP R_swig_vectorUnsignedInt___delslice__ ( SEXP self, SEXP i, SEXP j) {
3901 std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ; std::vector< unsigned int >::difference_type arg2 ;
3902 std::vector< unsigned int >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ;
3903 int ecode3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3904 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 | 0 );
3905 if (!SWIG_IsOK(res1)) {
3906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorUnsignedInt___delslice__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); }
3907 arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
3908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorUnsignedInt___delslice__" "', argument " "2"" of type '" "std::vector< unsigned int >::difference_type""'"); }
3909 arg2 = static_cast< std::vector< unsigned int >::difference_type >(val2); ecode3 = SWIG_AsVal_int(j, &val3);
3910 if (!SWIG_IsOK(ecode3)) {
3911 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorUnsignedInt___delslice__" "', argument " "3"" of type '" "std::vector< unsigned int >::difference_type""'"); }
3912 arg3 = static_cast< std::vector< unsigned int >::difference_type >(val3); try {
3913 std_vector_Sl_unsigned_SS_int_Sg____delslice__(arg1,arg2,arg3);} catch(std::out_of_range &_e) { return R_NilValue; ; }
3914 r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorUnsignedInt___delitem__(SEXP self,SEXP i)3915 SWIGEXPORT SEXP R_swig_vectorUnsignedInt___delitem__ ( SEXP self, SEXP i) {
3916 std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ; std::vector< unsigned int >::difference_type arg2 ;
3917 void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ;
3918 VMAXTYPE r_vmax = vmaxget() ;
3919 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 | 0 );
3920 if (!SWIG_IsOK(res1)) {
3921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorUnsignedInt___delitem__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); }
3922 arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
3923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorUnsignedInt___delitem__" "', argument " "2"" of type '" "std::vector< unsigned int >::difference_type""'"); }
3924 arg2 = static_cast< std::vector< unsigned int >::difference_type >(val2); try {
3925 std_vector_Sl_unsigned_SS_int_Sg____delitem__(arg1,arg2);} catch(std::out_of_range &_e) { return R_NilValue; ; }
3926 r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorUnsignedInt___getitem__(SEXP self,SEXP i,SEXP s_swig_copy)3927 SWIGEXPORT SEXP R_swig_vectorUnsignedInt___getitem__ ( SEXP self, SEXP i, SEXP s_swig_copy) {
3928 std::vector< unsigned int >::value_type *result = 0 ; std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
3929 std::vector< unsigned int >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ;
3930 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3931 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 | 0 );
3932 if (!SWIG_IsOK(res1)) {
3933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorUnsignedInt___getitem__" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'"); }
3934 arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
3935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorUnsignedInt___getitem__" "', argument " "2"" of type '" "std::vector< unsigned int >::difference_type""'"); }
3936 arg2 = static_cast< std::vector< unsigned int >::difference_type >(val2); try {
3937 result = (std::vector< unsigned int >::value_type *) &std_vector_Sl_unsigned_SS_int_Sg____getitem__((std::vector< unsigned int > const *)arg1,arg2);}
3938 catch(std::out_of_range &_e) { return R_NilValue; ; }
3939 r_ans = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(*result)); vmaxset(r_vmax);
3940 if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorUnsignedInt___setitem__(SEXP self,SEXP i,SEXP x)3941 SWIGEXPORT SEXP R_swig_vectorUnsignedInt___setitem__ ( SEXP self, SEXP i, SEXP x) {
3942 std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ; std::vector< unsigned int >::difference_type arg2 ;
3943 std::vector< unsigned int >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ;
3944 std::vector< unsigned int >::value_type temp3 ; unsigned int val3 ; int ecode3 = 0 ; unsigned int r_nprotect = 0;
3945 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3946 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 | 0 );
3947 if (!SWIG_IsOK(res1)) {
3948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorUnsignedInt___setitem__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); }
3949 arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
3950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorUnsignedInt___setitem__" "', argument " "2"" of type '" "std::vector< unsigned int >::difference_type""'"); }
3951 arg2 = static_cast< std::vector< unsigned int >::difference_type >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(x, &val3);
3952 if (!SWIG_IsOK(ecode3)) {
3953 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorUnsignedInt___setitem__" "', argument " "3"" of type '" "std::vector< unsigned int >::value_type""'"); }
3954 temp3 = static_cast< std::vector< unsigned int >::value_type >(val3); arg3 = &temp3; try {
3955 std_vector_Sl_unsigned_SS_int_Sg____setitem__(arg1,arg2,(unsigned int const &)*arg3);} catch(std::out_of_range &_e) {
3956 return R_NilValue; ; } r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorUnsignedInt__SWIG_0()3957 SWIGEXPORT SEXP R_swig_new_vectorUnsignedInt__SWIG_0 ( ) { std::vector< unsigned int > *result = 0 ;
3958 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3959 result = (std::vector< unsigned int > *)new std::vector< unsigned int >();
3960 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, R_SWIG_OWNER | 0 );
3961 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorUnsignedInt__SWIG_1(SEXP s_arg1)3962 SWIGEXPORT SEXP R_swig_new_vectorUnsignedInt__SWIG_1 ( SEXP s_arg1) { std::vector< unsigned int > *result = 0 ;
3963 std::vector< unsigned int > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ;
3964 VMAXTYPE r_vmax = vmaxget() ; {
3965 std::vector<unsigned int,std::allocator< unsigned int > > *ptr = (std::vector<unsigned int,std::allocator< unsigned int > > *)0;
3966 res1 = swig::asptr(s_arg1, &ptr); if (!SWIG_IsOK(res1)) {
3967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_vectorUnsignedInt" "', argument " "1"" of type '" "std::vector< unsigned int > const &""'"); }
3968 if (!ptr) {
3969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vectorUnsignedInt" "', argument " "1"" of type '" "std::vector< unsigned int > const &""'"); }
3970 arg1 = ptr; }
3971 result = (std::vector< unsigned int > *)new std::vector< unsigned int >((std::vector< unsigned int > const &)*arg1);
3972 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, R_SWIG_OWNER | 0 );
3973 if (SWIG_IsNewObj(res1)) delete arg1; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorUnsignedInt_size(SEXP self,SEXP s_swig_copy)3974 SWIGEXPORT SEXP R_swig_vectorUnsignedInt_size ( SEXP self, SEXP s_swig_copy) { std::vector< unsigned int >::size_type result;
3975 std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ;
3976 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
3977 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 | 0 );
3978 if (!SWIG_IsOK(res1)) {
3979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorUnsignedInt_size" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'"); }
3980 arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
3981 result = ((std::vector< unsigned int > const *)arg1)->size(); r_ans = SWIG_From_int(static_cast< int >(result));
3982 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorUnsignedInt__SWIG_2(SEXP size)3983 SWIGEXPORT SEXP R_swig_new_vectorUnsignedInt__SWIG_2 ( SEXP size) { std::vector< unsigned int > *result = 0 ;
3984 std::vector< unsigned int >::size_type arg1 ; int val1 ; int ecode1 = 0 ; unsigned int r_nprotect = 0;
3985 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; ecode1 = SWIG_AsVal_int(size, &val1); if (!SWIG_IsOK(ecode1)) {
3986 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vectorUnsignedInt" "', argument " "1"" of type '" "std::vector< unsigned int >::size_type""'"); }
3987 arg1 = static_cast< std::vector< unsigned int >::size_type >(val1);
3988 result = (std::vector< unsigned int > *)new std::vector< unsigned int >(arg1);
3989 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, R_SWIG_OWNER | 0 );
3990 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorUnsignedInt__SWIG_3(SEXP size,SEXP value)3991 SWIGEXPORT SEXP R_swig_new_vectorUnsignedInt__SWIG_3 ( SEXP size, SEXP value) { std::vector< unsigned int > *result = 0 ;
3992 std::vector< unsigned int >::size_type arg1 ; std::vector< unsigned int >::value_type *arg2 = 0 ; int val1 ; int ecode1 = 0 ;
3993 std::vector< unsigned int >::value_type temp2 ; unsigned int val2 ; int ecode2 = 0 ; unsigned int r_nprotect = 0;
3994 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; ecode1 = SWIG_AsVal_int(size, &val1); if (!SWIG_IsOK(ecode1)) {
3995 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vectorUnsignedInt" "', argument " "1"" of type '" "std::vector< unsigned int >::size_type""'"); }
3996 arg1 = static_cast< std::vector< unsigned int >::size_type >(val1); ecode2 = SWIG_AsVal_unsigned_SS_int(value, &val2);
3997 if (!SWIG_IsOK(ecode2)) {
3998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_vectorUnsignedInt" "', argument " "2"" of type '" "std::vector< unsigned int >::value_type""'"); }
3999 temp2 = static_cast< std::vector< unsigned int >::value_type >(val2); arg2 = &temp2;
4000 result = (std::vector< unsigned int > *)new std::vector< unsigned int >(arg1,(std::vector< unsigned int >::value_type const &)*arg2);
4001 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, R_SWIG_OWNER | 0 );
4002 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_delete_vectorUnsignedInt(SEXP self)4003 SWIGEXPORT SEXP R_swig_delete_vectorUnsignedInt ( SEXP self) {
4004 std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ; void *argp1 = 0 ; int res1 = 0 ;
4005 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4006 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_DISOWN | 0 );
4007 if (!SWIG_IsOK(res1)) {
4008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_vectorUnsignedInt" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); }
4009 arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1); delete arg1; r_ans = R_NilValue; vmaxset(r_vmax);
4010 if(r_nprotect) Rf_unprotect(r_nprotect); R_ClearExternalPtr(self); return r_ans; }
R_swig_vectorvInt___nonzero__(SEXP self,SEXP s_swig_copy)4011 SWIGEXPORT SEXP R_swig_vectorvInt___nonzero__ ( SEXP self, SEXP s_swig_copy) { bool result;
4012 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ;
4013 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4014 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 | 0 );
4015 if (!SWIG_IsOK(res1)) {
4016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorvInt___nonzero__" "', argument " "1"" of type '" "std::vector< std::vector< int > > const *""'"); }
4017 arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
4018 result = (bool)std_vector_Sl_std_vector_Sl_int_Sg__Sg____nonzero__((std::vector< std::vector< int > > const *)arg1);
4019 r_ans = Rf_ScalarLogical(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorvInt___len__(SEXP self,SEXP s_swig_copy)4020 SWIGEXPORT SEXP R_swig_vectorvInt___len__ ( SEXP self, SEXP s_swig_copy) { std::vector< std::vector< int > >::size_type result;
4021 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ;
4022 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4023 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 | 0 );
4024 if (!SWIG_IsOK(res1)) {
4025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorvInt___len__" "', argument " "1"" of type '" "std::vector< std::vector< int > > const *""'"); }
4026 arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
4027 result = std_vector_Sl_std_vector_Sl_int_Sg__Sg____len__((std::vector< std::vector< int > > const *)arg1);
4028 r_ans = SWIG_From_int(static_cast< int >(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorvInt___getslice__(SEXP self,SEXP i,SEXP j)4029 SWIGEXPORT SEXP R_swig_vectorvInt___getslice__ ( SEXP self, SEXP i, SEXP j) {
4030 std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *result = 0 ;
4031 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
4032 std::vector< std::vector< int > >::difference_type arg2 ; std::vector< std::vector< int > >::difference_type arg3 ;
4033 void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; unsigned int r_nprotect = 0;
4034 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4035 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 | 0 );
4036 if (!SWIG_IsOK(res1)) {
4037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorvInt___getslice__" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'"); }
4038 arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2);
4039 if (!SWIG_IsOK(ecode2)) {
4040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorvInt___getslice__" "', argument " "2"" of type '" "std::vector< std::vector< int > >::difference_type""'"); }
4041 arg2 = static_cast< std::vector< std::vector< int > >::difference_type >(val2); ecode3 = SWIG_AsVal_int(j, &val3);
4042 if (!SWIG_IsOK(ecode3)) {
4043 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorvInt___getslice__" "', argument " "3"" of type '" "std::vector< std::vector< int > >::difference_type""'"); }
4044 arg3 = static_cast< std::vector< std::vector< int > >::difference_type >(val3); try {
4045 result = (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *)std_vector_Sl_std_vector_Sl_int_Sg__Sg____getslice__(arg1,arg2,arg3);}
4046 catch(std::out_of_range &_e) { return R_NilValue; ; }
4047 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, R_SWIG_OWNER | 0 );
4048 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorvInt___setslice__(SEXP self,SEXP i,SEXP j,SEXP v)4049 SWIGEXPORT SEXP R_swig_vectorvInt___setslice__ ( SEXP self, SEXP i, SEXP j, SEXP v) {
4050 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
4051 std::vector< std::vector< int > >::difference_type arg2 ; std::vector< std::vector< int > >::difference_type arg3 ;
4052 std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *arg4 = 0 ;
4053 void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ;
4054 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4055 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 | 0 );
4056 if (!SWIG_IsOK(res1)) {
4057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorvInt___setslice__" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'"); }
4058 arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2);
4059 if (!SWIG_IsOK(ecode2)) {
4060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorvInt___setslice__" "', argument " "2"" of type '" "std::vector< std::vector< int > >::difference_type""'"); }
4061 arg2 = static_cast< std::vector< std::vector< int > >::difference_type >(val2); ecode3 = SWIG_AsVal_int(j, &val3);
4062 if (!SWIG_IsOK(ecode3)) {
4063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorvInt___setslice__" "', argument " "3"" of type '" "std::vector< std::vector< int > >::difference_type""'"); }
4064 arg3 = static_cast< std::vector< std::vector< int > >::difference_type >(val3); {
4065 std::vector<std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *ptr = (std::vector<std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *)0;
4066 res4 = swig::asptr(v, &ptr); if (!SWIG_IsOK(res4)) {
4067 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vectorvInt___setslice__" "', argument " "4"" of type '" "std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > const &""'"); }
4068 if (!ptr) {
4069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorvInt___setslice__" "', argument " "4"" of type '" "std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > const &""'"); }
4070 arg4 = ptr; } try {
4071 std_vector_Sl_std_vector_Sl_int_Sg__Sg____setslice__(arg1,arg2,arg3,(std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > const &)*arg4);}
4072 catch(std::out_of_range &_e) { return R_NilValue; ; } catch(std::invalid_argument &_e) { return R_NilValue; ; }
4073 r_ans = R_NilValue; if (SWIG_IsNewObj(res4)) delete arg4; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect);
4074 return r_ans; }
R_swig_vectorvInt___delslice__(SEXP self,SEXP i,SEXP j)4075 SWIGEXPORT SEXP R_swig_vectorvInt___delslice__ ( SEXP self, SEXP i, SEXP j) {
4076 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
4077 std::vector< std::vector< int > >::difference_type arg2 ; std::vector< std::vector< int > >::difference_type arg3 ;
4078 void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; unsigned int r_nprotect = 0;
4079 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4080 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 | 0 );
4081 if (!SWIG_IsOK(res1)) {
4082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorvInt___delslice__" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'"); }
4083 arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2);
4084 if (!SWIG_IsOK(ecode2)) {
4085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorvInt___delslice__" "', argument " "2"" of type '" "std::vector< std::vector< int > >::difference_type""'"); }
4086 arg2 = static_cast< std::vector< std::vector< int > >::difference_type >(val2); ecode3 = SWIG_AsVal_int(j, &val3);
4087 if (!SWIG_IsOK(ecode3)) {
4088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorvInt___delslice__" "', argument " "3"" of type '" "std::vector< std::vector< int > >::difference_type""'"); }
4089 arg3 = static_cast< std::vector< std::vector< int > >::difference_type >(val3); try {
4090 std_vector_Sl_std_vector_Sl_int_Sg__Sg____delslice__(arg1,arg2,arg3);} catch(std::out_of_range &_e) { return R_NilValue;
4091 ; } r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorvInt___delitem__(SEXP self,SEXP i)4092 SWIGEXPORT SEXP R_swig_vectorvInt___delitem__ ( SEXP self, SEXP i) {
4093 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
4094 std::vector< std::vector< int > >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ;
4095 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4096 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 | 0 );
4097 if (!SWIG_IsOK(res1)) {
4098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorvInt___delitem__" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'"); }
4099 arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2);
4100 if (!SWIG_IsOK(ecode2)) {
4101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorvInt___delitem__" "', argument " "2"" of type '" "std::vector< std::vector< int > >::difference_type""'"); }
4102 arg2 = static_cast< std::vector< std::vector< int > >::difference_type >(val2); try {
4103 std_vector_Sl_std_vector_Sl_int_Sg__Sg____delitem__(arg1,arg2);} catch(std::out_of_range &_e) { return R_NilValue; ; }
4104 r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorvInt___getitem__(SEXP self,SEXP i,SEXP s_swig_copy)4105 SWIGEXPORT SEXP R_swig_vectorvInt___getitem__ ( SEXP self, SEXP i, SEXP s_swig_copy) {
4106 std::vector< std::vector< int > >::value_type *result = 0 ;
4107 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
4108 std::vector< std::vector< int > >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ;
4109 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4110 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 | 0 );
4111 if (!SWIG_IsOK(res1)) {
4112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorvInt___getitem__" "', argument " "1"" of type '" "std::vector< std::vector< int > > const *""'"); }
4113 arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2);
4114 if (!SWIG_IsOK(ecode2)) {
4115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorvInt___getitem__" "', argument " "2"" of type '" "std::vector< std::vector< int > >::difference_type""'"); }
4116 arg2 = static_cast< std::vector< std::vector< int > >::difference_type >(val2); try {
4117 result = (std::vector< std::vector< int > >::value_type *) &std_vector_Sl_std_vector_Sl_int_Sg__Sg____getitem__((std::vector< std::vector< int > > const *)arg1,arg2);}
4118 catch(std::out_of_range &_e) { return R_NilValue; ; }
4119 r_ans = swig::from(static_cast< std::vector<int,std::allocator< int > > >(*result)); vmaxset(r_vmax);
4120 if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorvInt___setitem__(SEXP self,SEXP i,SEXP x)4121 SWIGEXPORT SEXP R_swig_vectorvInt___setitem__ ( SEXP self, SEXP i, SEXP x) {
4122 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
4123 std::vector< std::vector< int > >::difference_type arg2 ; std::vector< std::vector< int > >::value_type *arg3 = 0 ;
4124 void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; unsigned int r_nprotect = 0;
4125 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4126 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 | 0 );
4127 if (!SWIG_IsOK(res1)) {
4128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorvInt___setitem__" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'"); }
4129 arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2);
4130 if (!SWIG_IsOK(ecode2)) {
4131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorvInt___setitem__" "', argument " "2"" of type '" "std::vector< std::vector< int > >::difference_type""'"); }
4132 arg2 = static_cast< std::vector< std::vector< int > >::difference_type >(val2); {
4133 std::vector<int,std::allocator< int > > *ptr = (std::vector<int,std::allocator< int > > *)0; res3 = swig::asptr(x, &ptr);
4134 if (!SWIG_IsOK(res3)) {
4135 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vectorvInt___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< int > >::value_type const &""'"); }
4136 if (!ptr) {
4137 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorvInt___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< int > >::value_type const &""'"); }
4138 arg3 = ptr; } try {
4139 std_vector_Sl_std_vector_Sl_int_Sg__Sg____setitem__(arg1,arg2,(std::vector< int,std::allocator< int > > const &)*arg3);}
4140 catch(std::out_of_range &_e) { return R_NilValue; ; } r_ans = R_NilValue; if (SWIG_IsNewObj(res3)) delete arg3;
4141 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorvInt__SWIG_0()4142 SWIGEXPORT SEXP R_swig_new_vectorvInt__SWIG_0 ( ) { std::vector< std::vector< int > > *result = 0 ; unsigned int r_nprotect = 0;
4143 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4144 result = (std::vector< std::vector< int > > *)new std::vector< std::vector< int > >();
4145 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, R_SWIG_OWNER | 0 );
4146 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorvInt__SWIG_1(SEXP s_arg1)4147 SWIGEXPORT SEXP R_swig_new_vectorvInt__SWIG_1 ( SEXP s_arg1) { std::vector< std::vector< int > > *result = 0 ;
4148 std::vector< std::vector< int,std::allocator< int > > > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; unsigned int r_nprotect = 0;
4149 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; {
4150 std::vector<std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *ptr = (std::vector<std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *)0;
4151 res1 = swig::asptr(s_arg1, &ptr); if (!SWIG_IsOK(res1)) {
4152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_vectorvInt" "', argument " "1"" of type '" "std::vector< std::vector< int,std::allocator< int > > > const &""'"); }
4153 if (!ptr) {
4154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vectorvInt" "', argument " "1"" of type '" "std::vector< std::vector< int,std::allocator< int > > > const &""'"); }
4155 arg1 = ptr; }
4156 result = (std::vector< std::vector< int > > *)new std::vector< std::vector< int > >((std::vector< std::vector< int,std::allocator< int > > > const &)*arg1);
4157 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, R_SWIG_OWNER | 0 );
4158 if (SWIG_IsNewObj(res1)) delete arg1; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorvInt_size(SEXP self,SEXP s_swig_copy)4159 SWIGEXPORT SEXP R_swig_vectorvInt_size ( SEXP self, SEXP s_swig_copy) { std::vector< std::vector< int > >::size_type result;
4160 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ;
4161 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4162 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 | 0 );
4163 if (!SWIG_IsOK(res1)) {
4164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorvInt_size" "', argument " "1"" of type '" "std::vector< std::vector< int > > const *""'"); }
4165 arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
4166 result = ((std::vector< std::vector< int > > const *)arg1)->size(); r_ans = SWIG_From_int(static_cast< int >(result));
4167 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorvInt__SWIG_2(SEXP size)4168 SWIGEXPORT SEXP R_swig_new_vectorvInt__SWIG_2 ( SEXP size) { std::vector< std::vector< int > > *result = 0 ;
4169 std::vector< std::vector< int > >::size_type arg1 ; int val1 ; int ecode1 = 0 ; unsigned int r_nprotect = 0;
4170 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; ecode1 = SWIG_AsVal_int(size, &val1); if (!SWIG_IsOK(ecode1)) {
4171 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vectorvInt" "', argument " "1"" of type '" "std::vector< std::vector< int > >::size_type""'"); }
4172 arg1 = static_cast< std::vector< std::vector< int > >::size_type >(val1);
4173 result = (std::vector< std::vector< int > > *)new std::vector< std::vector< int > >(arg1);
4174 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, R_SWIG_OWNER | 0 );
4175 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorvInt__SWIG_3(SEXP size,SEXP value)4176 SWIGEXPORT SEXP R_swig_new_vectorvInt__SWIG_3 ( SEXP size, SEXP value) { std::vector< std::vector< int > > *result = 0 ;
4177 std::vector< std::vector< int > >::size_type arg1 ; std::vector< std::vector< int > >::value_type *arg2 = 0 ; int val1 ;
4178 int ecode1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4179 ecode1 = SWIG_AsVal_int(size, &val1); if (!SWIG_IsOK(ecode1)) {
4180 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vectorvInt" "', argument " "1"" of type '" "std::vector< std::vector< int > >::size_type""'"); }
4181 arg1 = static_cast< std::vector< std::vector< int > >::size_type >(val1); {
4182 std::vector<int,std::allocator< int > > *ptr = (std::vector<int,std::allocator< int > > *)0;
4183 res2 = swig::asptr(value, &ptr); if (!SWIG_IsOK(res2)) {
4184 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_vectorvInt" "', argument " "2"" of type '" "std::vector< std::vector< int > >::value_type const &""'"); }
4185 if (!ptr) {
4186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vectorvInt" "', argument " "2"" of type '" "std::vector< std::vector< int > >::value_type const &""'"); }
4187 arg2 = ptr; }
4188 result = (std::vector< std::vector< int > > *)new std::vector< std::vector< int > >(arg1,(std::vector< std::vector< int > >::value_type const &)*arg2);
4189 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, R_SWIG_OWNER | 0 );
4190 if (SWIG_IsNewObj(res2)) delete arg2; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_delete_vectorvInt(SEXP self)4191 SWIGEXPORT SEXP R_swig_delete_vectorvInt ( SEXP self) {
4192 std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ;
4193 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4194 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, SWIG_POINTER_DISOWN | 0 );
4195 if (!SWIG_IsOK(res1)) {
4196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_vectorvInt" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'"); }
4197 arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1); delete arg1; r_ans = R_NilValue; vmaxset(r_vmax);
4198 if(r_nprotect) Rf_unprotect(r_nprotect); R_ClearExternalPtr(self); return r_ans; }
R_swig_vectorDouble___nonzero__(SEXP self,SEXP s_swig_copy)4199 SWIGEXPORT SEXP R_swig_vectorDouble___nonzero__ ( SEXP self, SEXP s_swig_copy) { bool result;
4200 std::vector< double > *arg1 = (std::vector< double > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0;
4201 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4202 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
4203 if (!SWIG_IsOK(res1)) {
4204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorDouble___nonzero__" "', argument " "1"" of type '" "std::vector< double > const *""'"); }
4205 arg1 = reinterpret_cast< std::vector< double > * >(argp1);
4206 result = (bool)std_vector_Sl_double_Sg____nonzero__((std::vector< double > const *)arg1); r_ans = Rf_ScalarLogical(result);
4207 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorDouble___len__(SEXP self,SEXP s_swig_copy)4208 SWIGEXPORT SEXP R_swig_vectorDouble___len__ ( SEXP self, SEXP s_swig_copy) { std::vector< double >::size_type result;
4209 std::vector< double > *arg1 = (std::vector< double > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0;
4210 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4211 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
4212 if (!SWIG_IsOK(res1)) {
4213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorDouble___len__" "', argument " "1"" of type '" "std::vector< double > const *""'"); }
4214 arg1 = reinterpret_cast< std::vector< double > * >(argp1);
4215 result = std_vector_Sl_double_Sg____len__((std::vector< double > const *)arg1);
4216 r_ans = SWIG_From_int(static_cast< int >(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorDouble___getslice__(SEXP self,SEXP i,SEXP j)4217 SWIGEXPORT SEXP R_swig_vectorDouble___getslice__ ( SEXP self, SEXP i, SEXP j) {
4218 std::vector< double,std::allocator< double > > *result = 0 ; std::vector< double > *arg1 = (std::vector< double > *) 0 ;
4219 std::vector< double >::difference_type arg2 ; std::vector< double >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ;
4220 int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ;
4221 VMAXTYPE r_vmax = vmaxget() ;
4222 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
4223 if (!SWIG_IsOK(res1)) {
4224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorDouble___getslice__" "', argument " "1"" of type '" "std::vector< double > *""'"); }
4225 arg1 = reinterpret_cast< std::vector< double > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
4226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorDouble___getslice__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'"); }
4227 arg2 = static_cast< std::vector< double >::difference_type >(val2); ecode3 = SWIG_AsVal_int(j, &val3);
4228 if (!SWIG_IsOK(ecode3)) {
4229 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorDouble___getslice__" "', argument " "3"" of type '" "std::vector< double >::difference_type""'"); }
4230 arg3 = static_cast< std::vector< double >::difference_type >(val3); try {
4231 result = (std::vector< double,std::allocator< double > > *)std_vector_Sl_double_Sg____getslice__(arg1,arg2,arg3);}
4232 catch(std::out_of_range &_e) { return R_NilValue; ; }
4233 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, R_SWIG_OWNER | 0 );
4234 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorDouble___setslice__(SEXP self,SEXP i,SEXP j,SEXP v)4235 SWIGEXPORT SEXP R_swig_vectorDouble___setslice__ ( SEXP self, SEXP i, SEXP j, SEXP v) {
4236 std::vector< double > *arg1 = (std::vector< double > *) 0 ; std::vector< double >::difference_type arg2 ;
4237 std::vector< double >::difference_type arg3 ; std::vector< double,std::allocator< double > > *arg4 = 0 ; void *argp1 = 0 ;
4238 int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; unsigned int r_nprotect = 0;
4239 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4240 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
4241 if (!SWIG_IsOK(res1)) {
4242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorDouble___setslice__" "', argument " "1"" of type '" "std::vector< double > *""'"); }
4243 arg1 = reinterpret_cast< std::vector< double > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
4244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorDouble___setslice__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'"); }
4245 arg2 = static_cast< std::vector< double >::difference_type >(val2); ecode3 = SWIG_AsVal_int(j, &val3);
4246 if (!SWIG_IsOK(ecode3)) {
4247 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorDouble___setslice__" "', argument " "3"" of type '" "std::vector< double >::difference_type""'"); }
4248 arg3 = static_cast< std::vector< double >::difference_type >(val3); {
4249 std::vector<double,std::allocator< double > > *ptr = (std::vector<double,std::allocator< double > > *)0;
4250 res4 = swig::asptr(v, &ptr); if (!SWIG_IsOK(res4)) {
4251 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vectorDouble___setslice__" "', argument " "4"" of type '" "std::vector< double,std::allocator< double > > const &""'"); }
4252 if (!ptr) {
4253 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorDouble___setslice__" "', argument " "4"" of type '" "std::vector< double,std::allocator< double > > const &""'"); }
4254 arg4 = ptr; } try {
4255 std_vector_Sl_double_Sg____setslice__(arg1,arg2,arg3,(std::vector< double,std::allocator< double > > const &)*arg4);}
4256 catch(std::out_of_range &_e) { return R_NilValue; ; } catch(std::invalid_argument &_e) { return R_NilValue; ; }
4257 r_ans = R_NilValue; if (SWIG_IsNewObj(res4)) delete arg4; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect);
4258 return r_ans; }
R_swig_vectorDouble___delslice__(SEXP self,SEXP i,SEXP j)4259 SWIGEXPORT SEXP R_swig_vectorDouble___delslice__ ( SEXP self, SEXP i, SEXP j) {
4260 std::vector< double > *arg1 = (std::vector< double > *) 0 ; std::vector< double >::difference_type arg2 ;
4261 std::vector< double >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ;
4262 int ecode3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4263 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
4264 if (!SWIG_IsOK(res1)) {
4265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorDouble___delslice__" "', argument " "1"" of type '" "std::vector< double > *""'"); }
4266 arg1 = reinterpret_cast< std::vector< double > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
4267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorDouble___delslice__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'"); }
4268 arg2 = static_cast< std::vector< double >::difference_type >(val2); ecode3 = SWIG_AsVal_int(j, &val3);
4269 if (!SWIG_IsOK(ecode3)) {
4270 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorDouble___delslice__" "', argument " "3"" of type '" "std::vector< double >::difference_type""'"); }
4271 arg3 = static_cast< std::vector< double >::difference_type >(val3); try {
4272 std_vector_Sl_double_Sg____delslice__(arg1,arg2,arg3);} catch(std::out_of_range &_e) { return R_NilValue; ; }
4273 r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorDouble___delitem__(SEXP self,SEXP i)4274 SWIGEXPORT SEXP R_swig_vectorDouble___delitem__ ( SEXP self, SEXP i) {
4275 std::vector< double > *arg1 = (std::vector< double > *) 0 ; std::vector< double >::difference_type arg2 ; void *argp1 = 0 ;
4276 int res1 = 0 ; int val2 ; int ecode2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ;
4277 VMAXTYPE r_vmax = vmaxget() ;
4278 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
4279 if (!SWIG_IsOK(res1)) {
4280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorDouble___delitem__" "', argument " "1"" of type '" "std::vector< double > *""'"); }
4281 arg1 = reinterpret_cast< std::vector< double > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
4282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorDouble___delitem__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'"); }
4283 arg2 = static_cast< std::vector< double >::difference_type >(val2); try { std_vector_Sl_double_Sg____delitem__(arg1,arg2);}
4284 catch(std::out_of_range &_e) { return R_NilValue; ; } r_ans = R_NilValue; vmaxset(r_vmax);
4285 if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorDouble___getitem__(SEXP self,SEXP i,SEXP s_swig_copy)4286 SWIGEXPORT SEXP R_swig_vectorDouble___getitem__ ( SEXP self, SEXP i, SEXP s_swig_copy) {
4287 std::vector< double >::value_type *result = 0 ; std::vector< double > *arg1 = (std::vector< double > *) 0 ;
4288 std::vector< double >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ;
4289 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4290 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
4291 if (!SWIG_IsOK(res1)) {
4292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorDouble___getitem__" "', argument " "1"" of type '" "std::vector< double > const *""'"); }
4293 arg1 = reinterpret_cast< std::vector< double > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
4294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorDouble___getitem__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'"); }
4295 arg2 = static_cast< std::vector< double >::difference_type >(val2); try {
4296 result = (std::vector< double >::value_type *) &std_vector_Sl_double_Sg____getitem__((std::vector< double > const *)arg1,arg2);}
4297 catch(std::out_of_range &_e) { return R_NilValue; ; } r_ans = SWIG_From_double(static_cast< double >(*result));
4298 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorDouble___setitem__(SEXP self,SEXP i,SEXP x)4299 SWIGEXPORT SEXP R_swig_vectorDouble___setitem__ ( SEXP self, SEXP i, SEXP x) {
4300 std::vector< double > *arg1 = (std::vector< double > *) 0 ; std::vector< double >::difference_type arg2 ;
4301 std::vector< double >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ;
4302 std::vector< double >::value_type temp3 ; double val3 ; int ecode3 = 0 ; unsigned int r_nprotect = 0;
4303 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4304 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
4305 if (!SWIG_IsOK(res1)) {
4306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorDouble___setitem__" "', argument " "1"" of type '" "std::vector< double > *""'"); }
4307 arg1 = reinterpret_cast< std::vector< double > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
4308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorDouble___setitem__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'"); }
4309 arg2 = static_cast< std::vector< double >::difference_type >(val2); ecode3 = SWIG_AsVal_double(x, &val3);
4310 if (!SWIG_IsOK(ecode3)) {
4311 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorDouble___setitem__" "', argument " "3"" of type '" "std::vector< double >::value_type""'"); }
4312 temp3 = static_cast< std::vector< double >::value_type >(val3); arg3 = &temp3; try {
4313 std_vector_Sl_double_Sg____setitem__(arg1,arg2,(double const &)*arg3);} catch(std::out_of_range &_e) { return R_NilValue;
4314 ; } r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorDouble__SWIG_0()4315 SWIGEXPORT SEXP R_swig_new_vectorDouble__SWIG_0 ( ) { std::vector< double > *result = 0 ; unsigned int r_nprotect = 0;
4316 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (std::vector< double > *)new std::vector< double >();
4317 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, R_SWIG_OWNER | 0 );
4318 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorDouble__SWIG_1(SEXP s_arg1)4319 SWIGEXPORT SEXP R_swig_new_vectorDouble__SWIG_1 ( SEXP s_arg1) { std::vector< double > *result = 0 ;
4320 std::vector< double > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ;
4321 VMAXTYPE r_vmax = vmaxget() ; {
4322 std::vector<double,std::allocator< double > > *ptr = (std::vector<double,std::allocator< double > > *)0;
4323 res1 = swig::asptr(s_arg1, &ptr); if (!SWIG_IsOK(res1)) {
4324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_vectorDouble" "', argument " "1"" of type '" "std::vector< double > const &""'"); }
4325 if (!ptr) {
4326 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vectorDouble" "', argument " "1"" of type '" "std::vector< double > const &""'"); }
4327 arg1 = ptr; } result = (std::vector< double > *)new std::vector< double >((std::vector< double > const &)*arg1);
4328 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, R_SWIG_OWNER | 0 );
4329 if (SWIG_IsNewObj(res1)) delete arg1; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorDouble_size(SEXP self,SEXP s_swig_copy)4330 SWIGEXPORT SEXP R_swig_vectorDouble_size ( SEXP self, SEXP s_swig_copy) { std::vector< double >::size_type result;
4331 std::vector< double > *arg1 = (std::vector< double > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0;
4332 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4333 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
4334 if (!SWIG_IsOK(res1)) {
4335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorDouble_size" "', argument " "1"" of type '" "std::vector< double > const *""'"); }
4336 arg1 = reinterpret_cast< std::vector< double > * >(argp1); result = ((std::vector< double > const *)arg1)->size();
4337 r_ans = SWIG_From_int(static_cast< int >(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorDouble__SWIG_2(SEXP size)4338 SWIGEXPORT SEXP R_swig_new_vectorDouble__SWIG_2 ( SEXP size) { std::vector< double > *result = 0 ;
4339 std::vector< double >::size_type arg1 ; int val1 ; int ecode1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ;
4340 VMAXTYPE r_vmax = vmaxget() ; ecode1 = SWIG_AsVal_int(size, &val1); if (!SWIG_IsOK(ecode1)) {
4341 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vectorDouble" "', argument " "1"" of type '" "std::vector< double >::size_type""'"); }
4342 arg1 = static_cast< std::vector< double >::size_type >(val1);
4343 result = (std::vector< double > *)new std::vector< double >(arg1);
4344 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, R_SWIG_OWNER | 0 );
4345 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorDouble__SWIG_3(SEXP size,SEXP value)4346 SWIGEXPORT SEXP R_swig_new_vectorDouble__SWIG_3 ( SEXP size, SEXP value) { std::vector< double > *result = 0 ;
4347 std::vector< double >::size_type arg1 ; std::vector< double >::value_type *arg2 = 0 ; int val1 ; int ecode1 = 0 ;
4348 std::vector< double >::value_type temp2 ; double val2 ; int ecode2 = 0 ; unsigned int r_nprotect = 0;
4349 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; ecode1 = SWIG_AsVal_int(size, &val1); if (!SWIG_IsOK(ecode1)) {
4350 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vectorDouble" "', argument " "1"" of type '" "std::vector< double >::size_type""'"); }
4351 arg1 = static_cast< std::vector< double >::size_type >(val1); ecode2 = SWIG_AsVal_double(value, &val2);
4352 if (!SWIG_IsOK(ecode2)) {
4353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_vectorDouble" "', argument " "2"" of type '" "std::vector< double >::value_type""'"); }
4354 temp2 = static_cast< std::vector< double >::value_type >(val2); arg2 = &temp2;
4355 result = (std::vector< double > *)new std::vector< double >(arg1,(std::vector< double >::value_type const &)*arg2);
4356 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, R_SWIG_OWNER | 0 );
4357 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_delete_vectorDouble(SEXP self)4358 SWIGEXPORT SEXP R_swig_delete_vectorDouble ( SEXP self) { std::vector< double > *arg1 = (std::vector< double > *) 0 ;
4359 void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4360 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_DISOWN | 0 );
4361 if (!SWIG_IsOK(res1)) {
4362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_vectorDouble" "', argument " "1"" of type '" "std::vector< double > *""'"); }
4363 arg1 = reinterpret_cast< std::vector< double > * >(argp1); delete arg1; r_ans = R_NilValue; vmaxset(r_vmax);
4364 if(r_nprotect) Rf_unprotect(r_nprotect); R_ClearExternalPtr(self); return r_ans; }
R_swig_vectorString___nonzero__(SEXP self,SEXP s_swig_copy)4365 SWIGEXPORT SEXP R_swig_vectorString___nonzero__ ( SEXP self, SEXP s_swig_copy) { bool result;
4366 std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ;
4367 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4368 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
4369 if (!SWIG_IsOK(res1)) {
4370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorString___nonzero__" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); }
4371 arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
4372 result = (bool)std_vector_Sl_std_string_Sg____nonzero__((std::vector< std::string > const *)arg1);
4373 r_ans = Rf_ScalarLogical(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorString___len__(SEXP self,SEXP s_swig_copy)4374 SWIGEXPORT SEXP R_swig_vectorString___len__ ( SEXP self, SEXP s_swig_copy) { std::vector< std::string >::size_type result;
4375 std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ;
4376 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4377 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
4378 if (!SWIG_IsOK(res1)) {
4379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorString___len__" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); }
4380 arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
4381 result = std_vector_Sl_std_string_Sg____len__((std::vector< std::string > const *)arg1);
4382 r_ans = SWIG_From_int(static_cast< int >(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorString___getslice__(SEXP self,SEXP i,SEXP j)4383 SWIGEXPORT SEXP R_swig_vectorString___getslice__ ( SEXP self, SEXP i, SEXP j) {
4384 std::vector< std::string,std::allocator< std::string > > *result = 0 ;
4385 std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::difference_type arg2 ;
4386 std::vector< std::string >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ;
4387 int ecode3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4388 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
4389 if (!SWIG_IsOK(res1)) {
4390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorString___getslice__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); }
4391 arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
4392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorString___getslice__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); }
4393 arg2 = static_cast< std::vector< std::string >::difference_type >(val2); ecode3 = SWIG_AsVal_int(j, &val3);
4394 if (!SWIG_IsOK(ecode3)) {
4395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorString___getslice__" "', argument " "3"" of type '" "std::vector< std::string >::difference_type""'"); }
4396 arg3 = static_cast< std::vector< std::string >::difference_type >(val3); try {
4397 result = (std::vector< std::string,std::allocator< std::string > > *)std_vector_Sl_std_string_Sg____getslice__(arg1,arg2,arg3);}
4398 catch(std::out_of_range &_e) { return R_NilValue; ; }
4399 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, R_SWIG_OWNER | 0 );
4400 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorString___setslice__(SEXP self,SEXP i,SEXP j,SEXP v)4401 SWIGEXPORT SEXP R_swig_vectorString___setslice__ ( SEXP self, SEXP i, SEXP j, SEXP v) {
4402 std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::difference_type arg2 ;
4403 std::vector< std::string >::difference_type arg3 ; std::vector< std::string,std::allocator< std::string > > *arg4 = 0 ;
4404 void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ;
4405 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4406 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
4407 if (!SWIG_IsOK(res1)) {
4408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorString___setslice__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); }
4409 arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
4410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorString___setslice__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); }
4411 arg2 = static_cast< std::vector< std::string >::difference_type >(val2); ecode3 = SWIG_AsVal_int(j, &val3);
4412 if (!SWIG_IsOK(ecode3)) {
4413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorString___setslice__" "', argument " "3"" of type '" "std::vector< std::string >::difference_type""'"); }
4414 arg3 = static_cast< std::vector< std::string >::difference_type >(val3); {
4415 std::vector<std::string,std::allocator< std::string > > *ptr = (std::vector<std::string,std::allocator< std::string > > *)0;
4416 res4 = swig::asptr(v, &ptr); if (!SWIG_IsOK(res4)) {
4417 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vectorString___setslice__" "', argument " "4"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); }
4418 if (!ptr) {
4419 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorString___setslice__" "', argument " "4"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); }
4420 arg4 = ptr; } try {
4421 std_vector_Sl_std_string_Sg____setslice__(arg1,arg2,arg3,(std::vector< std::string,std::allocator< std::string > > const &)*arg4);}
4422 catch(std::out_of_range &_e) { return R_NilValue; ; } catch(std::invalid_argument &_e) { return R_NilValue; ; }
4423 r_ans = R_NilValue; if (SWIG_IsNewObj(res4)) delete arg4; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect);
4424 return r_ans; }
R_swig_vectorString___delslice__(SEXP self,SEXP i,SEXP j)4425 SWIGEXPORT SEXP R_swig_vectorString___delslice__ ( SEXP self, SEXP i, SEXP j) {
4426 std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::difference_type arg2 ;
4427 std::vector< std::string >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ;
4428 int ecode3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4429 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
4430 if (!SWIG_IsOK(res1)) {
4431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorString___delslice__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); }
4432 arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
4433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorString___delslice__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); }
4434 arg2 = static_cast< std::vector< std::string >::difference_type >(val2); ecode3 = SWIG_AsVal_int(j, &val3);
4435 if (!SWIG_IsOK(ecode3)) {
4436 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorString___delslice__" "', argument " "3"" of type '" "std::vector< std::string >::difference_type""'"); }
4437 arg3 = static_cast< std::vector< std::string >::difference_type >(val3); try {
4438 std_vector_Sl_std_string_Sg____delslice__(arg1,arg2,arg3);} catch(std::out_of_range &_e) { return R_NilValue; ; }
4439 r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorString___delitem__(SEXP self,SEXP i)4440 SWIGEXPORT SEXP R_swig_vectorString___delitem__ ( SEXP self, SEXP i) {
4441 std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::difference_type arg2 ;
4442 void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ;
4443 VMAXTYPE r_vmax = vmaxget() ;
4444 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
4445 if (!SWIG_IsOK(res1)) {
4446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorString___delitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); }
4447 arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
4448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorString___delitem__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); }
4449 arg2 = static_cast< std::vector< std::string >::difference_type >(val2); try {
4450 std_vector_Sl_std_string_Sg____delitem__(arg1,arg2);} catch(std::out_of_range &_e) { return R_NilValue; ; }
4451 r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorString___getitem__(SEXP self,SEXP i,SEXP s_swig_copy)4452 SWIGEXPORT SEXP R_swig_vectorString___getitem__ ( SEXP self, SEXP i, SEXP s_swig_copy) {
4453 std::vector< std::string >::value_type *result = 0 ; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
4454 std::vector< std::string >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ;
4455 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4456 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
4457 if (!SWIG_IsOK(res1)) {
4458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorString___getitem__" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); }
4459 arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
4460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorString___getitem__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); }
4461 arg2 = static_cast< std::vector< std::string >::difference_type >(val2); try {
4462 result = (std::vector< std::string >::value_type *) &std_vector_Sl_std_string_Sg____getitem__((std::vector< std::string > const *)arg1,arg2);}
4463 catch(std::out_of_range &_e) { return R_NilValue; ; } r_ans = SWIG_From_std_string(static_cast< std::string >(*result));
4464 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorString___setitem__(SEXP self,SEXP i,SEXP x)4465 SWIGEXPORT SEXP R_swig_vectorString___setitem__ ( SEXP self, SEXP i, SEXP x) {
4466 std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::difference_type arg2 ;
4467 std::vector< std::string >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ;
4468 int res3 = SWIG_OLDOBJ ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4469 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
4470 if (!SWIG_IsOK(res1)) {
4471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorString___setitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); }
4472 arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2); if (!SWIG_IsOK(ecode2)) {
4473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorString___setitem__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); }
4474 arg2 = static_cast< std::vector< std::string >::difference_type >(val2); { std::string *ptr = (std::string *)0;
4475 res3 = SWIG_AsPtr_std_string(x, &ptr); if (!SWIG_IsOK(res3)) {
4476 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vectorString___setitem__" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); }
4477 if (!ptr) {
4478 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorString___setitem__" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); }
4479 arg3 = ptr; } try { std_vector_Sl_std_string_Sg____setitem__(arg1,arg2,(std::string const &)*arg3);}
4480 catch(std::out_of_range &_e) { return R_NilValue; ; } r_ans = R_NilValue; if (SWIG_IsNewObj(res3)) delete arg3;
4481 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorString__SWIG_0()4482 SWIGEXPORT SEXP R_swig_new_vectorString__SWIG_0 ( ) { std::vector< std::string > *result = 0 ; unsigned int r_nprotect = 0;
4483 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4484 result = (std::vector< std::string > *)new std::vector< std::string >();
4485 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, R_SWIG_OWNER | 0 );
4486 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorString__SWIG_1(SEXP s_arg1)4487 SWIGEXPORT SEXP R_swig_new_vectorString__SWIG_1 ( SEXP s_arg1) { std::vector< std::string > *result = 0 ;
4488 std::vector< std::string > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ;
4489 VMAXTYPE r_vmax = vmaxget() ; {
4490 std::vector<std::string,std::allocator< std::string > > *ptr = (std::vector<std::string,std::allocator< std::string > > *)0;
4491 res1 = swig::asptr(s_arg1, &ptr); if (!SWIG_IsOK(res1)) {
4492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_vectorString" "', argument " "1"" of type '" "std::vector< std::string > const &""'"); }
4493 if (!ptr) {
4494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vectorString" "', argument " "1"" of type '" "std::vector< std::string > const &""'"); }
4495 arg1 = ptr; }
4496 result = (std::vector< std::string > *)new std::vector< std::string >((std::vector< std::string > const &)*arg1);
4497 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, R_SWIG_OWNER | 0 );
4498 if (SWIG_IsNewObj(res1)) delete arg1; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorString_size(SEXP self,SEXP s_swig_copy)4499 SWIGEXPORT SEXP R_swig_vectorString_size ( SEXP self, SEXP s_swig_copy) { std::vector< std::string >::size_type result;
4500 std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ;
4501 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4502 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
4503 if (!SWIG_IsOK(res1)) {
4504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorString_size" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); }
4505 arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); result = ((std::vector< std::string > const *)arg1)->size();
4506 r_ans = SWIG_From_int(static_cast< int >(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorString__SWIG_2(SEXP size)4507 SWIGEXPORT SEXP R_swig_new_vectorString__SWIG_2 ( SEXP size) { std::vector< std::string > *result = 0 ;
4508 std::vector< std::string >::size_type arg1 ; int val1 ; int ecode1 = 0 ; unsigned int r_nprotect = 0;
4509 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; ecode1 = SWIG_AsVal_int(size, &val1); if (!SWIG_IsOK(ecode1)) {
4510 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vectorString" "', argument " "1"" of type '" "std::vector< std::string >::size_type""'"); }
4511 arg1 = static_cast< std::vector< std::string >::size_type >(val1);
4512 result = (std::vector< std::string > *)new std::vector< std::string >(arg1);
4513 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, R_SWIG_OWNER | 0 );
4514 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorString__SWIG_3(SEXP size,SEXP value)4515 SWIGEXPORT SEXP R_swig_new_vectorString__SWIG_3 ( SEXP size, SEXP value) { std::vector< std::string > *result = 0 ;
4516 std::vector< std::string >::size_type arg1 ; std::vector< std::string >::value_type *arg2 = 0 ; int val1 ; int ecode1 = 0 ;
4517 int res2 = SWIG_OLDOBJ ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4518 ecode1 = SWIG_AsVal_int(size, &val1); if (!SWIG_IsOK(ecode1)) {
4519 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vectorString" "', argument " "1"" of type '" "std::vector< std::string >::size_type""'"); }
4520 arg1 = static_cast< std::vector< std::string >::size_type >(val1); { std::string *ptr = (std::string *)0;
4521 res2 = SWIG_AsPtr_std_string(value, &ptr); if (!SWIG_IsOK(res2)) {
4522 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_vectorString" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'"); }
4523 if (!ptr) {
4524 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vectorString" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'"); }
4525 arg2 = ptr; }
4526 result = (std::vector< std::string > *)new std::vector< std::string >(arg1,(std::vector< std::string >::value_type const &)*arg2);
4527 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, R_SWIG_OWNER | 0 );
4528 if (SWIG_IsNewObj(res2)) delete arg2; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_delete_vectorString(SEXP self)4529 SWIGEXPORT SEXP R_swig_delete_vectorString ( SEXP self) { std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
4530 void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4531 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_DISOWN | 0 );
4532 if (!SWIG_IsOK(res1)) {
4533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_vectorString" "', argument " "1"" of type '" "std::vector< std::string > *""'"); }
4534 arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); delete arg1; r_ans = R_NilValue; vmaxset(r_vmax);
4535 if(r_nprotect) Rf_unprotect(r_nprotect); R_ClearExternalPtr(self); return r_ans; }
R_swig_vectorVector3___nonzero__(SEXP self,SEXP s_swig_copy)4536 SWIGEXPORT SEXP R_swig_vectorVector3___nonzero__ ( SEXP self, SEXP s_swig_copy) { bool result;
4537 std::vector< OpenBabel::vector3 > *arg1 = (std::vector< OpenBabel::vector3 > *) 0 ; void *argp1 = 0 ; int res1 = 0 ;
4538 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4539 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t, 0 | 0 );
4540 if (!SWIG_IsOK(res1)) {
4541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorVector3___nonzero__" "', argument " "1"" of type '" "std::vector< OpenBabel::vector3 > const *""'"); }
4542 arg1 = reinterpret_cast< std::vector< OpenBabel::vector3 > * >(argp1);
4543 result = (bool)std_vector_Sl_OpenBabel_vector3_Sg____nonzero__((std::vector< OpenBabel::vector3 > const *)arg1);
4544 r_ans = Rf_ScalarLogical(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorVector3___len__(SEXP self,SEXP s_swig_copy)4545 SWIGEXPORT SEXP R_swig_vectorVector3___len__ ( SEXP self, SEXP s_swig_copy) {
4546 std::vector< OpenBabel::vector3 >::size_type result;
4547 std::vector< OpenBabel::vector3 > *arg1 = (std::vector< OpenBabel::vector3 > *) 0 ; void *argp1 = 0 ; int res1 = 0 ;
4548 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4549 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t, 0 | 0 );
4550 if (!SWIG_IsOK(res1)) {
4551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorVector3___len__" "', argument " "1"" of type '" "std::vector< OpenBabel::vector3 > const *""'"); }
4552 arg1 = reinterpret_cast< std::vector< OpenBabel::vector3 > * >(argp1);
4553 result = std_vector_Sl_OpenBabel_vector3_Sg____len__((std::vector< OpenBabel::vector3 > const *)arg1);
4554 r_ans = SWIG_From_int(static_cast< int >(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorVector3___getslice__(SEXP self,SEXP i,SEXP j)4555 SWIGEXPORT SEXP R_swig_vectorVector3___getslice__ ( SEXP self, SEXP i, SEXP j) {
4556 std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > *result = 0 ;
4557 std::vector< OpenBabel::vector3 > *arg1 = (std::vector< OpenBabel::vector3 > *) 0 ;
4558 std::vector< OpenBabel::vector3 >::difference_type arg2 ; std::vector< OpenBabel::vector3 >::difference_type arg3 ;
4559 void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; unsigned int r_nprotect = 0;
4560 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4561 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t, 0 | 0 );
4562 if (!SWIG_IsOK(res1)) {
4563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorVector3___getslice__" "', argument " "1"" of type '" "std::vector< OpenBabel::vector3 > *""'"); }
4564 arg1 = reinterpret_cast< std::vector< OpenBabel::vector3 > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2);
4565 if (!SWIG_IsOK(ecode2)) {
4566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorVector3___getslice__" "', argument " "2"" of type '" "std::vector< OpenBabel::vector3 >::difference_type""'"); }
4567 arg2 = static_cast< std::vector< OpenBabel::vector3 >::difference_type >(val2); ecode3 = SWIG_AsVal_int(j, &val3);
4568 if (!SWIG_IsOK(ecode3)) {
4569 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorVector3___getslice__" "', argument " "3"" of type '" "std::vector< OpenBabel::vector3 >::difference_type""'"); }
4570 arg3 = static_cast< std::vector< OpenBabel::vector3 >::difference_type >(val3); try {
4571 result = (std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > *)std_vector_Sl_OpenBabel_vector3_Sg____getslice__(arg1,arg2,arg3);}
4572 catch(std::out_of_range &_e) { return R_NilValue; ; }
4573 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t, R_SWIG_OWNER | 0 );
4574 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorVector3___setslice__(SEXP self,SEXP i,SEXP j,SEXP v)4575 SWIGEXPORT SEXP R_swig_vectorVector3___setslice__ ( SEXP self, SEXP i, SEXP j, SEXP v) {
4576 std::vector< OpenBabel::vector3 > *arg1 = (std::vector< OpenBabel::vector3 > *) 0 ;
4577 std::vector< OpenBabel::vector3 >::difference_type arg2 ; std::vector< OpenBabel::vector3 >::difference_type arg3 ;
4578 std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ;
4579 int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ;
4580 VMAXTYPE r_vmax = vmaxget() ;
4581 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t, 0 | 0 );
4582 if (!SWIG_IsOK(res1)) {
4583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorVector3___setslice__" "', argument " "1"" of type '" "std::vector< OpenBabel::vector3 > *""'"); }
4584 arg1 = reinterpret_cast< std::vector< OpenBabel::vector3 > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2);
4585 if (!SWIG_IsOK(ecode2)) {
4586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorVector3___setslice__" "', argument " "2"" of type '" "std::vector< OpenBabel::vector3 >::difference_type""'"); }
4587 arg2 = static_cast< std::vector< OpenBabel::vector3 >::difference_type >(val2); ecode3 = SWIG_AsVal_int(j, &val3);
4588 if (!SWIG_IsOK(ecode3)) {
4589 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorVector3___setslice__" "', argument " "3"" of type '" "std::vector< OpenBabel::vector3 >::difference_type""'"); }
4590 arg3 = static_cast< std::vector< OpenBabel::vector3 >::difference_type >(val3); {
4591 std::vector<OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > *ptr = (std::vector<OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > *)0;
4592 res4 = swig::asptr(v, &ptr); if (!SWIG_IsOK(res4)) {
4593 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vectorVector3___setslice__" "', argument " "4"" of type '" "std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > const &""'"); }
4594 if (!ptr) {
4595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorVector3___setslice__" "', argument " "4"" of type '" "std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > const &""'"); }
4596 arg4 = ptr; } try {
4597 std_vector_Sl_OpenBabel_vector3_Sg____setslice__(arg1,arg2,arg3,(std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > const &)*arg4);}
4598 catch(std::out_of_range &_e) { return R_NilValue; ; } catch(std::invalid_argument &_e) { return R_NilValue; ; }
4599 r_ans = R_NilValue; if (SWIG_IsNewObj(res4)) delete arg4; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect);
4600 return r_ans; }
R_swig_vectorVector3___delslice__(SEXP self,SEXP i,SEXP j)4601 SWIGEXPORT SEXP R_swig_vectorVector3___delslice__ ( SEXP self, SEXP i, SEXP j) {
4602 std::vector< OpenBabel::vector3 > *arg1 = (std::vector< OpenBabel::vector3 > *) 0 ;
4603 std::vector< OpenBabel::vector3 >::difference_type arg2 ; std::vector< OpenBabel::vector3 >::difference_type arg3 ;
4604 void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; unsigned int r_nprotect = 0;
4605 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4606 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t, 0 | 0 );
4607 if (!SWIG_IsOK(res1)) {
4608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorVector3___delslice__" "', argument " "1"" of type '" "std::vector< OpenBabel::vector3 > *""'"); }
4609 arg1 = reinterpret_cast< std::vector< OpenBabel::vector3 > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2);
4610 if (!SWIG_IsOK(ecode2)) {
4611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorVector3___delslice__" "', argument " "2"" of type '" "std::vector< OpenBabel::vector3 >::difference_type""'"); }
4612 arg2 = static_cast< std::vector< OpenBabel::vector3 >::difference_type >(val2); ecode3 = SWIG_AsVal_int(j, &val3);
4613 if (!SWIG_IsOK(ecode3)) {
4614 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorVector3___delslice__" "', argument " "3"" of type '" "std::vector< OpenBabel::vector3 >::difference_type""'"); }
4615 arg3 = static_cast< std::vector< OpenBabel::vector3 >::difference_type >(val3); try {
4616 std_vector_Sl_OpenBabel_vector3_Sg____delslice__(arg1,arg2,arg3);} catch(std::out_of_range &_e) { return R_NilValue; ; }
4617 r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorVector3___delitem__(SEXP self,SEXP i)4618 SWIGEXPORT SEXP R_swig_vectorVector3___delitem__ ( SEXP self, SEXP i) {
4619 std::vector< OpenBabel::vector3 > *arg1 = (std::vector< OpenBabel::vector3 > *) 0 ;
4620 std::vector< OpenBabel::vector3 >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ;
4621 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4622 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t, 0 | 0 );
4623 if (!SWIG_IsOK(res1)) {
4624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorVector3___delitem__" "', argument " "1"" of type '" "std::vector< OpenBabel::vector3 > *""'"); }
4625 arg1 = reinterpret_cast< std::vector< OpenBabel::vector3 > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2);
4626 if (!SWIG_IsOK(ecode2)) {
4627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorVector3___delitem__" "', argument " "2"" of type '" "std::vector< OpenBabel::vector3 >::difference_type""'"); }
4628 arg2 = static_cast< std::vector< OpenBabel::vector3 >::difference_type >(val2); try {
4629 std_vector_Sl_OpenBabel_vector3_Sg____delitem__(arg1,arg2);} catch(std::out_of_range &_e) { return R_NilValue; ; }
4630 r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorVector3___getitem__(SEXP self,SEXP i,SEXP s_swig_copy)4631 SWIGEXPORT SEXP R_swig_vectorVector3___getitem__ ( SEXP self, SEXP i, SEXP s_swig_copy) {
4632 std::vector< OpenBabel::vector3 >::value_type *result = 0 ;
4633 std::vector< OpenBabel::vector3 > *arg1 = (std::vector< OpenBabel::vector3 > *) 0 ;
4634 std::vector< OpenBabel::vector3 >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ;
4635 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4636 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t, 0 | 0 );
4637 if (!SWIG_IsOK(res1)) {
4638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorVector3___getitem__" "', argument " "1"" of type '" "std::vector< OpenBabel::vector3 > const *""'"); }
4639 arg1 = reinterpret_cast< std::vector< OpenBabel::vector3 > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2);
4640 if (!SWIG_IsOK(ecode2)) {
4641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorVector3___getitem__" "', argument " "2"" of type '" "std::vector< OpenBabel::vector3 >::difference_type""'"); }
4642 arg2 = static_cast< std::vector< OpenBabel::vector3 >::difference_type >(val2); try {
4643 result = (std::vector< OpenBabel::vector3 >::value_type *) &std_vector_Sl_OpenBabel_vector3_Sg____getitem__((std::vector< OpenBabel::vector3 > const *)arg1,arg2);}
4644 catch(std::out_of_range &_e) { return R_NilValue; ; }
4645 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OpenBabel__vector3, R_SWIG_EXTERNAL | 0 ); vmaxset(r_vmax);
4646 if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorVector3___setitem__(SEXP self,SEXP i,SEXP x)4647 SWIGEXPORT SEXP R_swig_vectorVector3___setitem__ ( SEXP self, SEXP i, SEXP x) {
4648 std::vector< OpenBabel::vector3 > *arg1 = (std::vector< OpenBabel::vector3 > *) 0 ;
4649 std::vector< OpenBabel::vector3 >::difference_type arg2 ; std::vector< OpenBabel::vector3 >::value_type *arg3 = 0 ;
4650 void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 ; int res3 = 0 ; unsigned int r_nprotect = 0;
4651 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4652 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t, 0 | 0 );
4653 if (!SWIG_IsOK(res1)) {
4654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorVector3___setitem__" "', argument " "1"" of type '" "std::vector< OpenBabel::vector3 > *""'"); }
4655 arg1 = reinterpret_cast< std::vector< OpenBabel::vector3 > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2);
4656 if (!SWIG_IsOK(ecode2)) {
4657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorVector3___setitem__" "', argument " "2"" of type '" "std::vector< OpenBabel::vector3 >::difference_type""'"); }
4658 arg2 = static_cast< std::vector< OpenBabel::vector3 >::difference_type >(val2);
4659 res3 = SWIG_R_ConvertPtr(x, &argp3, SWIGTYPE_p_OpenBabel__vector3, 0 ); if (!SWIG_IsOK(res3)) {
4660 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vectorVector3___setitem__" "', argument " "3"" of type '" "std::vector< OpenBabel::vector3 >::value_type const &""'"); }
4661 if (!argp3) {
4662 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorVector3___setitem__" "', argument " "3"" of type '" "std::vector< OpenBabel::vector3 >::value_type const &""'"); }
4663 arg3 = reinterpret_cast< std::vector< OpenBabel::vector3 >::value_type * >(argp3); try {
4664 std_vector_Sl_OpenBabel_vector3_Sg____setitem__(arg1,arg2,(OpenBabel::vector3 const &)*arg3);}
4665 catch(std::out_of_range &_e) { return R_NilValue; ; } r_ans = R_NilValue; vmaxset(r_vmax);
4666 if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorVector3__SWIG_0()4667 SWIGEXPORT SEXP R_swig_new_vectorVector3__SWIG_0 ( ) { std::vector< OpenBabel::vector3 > *result = 0 ;
4668 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4669 result = (std::vector< OpenBabel::vector3 > *)new std::vector< OpenBabel::vector3 >();
4670 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t, R_SWIG_OWNER | 0 );
4671 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorVector3__SWIG_1(SEXP s_arg1)4672 SWIGEXPORT SEXP R_swig_new_vectorVector3__SWIG_1 ( SEXP s_arg1) { std::vector< OpenBabel::vector3 > *result = 0 ;
4673 std::vector< OpenBabel::vector3 > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ;
4674 VMAXTYPE r_vmax = vmaxget() ; {
4675 std::vector<OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > *ptr = (std::vector<OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > *)0;
4676 res1 = swig::asptr(s_arg1, &ptr); if (!SWIG_IsOK(res1)) {
4677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_vectorVector3" "', argument " "1"" of type '" "std::vector< OpenBabel::vector3 > const &""'"); }
4678 if (!ptr) {
4679 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vectorVector3" "', argument " "1"" of type '" "std::vector< OpenBabel::vector3 > const &""'"); }
4680 arg1 = ptr; }
4681 result = (std::vector< OpenBabel::vector3 > *)new std::vector< OpenBabel::vector3 >((std::vector< OpenBabel::vector3 > const &)*arg1);
4682 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t, R_SWIG_OWNER | 0 );
4683 if (SWIG_IsNewObj(res1)) delete arg1; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorVector3_size(SEXP self,SEXP s_swig_copy)4684 SWIGEXPORT SEXP R_swig_vectorVector3_size ( SEXP self, SEXP s_swig_copy) { std::vector< OpenBabel::vector3 >::size_type result;
4685 std::vector< OpenBabel::vector3 > *arg1 = (std::vector< OpenBabel::vector3 > *) 0 ; void *argp1 = 0 ; int res1 = 0 ;
4686 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4687 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t, 0 | 0 );
4688 if (!SWIG_IsOK(res1)) {
4689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorVector3_size" "', argument " "1"" of type '" "std::vector< OpenBabel::vector3 > const *""'"); }
4690 arg1 = reinterpret_cast< std::vector< OpenBabel::vector3 > * >(argp1);
4691 result = ((std::vector< OpenBabel::vector3 > const *)arg1)->size(); r_ans = SWIG_From_int(static_cast< int >(result));
4692 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorVector3__SWIG_2(SEXP size)4693 SWIGEXPORT SEXP R_swig_new_vectorVector3__SWIG_2 ( SEXP size) { std::vector< OpenBabel::vector3 > *result = 0 ;
4694 std::vector< OpenBabel::vector3 >::size_type arg1 ; int val1 ; int ecode1 = 0 ; unsigned int r_nprotect = 0;
4695 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; ecode1 = SWIG_AsVal_int(size, &val1); if (!SWIG_IsOK(ecode1)) {
4696 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vectorVector3" "', argument " "1"" of type '" "std::vector< OpenBabel::vector3 >::size_type""'"); }
4697 arg1 = static_cast< std::vector< OpenBabel::vector3 >::size_type >(val1);
4698 result = (std::vector< OpenBabel::vector3 > *)new std::vector< OpenBabel::vector3 >(arg1);
4699 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t, R_SWIG_OWNER | 0 );
4700 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorVector3__SWIG_3(SEXP size,SEXP value)4701 SWIGEXPORT SEXP R_swig_new_vectorVector3__SWIG_3 ( SEXP size, SEXP value) { std::vector< OpenBabel::vector3 > *result = 0 ;
4702 std::vector< OpenBabel::vector3 >::size_type arg1 ; std::vector< OpenBabel::vector3 >::value_type *arg2 = 0 ; int val1 ;
4703 int ecode1 = 0 ; void *argp2 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ;
4704 VMAXTYPE r_vmax = vmaxget() ; ecode1 = SWIG_AsVal_int(size, &val1); if (!SWIG_IsOK(ecode1)) {
4705 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vectorVector3" "', argument " "1"" of type '" "std::vector< OpenBabel::vector3 >::size_type""'"); }
4706 arg1 = static_cast< std::vector< OpenBabel::vector3 >::size_type >(val1);
4707 res2 = SWIG_R_ConvertPtr(value, &argp2, SWIGTYPE_p_OpenBabel__vector3, 0 ); if (!SWIG_IsOK(res2)) {
4708 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_vectorVector3" "', argument " "2"" of type '" "std::vector< OpenBabel::vector3 >::value_type const &""'"); }
4709 if (!argp2) {
4710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vectorVector3" "', argument " "2"" of type '" "std::vector< OpenBabel::vector3 >::value_type const &""'"); }
4711 arg2 = reinterpret_cast< std::vector< OpenBabel::vector3 >::value_type * >(argp2);
4712 result = (std::vector< OpenBabel::vector3 > *)new std::vector< OpenBabel::vector3 >(arg1,(std::vector< OpenBabel::vector3 >::value_type const &)*arg2);
4713 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t, R_SWIG_OWNER | 0 );
4714 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_delete_vectorVector3(SEXP self)4715 SWIGEXPORT SEXP R_swig_delete_vectorVector3 ( SEXP self) {
4716 std::vector< OpenBabel::vector3 > *arg1 = (std::vector< OpenBabel::vector3 > *) 0 ; void *argp1 = 0 ; int res1 = 0 ;
4717 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4718 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t, SWIG_POINTER_DISOWN | 0 );
4719 if (!SWIG_IsOK(res1)) {
4720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_vectorVector3" "', argument " "1"" of type '" "std::vector< OpenBabel::vector3 > *""'"); }
4721 arg1 = reinterpret_cast< std::vector< OpenBabel::vector3 > * >(argp1); delete arg1; r_ans = R_NilValue; vmaxset(r_vmax);
4722 if(r_nprotect) Rf_unprotect(r_nprotect); R_ClearExternalPtr(self); return r_ans; }
R_swig_vectorvVector3___nonzero__(SEXP self,SEXP s_swig_copy)4723 SWIGEXPORT SEXP R_swig_vectorvVector3___nonzero__ ( SEXP self, SEXP s_swig_copy) { bool result;
4724 std::vector< std::vector< OpenBabel::vector3 > > *arg1 = (std::vector< std::vector< OpenBabel::vector3 > > *) 0 ;
4725 void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4726 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_std__allocatorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_t_t, 0 | 0 );
4727 if (!SWIG_IsOK(res1)) {
4728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorvVector3___nonzero__" "', argument " "1"" of type '" "std::vector< std::vector< OpenBabel::vector3 > > const *""'"); }
4729 arg1 = reinterpret_cast< std::vector< std::vector< OpenBabel::vector3 > > * >(argp1);
4730 result = (bool)std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____nonzero__((std::vector< std::vector< OpenBabel::vector3 > > const *)arg1);
4731 r_ans = Rf_ScalarLogical(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorvVector3___len__(SEXP self,SEXP s_swig_copy)4732 SWIGEXPORT SEXP R_swig_vectorvVector3___len__ ( SEXP self, SEXP s_swig_copy) {
4733 std::vector< std::vector< OpenBabel::vector3 > >::size_type result;
4734 std::vector< std::vector< OpenBabel::vector3 > > *arg1 = (std::vector< std::vector< OpenBabel::vector3 > > *) 0 ;
4735 void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4736 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_std__allocatorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_t_t, 0 | 0 );
4737 if (!SWIG_IsOK(res1)) {
4738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorvVector3___len__" "', argument " "1"" of type '" "std::vector< std::vector< OpenBabel::vector3 > > const *""'"); }
4739 arg1 = reinterpret_cast< std::vector< std::vector< OpenBabel::vector3 > > * >(argp1);
4740 result = std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____len__((std::vector< std::vector< OpenBabel::vector3 > > const *)arg1);
4741 r_ans = SWIG_From_int(static_cast< int >(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorvVector3___getslice__(SEXP self,SEXP i,SEXP j)4742 SWIGEXPORT SEXP R_swig_vectorvVector3___getslice__ ( SEXP self, SEXP i, SEXP j) {
4743 std::vector< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > >,std::allocator< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > > > *result = 0 ;
4744 std::vector< std::vector< OpenBabel::vector3 > > *arg1 = (std::vector< std::vector< OpenBabel::vector3 > > *) 0 ;
4745 std::vector< std::vector< OpenBabel::vector3 > >::difference_type arg2 ;
4746 std::vector< std::vector< OpenBabel::vector3 > >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ;
4747 int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ;
4748 VMAXTYPE r_vmax = vmaxget() ;
4749 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_std__allocatorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_t_t, 0 | 0 );
4750 if (!SWIG_IsOK(res1)) {
4751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorvVector3___getslice__" "', argument " "1"" of type '" "std::vector< std::vector< OpenBabel::vector3 > > *""'"); }
4752 arg1 = reinterpret_cast< std::vector< std::vector< OpenBabel::vector3 > > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2);
4753 if (!SWIG_IsOK(ecode2)) {
4754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorvVector3___getslice__" "', argument " "2"" of type '" "std::vector< std::vector< OpenBabel::vector3 > >::difference_type""'"); }
4755 arg2 = static_cast< std::vector< std::vector< OpenBabel::vector3 > >::difference_type >(val2);
4756 ecode3 = SWIG_AsVal_int(j, &val3); if (!SWIG_IsOK(ecode3)) {
4757 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorvVector3___getslice__" "', argument " "3"" of type '" "std::vector< std::vector< OpenBabel::vector3 > >::difference_type""'"); }
4758 arg3 = static_cast< std::vector< std::vector< OpenBabel::vector3 > >::difference_type >(val3); try {
4759 result = (std::vector< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > >,std::allocator< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > > > *)std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____getslice__(arg1,arg2,arg3);}
4760 catch(std::out_of_range &_e) { return R_NilValue; ; }
4761 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_std__allocatorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_t_t, R_SWIG_OWNER | 0 );
4762 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorvVector3___setslice__(SEXP self,SEXP i,SEXP j,SEXP v)4763 SWIGEXPORT SEXP R_swig_vectorvVector3___setslice__ ( SEXP self, SEXP i, SEXP j, SEXP v) {
4764 std::vector< std::vector< OpenBabel::vector3 > > *arg1 = (std::vector< std::vector< OpenBabel::vector3 > > *) 0 ;
4765 std::vector< std::vector< OpenBabel::vector3 > >::difference_type arg2 ;
4766 std::vector< std::vector< OpenBabel::vector3 > >::difference_type arg3 ;
4767 std::vector< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > >,std::allocator< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > > > *arg4 = 0 ;
4768 void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ;
4769 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4770 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_std__allocatorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_t_t, 0 | 0 );
4771 if (!SWIG_IsOK(res1)) {
4772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorvVector3___setslice__" "', argument " "1"" of type '" "std::vector< std::vector< OpenBabel::vector3 > > *""'"); }
4773 arg1 = reinterpret_cast< std::vector< std::vector< OpenBabel::vector3 > > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2);
4774 if (!SWIG_IsOK(ecode2)) {
4775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorvVector3___setslice__" "', argument " "2"" of type '" "std::vector< std::vector< OpenBabel::vector3 > >::difference_type""'"); }
4776 arg2 = static_cast< std::vector< std::vector< OpenBabel::vector3 > >::difference_type >(val2);
4777 ecode3 = SWIG_AsVal_int(j, &val3); if (!SWIG_IsOK(ecode3)) {
4778 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorvVector3___setslice__" "', argument " "3"" of type '" "std::vector< std::vector< OpenBabel::vector3 > >::difference_type""'"); }
4779 arg3 = static_cast< std::vector< std::vector< OpenBabel::vector3 > >::difference_type >(val3); {
4780 std::vector<std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > >,std::allocator< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > > > *ptr = (std::vector<std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > >,std::allocator< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > > > *)0;
4781 res4 = swig::asptr(v, &ptr); if (!SWIG_IsOK(res4)) {
4782 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vectorvVector3___setslice__" "', argument " "4"" of type '" "std::vector< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > >,std::allocator< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > > > const &""'"); }
4783 if (!ptr) {
4784 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorvVector3___setslice__" "', argument " "4"" of type '" "std::vector< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > >,std::allocator< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > > > const &""'"); }
4785 arg4 = ptr; } try {
4786 std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____setslice__(arg1,arg2,arg3,(std::vector< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > >,std::allocator< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > > > const &)*arg4);}
4787 catch(std::out_of_range &_e) { return R_NilValue; ; } catch(std::invalid_argument &_e) { return R_NilValue; ; }
4788 r_ans = R_NilValue; if (SWIG_IsNewObj(res4)) delete arg4; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect);
4789 return r_ans; }
R_swig_vectorvVector3___delslice__(SEXP self,SEXP i,SEXP j)4790 SWIGEXPORT SEXP R_swig_vectorvVector3___delslice__ ( SEXP self, SEXP i, SEXP j) {
4791 std::vector< std::vector< OpenBabel::vector3 > > *arg1 = (std::vector< std::vector< OpenBabel::vector3 > > *) 0 ;
4792 std::vector< std::vector< OpenBabel::vector3 > >::difference_type arg2 ;
4793 std::vector< std::vector< OpenBabel::vector3 > >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ;
4794 int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ;
4795 VMAXTYPE r_vmax = vmaxget() ;
4796 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_std__allocatorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_t_t, 0 | 0 );
4797 if (!SWIG_IsOK(res1)) {
4798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorvVector3___delslice__" "', argument " "1"" of type '" "std::vector< std::vector< OpenBabel::vector3 > > *""'"); }
4799 arg1 = reinterpret_cast< std::vector< std::vector< OpenBabel::vector3 > > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2);
4800 if (!SWIG_IsOK(ecode2)) {
4801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorvVector3___delslice__" "', argument " "2"" of type '" "std::vector< std::vector< OpenBabel::vector3 > >::difference_type""'"); }
4802 arg2 = static_cast< std::vector< std::vector< OpenBabel::vector3 > >::difference_type >(val2);
4803 ecode3 = SWIG_AsVal_int(j, &val3); if (!SWIG_IsOK(ecode3)) {
4804 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorvVector3___delslice__" "', argument " "3"" of type '" "std::vector< std::vector< OpenBabel::vector3 > >::difference_type""'"); }
4805 arg3 = static_cast< std::vector< std::vector< OpenBabel::vector3 > >::difference_type >(val3); try {
4806 std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____delslice__(arg1,arg2,arg3);} catch(std::out_of_range &_e) {
4807 return R_NilValue; ; } r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorvVector3___delitem__(SEXP self,SEXP i)4808 SWIGEXPORT SEXP R_swig_vectorvVector3___delitem__ ( SEXP self, SEXP i) {
4809 std::vector< std::vector< OpenBabel::vector3 > > *arg1 = (std::vector< std::vector< OpenBabel::vector3 > > *) 0 ;
4810 std::vector< std::vector< OpenBabel::vector3 > >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ;
4811 int ecode2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4812 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_std__allocatorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_t_t, 0 | 0 );
4813 if (!SWIG_IsOK(res1)) {
4814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorvVector3___delitem__" "', argument " "1"" of type '" "std::vector< std::vector< OpenBabel::vector3 > > *""'"); }
4815 arg1 = reinterpret_cast< std::vector< std::vector< OpenBabel::vector3 > > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2);
4816 if (!SWIG_IsOK(ecode2)) {
4817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorvVector3___delitem__" "', argument " "2"" of type '" "std::vector< std::vector< OpenBabel::vector3 > >::difference_type""'"); }
4818 arg2 = static_cast< std::vector< std::vector< OpenBabel::vector3 > >::difference_type >(val2); try {
4819 std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____delitem__(arg1,arg2);} catch(std::out_of_range &_e) {
4820 return R_NilValue; ; } r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorvVector3___getitem__(SEXP self,SEXP i,SEXP s_swig_copy)4821 SWIGEXPORT SEXP R_swig_vectorvVector3___getitem__ ( SEXP self, SEXP i, SEXP s_swig_copy) {
4822 std::vector< std::vector< OpenBabel::vector3 > >::value_type *result = 0 ;
4823 std::vector< std::vector< OpenBabel::vector3 > > *arg1 = (std::vector< std::vector< OpenBabel::vector3 > > *) 0 ;
4824 std::vector< std::vector< OpenBabel::vector3 > >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ;
4825 int ecode2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4826 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_std__allocatorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_t_t, 0 | 0 );
4827 if (!SWIG_IsOK(res1)) {
4828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorvVector3___getitem__" "', argument " "1"" of type '" "std::vector< std::vector< OpenBabel::vector3 > > const *""'"); }
4829 arg1 = reinterpret_cast< std::vector< std::vector< OpenBabel::vector3 > > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2);
4830 if (!SWIG_IsOK(ecode2)) {
4831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorvVector3___getitem__" "', argument " "2"" of type '" "std::vector< std::vector< OpenBabel::vector3 > >::difference_type""'"); }
4832 arg2 = static_cast< std::vector< std::vector< OpenBabel::vector3 > >::difference_type >(val2); try {
4833 result = (std::vector< std::vector< OpenBabel::vector3 > >::value_type *) &std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____getitem__((std::vector< std::vector< OpenBabel::vector3 > > const *)arg1,arg2);}
4834 catch(std::out_of_range &_e) { return R_NilValue; ; }
4835 r_ans = swig::from(static_cast< std::vector<OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > >(*result));
4836 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorvVector3___setitem__(SEXP self,SEXP i,SEXP x)4837 SWIGEXPORT SEXP R_swig_vectorvVector3___setitem__ ( SEXP self, SEXP i, SEXP x) {
4838 std::vector< std::vector< OpenBabel::vector3 > > *arg1 = (std::vector< std::vector< OpenBabel::vector3 > > *) 0 ;
4839 std::vector< std::vector< OpenBabel::vector3 > >::difference_type arg2 ;
4840 std::vector< std::vector< OpenBabel::vector3 > >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ;
4841 int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4842 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_std__allocatorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_t_t, 0 | 0 );
4843 if (!SWIG_IsOK(res1)) {
4844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorvVector3___setitem__" "', argument " "1"" of type '" "std::vector< std::vector< OpenBabel::vector3 > > *""'"); }
4845 arg1 = reinterpret_cast< std::vector< std::vector< OpenBabel::vector3 > > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2);
4846 if (!SWIG_IsOK(ecode2)) {
4847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorvVector3___setitem__" "', argument " "2"" of type '" "std::vector< std::vector< OpenBabel::vector3 > >::difference_type""'"); }
4848 arg2 = static_cast< std::vector< std::vector< OpenBabel::vector3 > >::difference_type >(val2); {
4849 std::vector<OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > *ptr = (std::vector<OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > *)0;
4850 res3 = swig::asptr(x, &ptr); if (!SWIG_IsOK(res3)) {
4851 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vectorvVector3___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< OpenBabel::vector3 > >::value_type const &""'"); }
4852 if (!ptr) {
4853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorvVector3___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< OpenBabel::vector3 > >::value_type const &""'"); }
4854 arg3 = ptr; } try {
4855 std_vector_Sl_std_vector_Sl_OpenBabel_vector3_Sg__Sg____setitem__(arg1,arg2,(std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > const &)*arg3);}
4856 catch(std::out_of_range &_e) { return R_NilValue; ; } r_ans = R_NilValue; if (SWIG_IsNewObj(res3)) delete arg3;
4857 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorvVector3__SWIG_0()4858 SWIGEXPORT SEXP R_swig_new_vectorvVector3__SWIG_0 ( ) { std::vector< std::vector< OpenBabel::vector3 > > *result = 0 ;
4859 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4860 result = (std::vector< std::vector< OpenBabel::vector3 > > *)new std::vector< std::vector< OpenBabel::vector3 > >();
4861 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_std__allocatorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_t_t, R_SWIG_OWNER | 0 );
4862 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorvVector3__SWIG_1(SEXP s_arg1)4863 SWIGEXPORT SEXP R_swig_new_vectorvVector3__SWIG_1 ( SEXP s_arg1) {
4864 std::vector< std::vector< OpenBabel::vector3 > > *result = 0 ;
4865 std::vector< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ;
4866 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; {
4867 std::vector<std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > >,std::allocator< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > > > *ptr = (std::vector<std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > >,std::allocator< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > > > *)0;
4868 res1 = swig::asptr(s_arg1, &ptr); if (!SWIG_IsOK(res1)) {
4869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_vectorvVector3" "', argument " "1"" of type '" "std::vector< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > > const &""'"); }
4870 if (!ptr) {
4871 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vectorvVector3" "', argument " "1"" of type '" "std::vector< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > > const &""'"); }
4872 arg1 = ptr; }
4873 result = (std::vector< std::vector< OpenBabel::vector3 > > *)new std::vector< std::vector< OpenBabel::vector3 > >((std::vector< std::vector< OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > > const &)*arg1);
4874 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_std__allocatorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_t_t, R_SWIG_OWNER | 0 );
4875 if (SWIG_IsNewObj(res1)) delete arg1; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorvVector3_size(SEXP self,SEXP s_swig_copy)4876 SWIGEXPORT SEXP R_swig_vectorvVector3_size ( SEXP self, SEXP s_swig_copy) {
4877 std::vector< std::vector< OpenBabel::vector3 > >::size_type result;
4878 std::vector< std::vector< OpenBabel::vector3 > > *arg1 = (std::vector< std::vector< OpenBabel::vector3 > > *) 0 ;
4879 void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4880 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_std__allocatorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_t_t, 0 | 0 );
4881 if (!SWIG_IsOK(res1)) {
4882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorvVector3_size" "', argument " "1"" of type '" "std::vector< std::vector< OpenBabel::vector3 > > const *""'"); }
4883 arg1 = reinterpret_cast< std::vector< std::vector< OpenBabel::vector3 > > * >(argp1);
4884 result = ((std::vector< std::vector< OpenBabel::vector3 > > const *)arg1)->size();
4885 r_ans = SWIG_From_int(static_cast< int >(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorvVector3__SWIG_2(SEXP size)4886 SWIGEXPORT SEXP R_swig_new_vectorvVector3__SWIG_2 ( SEXP size) { std::vector< std::vector< OpenBabel::vector3 > > *result = 0 ;
4887 std::vector< std::vector< OpenBabel::vector3 > >::size_type arg1 ; int val1 ; int ecode1 = 0 ; unsigned int r_nprotect = 0;
4888 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; ecode1 = SWIG_AsVal_int(size, &val1); if (!SWIG_IsOK(ecode1)) {
4889 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vectorvVector3" "', argument " "1"" of type '" "std::vector< std::vector< OpenBabel::vector3 > >::size_type""'"); }
4890 arg1 = static_cast< std::vector< std::vector< OpenBabel::vector3 > >::size_type >(val1);
4891 result = (std::vector< std::vector< OpenBabel::vector3 > > *)new std::vector< std::vector< OpenBabel::vector3 > >(arg1);
4892 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_std__allocatorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_t_t, R_SWIG_OWNER | 0 );
4893 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_new_vectorvVector3__SWIG_3(SEXP size,SEXP value)4894 SWIGEXPORT SEXP R_swig_new_vectorvVector3__SWIG_3 ( SEXP size, SEXP value) {
4895 std::vector< std::vector< OpenBabel::vector3 > > *result = 0 ;
4896 std::vector< std::vector< OpenBabel::vector3 > >::size_type arg1 ;
4897 std::vector< std::vector< OpenBabel::vector3 > >::value_type *arg2 = 0 ; int val1 ; int ecode1 = 0 ; int res2 = SWIG_OLDOBJ ;
4898 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; ecode1 = SWIG_AsVal_int(size, &val1);
4899 if (!SWIG_IsOK(ecode1)) {
4900 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vectorvVector3" "', argument " "1"" of type '" "std::vector< std::vector< OpenBabel::vector3 > >::size_type""'"); }
4901 arg1 = static_cast< std::vector< std::vector< OpenBabel::vector3 > >::size_type >(val1); {
4902 std::vector<OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > *ptr = (std::vector<OpenBabel::vector3,std::allocator< OpenBabel::vector3 > > *)0;
4903 res2 = swig::asptr(value, &ptr); if (!SWIG_IsOK(res2)) {
4904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_vectorvVector3" "', argument " "2"" of type '" "std::vector< std::vector< OpenBabel::vector3 > >::value_type const &""'"); }
4905 if (!ptr) {
4906 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vectorvVector3" "', argument " "2"" of type '" "std::vector< std::vector< OpenBabel::vector3 > >::value_type const &""'"); }
4907 arg2 = ptr; }
4908 result = (std::vector< std::vector< OpenBabel::vector3 > > *)new std::vector< std::vector< OpenBabel::vector3 > >(arg1,(std::vector< std::vector< OpenBabel::vector3 > >::value_type const &)*arg2);
4909 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_std__allocatorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_t_t, R_SWIG_OWNER | 0 );
4910 if (SWIG_IsNewObj(res2)) delete arg2; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_delete_vectorvVector3(SEXP self)4911 SWIGEXPORT SEXP R_swig_delete_vectorvVector3 ( SEXP self) {
4912 std::vector< std::vector< OpenBabel::vector3 > > *arg1 = (std::vector< std::vector< OpenBabel::vector3 > > *) 0 ;
4913 void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4914 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_std__allocatorT_std__vectorT_OpenBabel__vector3_std__allocatorT_OpenBabel__vector3_t_t_t_t, SWIG_POINTER_DISOWN | 0 );
4915 if (!SWIG_IsOK(res1)) {
4916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_vectorvVector3" "', argument " "1"" of type '" "std::vector< std::vector< OpenBabel::vector3 > > *""'"); }
4917 arg1 = reinterpret_cast< std::vector< std::vector< OpenBabel::vector3 > > * >(argp1); delete arg1; r_ans = R_NilValue;
4918 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); R_ClearExternalPtr(self); return r_ans; }
R_swig_vectorOBMol___nonzero__(SEXP self,SEXP s_swig_copy)4919 SWIGEXPORT SEXP R_swig_vectorOBMol___nonzero__ ( SEXP self, SEXP s_swig_copy) { bool result;
4920 std::vector< OpenBabel::OBMol > *arg1 = (std::vector< OpenBabel::OBMol > *) 0 ; void *argp1 = 0 ; int res1 = 0 ;
4921 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4922 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_OpenBabel__OBMol_std__allocatorT_OpenBabel__OBMol_t_t, 0 | 0 );
4923 if (!SWIG_IsOK(res1)) {
4924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorOBMol___nonzero__" "', argument " "1"" of type '" "std::vector< OpenBabel::OBMol > const *""'"); }
4925 arg1 = reinterpret_cast< std::vector< OpenBabel::OBMol > * >(argp1);
4926 result = (bool)std_vector_Sl_OpenBabel_OBMol_Sg____nonzero__((std::vector< OpenBabel::OBMol > const *)arg1);
4927 r_ans = Rf_ScalarLogical(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorOBMol___len__(SEXP self,SEXP s_swig_copy)4928 SWIGEXPORT SEXP R_swig_vectorOBMol___len__ ( SEXP self, SEXP s_swig_copy) { std::vector< OpenBabel::OBMol >::size_type result;
4929 std::vector< OpenBabel::OBMol > *arg1 = (std::vector< OpenBabel::OBMol > *) 0 ; void *argp1 = 0 ; int res1 = 0 ;
4930 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4931 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_OpenBabel__OBMol_std__allocatorT_OpenBabel__OBMol_t_t, 0 | 0 );
4932 if (!SWIG_IsOK(res1)) {
4933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorOBMol___len__" "', argument " "1"" of type '" "std::vector< OpenBabel::OBMol > const *""'"); }
4934 arg1 = reinterpret_cast< std::vector< OpenBabel::OBMol > * >(argp1);
4935 result = std_vector_Sl_OpenBabel_OBMol_Sg____len__((std::vector< OpenBabel::OBMol > const *)arg1);
4936 r_ans = SWIG_From_int(static_cast< int >(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorOBMol___getslice__(SEXP self,SEXP i,SEXP j)4937 SWIGEXPORT SEXP R_swig_vectorOBMol___getslice__ ( SEXP self, SEXP i, SEXP j) {
4938 std::vector< OpenBabel::OBMol,std::allocator< OpenBabel::OBMol > > *result = 0 ;
4939 std::vector< OpenBabel::OBMol > *arg1 = (std::vector< OpenBabel::OBMol > *) 0 ;
4940 std::vector< OpenBabel::OBMol >::difference_type arg2 ; std::vector< OpenBabel::OBMol >::difference_type arg3 ;
4941 void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; unsigned int r_nprotect = 0;
4942 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4943 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_OpenBabel__OBMol_std__allocatorT_OpenBabel__OBMol_t_t, 0 | 0 );
4944 if (!SWIG_IsOK(res1)) {
4945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorOBMol___getslice__" "', argument " "1"" of type '" "std::vector< OpenBabel::OBMol > *""'"); }
4946 arg1 = reinterpret_cast< std::vector< OpenBabel::OBMol > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2);
4947 if (!SWIG_IsOK(ecode2)) {
4948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorOBMol___getslice__" "', argument " "2"" of type '" "std::vector< OpenBabel::OBMol >::difference_type""'"); }
4949 arg2 = static_cast< std::vector< OpenBabel::OBMol >::difference_type >(val2); ecode3 = SWIG_AsVal_int(j, &val3);
4950 if (!SWIG_IsOK(ecode3)) {
4951 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorOBMol___getslice__" "', argument " "3"" of type '" "std::vector< OpenBabel::OBMol >::difference_type""'"); }
4952 arg3 = static_cast< std::vector< OpenBabel::OBMol >::difference_type >(val3); try {
4953 result = (std::vector< OpenBabel::OBMol,std::allocator< OpenBabel::OBMol > > *)std_vector_Sl_OpenBabel_OBMol_Sg____getslice__(arg1,arg2,arg3);}
4954 catch(std::out_of_range &_e) { return R_NilValue; ; }
4955 r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_OpenBabel__OBMol_std__allocatorT_OpenBabel__OBMol_t_t, R_SWIG_OWNER | 0 );
4956 vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorOBMol___setslice__(SEXP self,SEXP i,SEXP j,SEXP v)4957 SWIGEXPORT SEXP R_swig_vectorOBMol___setslice__ ( SEXP self, SEXP i, SEXP j, SEXP v) {
4958 std::vector< OpenBabel::OBMol > *arg1 = (std::vector< OpenBabel::OBMol > *) 0 ;
4959 std::vector< OpenBabel::OBMol >::difference_type arg2 ; std::vector< OpenBabel::OBMol >::difference_type arg3 ;
4960 std::vector< OpenBabel::OBMol,std::allocator< OpenBabel::OBMol > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ;
4961 int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ;
4962 VMAXTYPE r_vmax = vmaxget() ;
4963 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_OpenBabel__OBMol_std__allocatorT_OpenBabel__OBMol_t_t, 0 | 0 );
4964 if (!SWIG_IsOK(res1)) {
4965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorOBMol___setslice__" "', argument " "1"" of type '" "std::vector< OpenBabel::OBMol > *""'"); }
4966 arg1 = reinterpret_cast< std::vector< OpenBabel::OBMol > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2);
4967 if (!SWIG_IsOK(ecode2)) {
4968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorOBMol___setslice__" "', argument " "2"" of type '" "std::vector< OpenBabel::OBMol >::difference_type""'"); }
4969 arg2 = static_cast< std::vector< OpenBabel::OBMol >::difference_type >(val2); ecode3 = SWIG_AsVal_int(j, &val3);
4970 if (!SWIG_IsOK(ecode3)) {
4971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorOBMol___setslice__" "', argument " "3"" of type '" "std::vector< OpenBabel::OBMol >::difference_type""'"); }
4972 arg3 = static_cast< std::vector< OpenBabel::OBMol >::difference_type >(val3); {
4973 std::vector<OpenBabel::OBMol,std::allocator< OpenBabel::OBMol > > *ptr = (std::vector<OpenBabel::OBMol,std::allocator< OpenBabel::OBMol > > *)0;
4974 res4 = swig::asptr(v, &ptr); if (!SWIG_IsOK(res4)) {
4975 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vectorOBMol___setslice__" "', argument " "4"" of type '" "std::vector< OpenBabel::OBMol,std::allocator< OpenBabel::OBMol > > const &""'"); }
4976 if (!ptr) {
4977 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorOBMol___setslice__" "', argument " "4"" of type '" "std::vector< OpenBabel::OBMol,std::allocator< OpenBabel::OBMol > > const &""'"); }
4978 arg4 = ptr; } try {
4979 std_vector_Sl_OpenBabel_OBMol_Sg____setslice__(arg1,arg2,arg3,(std::vector< OpenBabel::OBMol,std::allocator< OpenBabel::OBMol > > const &)*arg4);}
4980 catch(std::out_of_range &_e) { return R_NilValue; ; } catch(std::invalid_argument &_e) { return R_NilValue; ; }
4981 r_ans = R_NilValue; if (SWIG_IsNewObj(res4)) delete arg4; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect);
4982 return r_ans; }
R_swig_vectorOBMol___delslice__(SEXP self,SEXP i,SEXP j)4983 SWIGEXPORT SEXP R_swig_vectorOBMol___delslice__ ( SEXP self, SEXP i, SEXP j) {
4984 std::vector< OpenBabel::OBMol > *arg1 = (std::vector< OpenBabel::OBMol > *) 0 ;
4985 std::vector< OpenBabel::OBMol >::difference_type arg2 ; std::vector< OpenBabel::OBMol >::difference_type arg3 ;
4986 void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; unsigned int r_nprotect = 0;
4987 SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
4988 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_OpenBabel__OBMol_std__allocatorT_OpenBabel__OBMol_t_t, 0 | 0 );
4989 if (!SWIG_IsOK(res1)) {
4990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorOBMol___delslice__" "', argument " "1"" of type '" "std::vector< OpenBabel::OBMol > *""'"); }
4991 arg1 = reinterpret_cast< std::vector< OpenBabel::OBMol > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2);
4992 if (!SWIG_IsOK(ecode2)) {
4993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorOBMol___delslice__" "', argument " "2"" of type '" "std::vector< OpenBabel::OBMol >::difference_type""'"); }
4994 arg2 = static_cast< std::vector< OpenBabel::OBMol >::difference_type >(val2); ecode3 = SWIG_AsVal_int(j, &val3);
4995 if (!SWIG_IsOK(ecode3)) {
4996 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorOBMol___delslice__" "', argument " "3"" of type '" "std::vector< OpenBabel::OBMol >::difference_type""'"); }
4997 arg3 = static_cast< std::vector< OpenBabel::OBMol >::difference_type >(val3); try {
4998 std_vector_Sl_OpenBabel_OBMol_Sg____delslice__(arg1,arg2,arg3);} catch(std::out_of_range &_e) { return R_NilValue; ; }
4999 r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorOBMol___delitem__(SEXP self,SEXP i)5000 SWIGEXPORT SEXP R_swig_vectorOBMol___delitem__ ( SEXP self, SEXP i) {
5001 std::vector< OpenBabel::OBMol > *arg1 = (std::vector< OpenBabel::OBMol > *) 0 ;
5002 std::vector< OpenBabel::OBMol >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ;
5003 unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ;
5004 res1 = SWIG_R_ConvertPtr(self, &argp1, SWIGTYPE_p_std__vectorT_OpenBabel__OBMol_std__allocatorT_OpenBabel__OBMol_t_t, 0 | 0 );
5005 if (!SWIG_IsOK(res1)) {
5006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorOBMol___delitem__" "', argument " "1"" of type '" "std::vector< OpenBabel::OBMol > *""'"); }
5007 arg1 = reinterpret_cast< std::vector< OpenBabel::OBMol > * >(argp1); ecode2 = SWIG_AsVal_int(i, &val2);
5008 if (!SWIG_IsOK(ecode2)) {
5009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorOBMol___delitem__" "', argument " "2"" of type '" "std::vector< OpenBabel::OBMol >::difference_type""'"); }
5010 arg2 = static_cast< std::vector< OpenBabel::OBMol >::difference_type >(val2); try {
5011 std_vector_Sl_OpenBabel_OBMol_Sg____delitem__(arg1,arg2);} catch(std::out_of_range &_e) { return R_NilValue; ; }
5012 r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; }
R_swig_vectorOBMol___getitem__(SEXP self,SEXP i,SEXP s_swig_copy)5013