Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
gv_ruby.cpp
Go to the documentation of this file.
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (https://www.swig.org).
3 * Version 4.2.0
4 *
5 * Do not make changes to this file unless you know what you are doing - modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
8
9
10#define SWIG_VERSION 0x040200
11#define SWIGRUBY
12
13/* -----------------------------------------------------------------------------
14 * This section contains generic SWIG labels for method/variable
15 * declarations/attributes, and other compiler dependent labels.
16 * ----------------------------------------------------------------------------- */
17
18/* template workaround for compilers that cannot correctly implement the C++ standard */
19#ifndef SWIGTEMPLATEDISAMBIGUATOR
20# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
21# define SWIGTEMPLATEDISAMBIGUATOR template
22# elif defined(__HP_aCC)
23/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
24/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
25# define SWIGTEMPLATEDISAMBIGUATOR template
26# else
27# define SWIGTEMPLATEDISAMBIGUATOR
28# endif
29#endif
30
31/* inline attribute */
32#ifndef SWIGINLINE
33# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
34# define SWIGINLINE inline
35# else
36# define SWIGINLINE
37# endif
38#endif
39
40/* attribute recognised by some compilers to avoid 'unused' warnings */
41#ifndef SWIGUNUSED
42# if defined(__GNUC__)
43# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
44# define SWIGUNUSED __attribute__ ((__unused__))
45# else
46# define SWIGUNUSED
47# endif
48# elif defined(__ICC)
49# define SWIGUNUSED __attribute__ ((__unused__))
50# else
51# define SWIGUNUSED
52# endif
53#endif
54
55#ifndef SWIG_MSC_UNSUPPRESS_4505
56# if defined(_MSC_VER)
57# pragma warning(disable : 4505) /* unreferenced local function has been removed */
58# endif
59#endif
60
61#ifndef SWIGUNUSEDPARM
62# ifdef __cplusplus
63# define SWIGUNUSEDPARM(p)
64# else
65# define SWIGUNUSEDPARM(p) p SWIGUNUSED
66# endif
67#endif
68
69/* internal SWIG method */
70#ifndef SWIGINTERN
71# define SWIGINTERN static SWIGUNUSED
72#endif
73
74/* internal inline SWIG method */
75#ifndef SWIGINTERNINLINE
76# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
77#endif
78
79/* exporting methods */
80#if defined(__GNUC__)
81# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
82# ifndef GCC_HASCLASSVISIBILITY
83# define GCC_HASCLASSVISIBILITY
84# endif
85# endif
86#endif
87
88#ifndef SWIGEXPORT
89# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
90# if defined(STATIC_LINKED)
91# define SWIGEXPORT
92# else
93# define SWIGEXPORT __declspec(dllexport)
94# endif
95# else
96# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
97# define SWIGEXPORT __attribute__ ((visibility("default")))
98# else
99# define SWIGEXPORT
100# endif
101# endif
102#endif
103
104/* calling conventions for Windows */
105#ifndef SWIGSTDCALL
106# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
107# define SWIGSTDCALL __stdcall
108# else
109# define SWIGSTDCALL
110# endif
111#endif
112
113/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
114#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
115# define _CRT_SECURE_NO_DEPRECATE
116#endif
117
118/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
119#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
120# define _SCL_SECURE_NO_DEPRECATE
121#endif
122
123/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
124#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
125# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
126#endif
127
128/* Intel's compiler complains if a variable which was never initialised is
129 * cast to void, which is a common idiom which we use to indicate that we
130 * are aware a variable isn't used. So we just silence that warning.
131 * See: https://github.com/swig/swig/issues/192 for more discussion.
132 */
133#ifdef __INTEL_COMPILER
134# pragma warning disable 592
135#endif
136
137#if __cplusplus >=201103L
138# define SWIG_NULLPTR nullptr
139#else
140# define SWIG_NULLPTR NULL
141#endif
142
143/* -----------------------------------------------------------------------------
144 * This section contains generic SWIG labels for method/variable
145 * declarations/attributes, and other compiler dependent labels.
146 * ----------------------------------------------------------------------------- */
147
148/* template workaround for compilers that cannot correctly implement the C++ standard */
149#ifndef SWIGTEMPLATEDISAMBIGUATOR
150# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
151# define SWIGTEMPLATEDISAMBIGUATOR template
152# elif defined(__HP_aCC)
153/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
154/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
155# define SWIGTEMPLATEDISAMBIGUATOR template
156# else
157# define SWIGTEMPLATEDISAMBIGUATOR
158# endif
159#endif
160
161/* inline attribute */
162#ifndef SWIGINLINE
163# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
164# define SWIGINLINE inline
165# else
166# define SWIGINLINE
167# endif
168#endif
169
170/* attribute recognised by some compilers to avoid 'unused' warnings */
171#ifndef SWIGUNUSED
172# if defined(__GNUC__)
173# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
174# define SWIGUNUSED __attribute__ ((__unused__))
175# else
176# define SWIGUNUSED
177# endif
178# elif defined(__ICC)
179# define SWIGUNUSED __attribute__ ((__unused__))
180# else
181# define SWIGUNUSED
182# endif
183#endif
184
185#ifndef SWIG_MSC_UNSUPPRESS_4505
186# if defined(_MSC_VER)
187# pragma warning(disable : 4505) /* unreferenced local function has been removed */
188# endif
189#endif
190
191#ifndef SWIGUNUSEDPARM
192# ifdef __cplusplus
193# define SWIGUNUSEDPARM(p)
194# else
195# define SWIGUNUSEDPARM(p) p SWIGUNUSED
196# endif
197#endif
198
199/* internal SWIG method */
200#ifndef SWIGINTERN
201# define SWIGINTERN static SWIGUNUSED
202#endif
203
204/* internal inline SWIG method */
205#ifndef SWIGINTERNINLINE
206# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
207#endif
208
209/* exporting methods */
210#if defined(__GNUC__)
211# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
212# ifndef GCC_HASCLASSVISIBILITY
213# define GCC_HASCLASSVISIBILITY
214# endif
215# endif
216#endif
217
218#ifndef SWIGEXPORT
219# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
220# if defined(STATIC_LINKED)
221# define SWIGEXPORT
222# else
223# define SWIGEXPORT __declspec(dllexport)
224# endif
225# else
226# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
227# define SWIGEXPORT __attribute__ ((visibility("default")))
228# else
229# define SWIGEXPORT
230# endif
231# endif
232#endif
233
234/* calling conventions for Windows */
235#ifndef SWIGSTDCALL
236# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
237# define SWIGSTDCALL __stdcall
238# else
239# define SWIGSTDCALL
240# endif
241#endif
242
243/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
244#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
245# define _CRT_SECURE_NO_DEPRECATE
246#endif
247
248/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
249#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
250# define _SCL_SECURE_NO_DEPRECATE
251#endif
252
253/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
254#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
255# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
256#endif
257
258/* Intel's compiler complains if a variable which was never initialised is
259 * cast to void, which is a common idiom which we use to indicate that we
260 * are aware a variable isn't used. So we just silence that warning.
261 * See: https://github.com/swig/swig/issues/192 for more discussion.
262 */
263#ifdef __INTEL_COMPILER
264# pragma warning disable 592
265#endif
266
267#if __cplusplus >=201103L
268# define SWIG_NULLPTR nullptr
269#else
270# define SWIG_NULLPTR NULL
271#endif
272
273/* -----------------------------------------------------------------------------
274 * swigrun.swg
275 *
276 * This file contains generic C API SWIG runtime support for pointer
277 * type checking.
278 * ----------------------------------------------------------------------------- */
279
280/* This should only be incremented when either the layout of swig_type_info changes,
281 or for whatever reason, the runtime changes incompatibly */
282#define SWIG_RUNTIME_VERSION "4"
283
284/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
285#ifdef SWIG_TYPE_TABLE
286# define SWIG_QUOTE_STRING(x) #x
287# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
288# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
289#else
290# define SWIG_TYPE_TABLE_NAME
291#endif
292
293/*
294 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
295 creating a static or dynamic library from the SWIG runtime code.
296 In 99.9% of the cases, SWIG just needs to declare them as 'static'.
297
298 But only do this if strictly necessary, ie, if you have problems
299 with your compiler or suchlike.
300*/
301
302#ifndef SWIGRUNTIME
303# define SWIGRUNTIME SWIGINTERN
304#endif
305
306#ifndef SWIGRUNTIMEINLINE
307# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
308#endif
309
310/* Generic buffer size */
311#ifndef SWIG_BUFFER_SIZE
312# define SWIG_BUFFER_SIZE 1024
313#endif
314
315/* Flags for pointer conversions */
316#define SWIG_POINTER_DISOWN 0x1
317#define SWIG_CAST_NEW_MEMORY 0x2
318#define SWIG_POINTER_NO_NULL 0x4
319#define SWIG_POINTER_CLEAR 0x8
320#define SWIG_POINTER_RELEASE (SWIG_POINTER_CLEAR | SWIG_POINTER_DISOWN)
321
322/* Flags for new pointer objects */
323#define SWIG_POINTER_OWN 0x1
324
325
326/*
327 Flags/methods for returning states.
328
329 The SWIG conversion methods, as ConvertPtr, return an integer
330 that tells if the conversion was successful or not. And if not,
331 an error code can be returned (see swigerrors.swg for the codes).
332
333 Use the following macros/flags to set or process the returning
334 states.
335
336 In old versions of SWIG, code such as the following was usually written:
337
338 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
339 // success code
340 } else {
341 //fail code
342 }
343
344 Now you can be more explicit:
345
346 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
347 if (SWIG_IsOK(res)) {
348 // success code
349 } else {
350 // fail code
351 }
352
353 which is the same really, but now you can also do
354
355 Type *ptr;
356 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
357 if (SWIG_IsOK(res)) {
358 // success code
359 if (SWIG_IsNewObj(res) {
360 ...
361 delete *ptr;
362 } else {
363 ...
364 }
365 } else {
366 // fail code
367 }
368
369 I.e., now SWIG_ConvertPtr can return new objects and you can
370 identify the case and take care of the deallocation. Of course that
371 also requires SWIG_ConvertPtr to return new result values, such as
372
373 int SWIG_ConvertPtr(obj, ptr,...) {
374 if (<obj is ok>) {
375 if (<need new object>) {
376 *ptr = <ptr to new allocated object>;
377 return SWIG_NEWOBJ;
378 } else {
379 *ptr = <ptr to old object>;
380 return SWIG_OLDOBJ;
381 }
382 } else {
383 return SWIG_BADOBJ;
384 }
385 }
386
387 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
388 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
389 SWIG errors code.
390
391 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
392 allows returning the 'cast rank', for example, if you have this
393
394 int food(double)
395 int fooi(int);
396
397 and you call
398
399 food(1) // cast rank '1' (1 -> 1.0)
400 fooi(1) // cast rank '0'
401
402 just use the SWIG_AddCast()/SWIG_CheckState()
403*/
404
405#define SWIG_OK (0)
406/* Runtime errors are < 0 */
407#define SWIG_ERROR (-1)
408/* Errors in range -1 to -99 are in swigerrors.swg (errors for all languages including those not using the runtime) */
409/* Errors in range -100 to -199 are language specific errors defined in *errors.swg */
410/* Errors < -200 are generic runtime specific errors */
411#define SWIG_ERROR_RELEASE_NOT_OWNED (-200)
412
413#define SWIG_IsOK(r) (r >= 0)
414#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
415
416/* The CastRankLimit says how many bits are used for the cast rank */
417#define SWIG_CASTRANKLIMIT (1 << 8)
418/* The NewMask denotes the object was created (using new/malloc) */
419#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
420/* The TmpMask is for in/out typemaps that use temporary objects */
421#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
422/* Simple returning values */
423#define SWIG_BADOBJ (SWIG_ERROR)
424#define SWIG_OLDOBJ (SWIG_OK)
425#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
426#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
427/* Check, add and del object mask methods */
428#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
429#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
430#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
431#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
432#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
433#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
434
435/* Cast-Rank Mode */
436#if defined(SWIG_CASTRANK_MODE)
437# ifndef SWIG_TypeRank
438# define SWIG_TypeRank unsigned long
439# endif
440# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
441# define SWIG_MAXCASTRANK (2)
442# endif
443# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
444# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
446 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
447}
449 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
450}
451#else /* no cast-rank mode */
452# define SWIG_AddCast(r) (r)
453# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
454#endif
455
456/* C99 and C++11 should provide snprintf, but define SWIG_NO_SNPRINTF
457 * if you're missing it.
458 */
459#if ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) || \
460 (defined __cplusplus && __cplusplus >= 201103L) || \
461 defined SWIG_HAVE_SNPRINTF) && \
462 !defined SWIG_NO_SNPRINTF
463# define SWIG_snprintf(O,S,F,A) snprintf(O,S,F,A)
464# define SWIG_snprintf2(O,S,F,A,B) snprintf(O,S,F,A,B)
465#else
466/* Fallback versions ignore the buffer size, but most of our uses either have a
467 * fixed maximum possible size or dynamically allocate a buffer that's large
468 * enough.
469 */
470# define SWIG_snprintf(O,S,F,A) sprintf(O,F,A)
471# define SWIG_snprintf2(O,S,F,A,B) sprintf(O,F,A,B)
472#endif
473
474#include <string.h>
475
476#ifdef __cplusplus
477extern "C" {
478#endif
479
480typedef void *(*swig_converter_func)(void *, int *);
481typedef struct swig_type_info *(*swig_dycast_func)(void **);
482
483/* Structure to store information on one type */
484typedef struct swig_type_info {
485 const char *name; /* mangled name of this type */
486 const char *str; /* human readable name of this type */
487 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
488 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
489 void *clientdata; /* language specific type data */
490 int owndata; /* flag if the structure owns the clientdata */
492
493/* Structure to store a type and conversion function used for casting */
494typedef struct swig_cast_info {
495 swig_type_info *type; /* pointer to type that is equivalent to this type */
496 swig_converter_func converter; /* function to cast the void pointers */
497 struct swig_cast_info *next; /* pointer to next cast in linked list */
498 struct swig_cast_info *prev; /* pointer to the previous cast */
500
501/* Structure used to store module information
502 * Each module generates one structure like this, and the runtime collects
503 * all of these structures and stores them in a circularly linked list.*/
504typedef struct swig_module_info {
505 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
506 size_t size; /* Number of types in this module */
507 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
508 swig_type_info **type_initial; /* Array of initially generated type structures */
509 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
510 void *clientdata; /* Language specific module data */
512
513/*
514 Compare two type names skipping the space characters, therefore
515 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
516
517 Return 0 when the two name types are equivalent, as in
518 strncmp, but skipping ' '.
519*/
520SWIGRUNTIME int
521SWIG_TypeNameComp(const char *f1, const char *l1,
522 const char *f2, const char *l2) {
523 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
524 while ((*f1 == ' ') && (f1 != l1)) ++f1;
525 while ((*f2 == ' ') && (f2 != l2)) ++f2;
526 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
527 }
528 return (int)((l1 - f1) - (l2 - f2));
529}
530
531/*
532 Check type equivalence in a name list like <name1>|<name2>|...
533 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
534*/
535SWIGRUNTIME int
536SWIG_TypeCmp(const char *nb, const char *tb) {
537 int equiv = 1;
538 const char* te = tb + strlen(tb);
539 const char* ne = nb;
540 while (equiv != 0 && *ne) {
541 for (nb = ne; *ne; ++ne) {
542 if (*ne == '|') break;
543 }
544 equiv = SWIG_TypeNameComp(nb, ne, tb, te);
545 if (*ne) ++ne;
546 }
547 return equiv;
548}
549
550/*
551 Check type equivalence in a name list like <name1>|<name2>|...
552 Return 0 if not equal, 1 if equal
553*/
554SWIGRUNTIME int
555SWIG_TypeEquiv(const char *nb, const char *tb) {
556 return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
557}
558
559/*
560 Check the typename
561*/
563SWIG_TypeCheck(const char *c, swig_type_info *ty) {
564 if (ty) {
565 swig_cast_info *iter = ty->cast;
566 while (iter) {
567 if (strcmp(iter->type->name, c) == 0) {
568 if (iter == ty->cast)
569 return iter;
570 /* Move iter to the top of the linked list */
571 iter->prev->next = iter->next;
572 if (iter->next)
573 iter->next->prev = iter->prev;
574 iter->next = ty->cast;
575 iter->prev = 0;
576 if (ty->cast) ty->cast->prev = iter;
577 ty->cast = iter;
578 return iter;
579 }
580 iter = iter->next;
581 }
582 }
583 return 0;
584}
585
586/*
587 Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
588*/
591 if (ty) {
592 swig_cast_info *iter = ty->cast;
593 while (iter) {
594 if (iter->type == from) {
595 if (iter == ty->cast)
596 return iter;
597 /* Move iter to the top of the linked list */
598 iter->prev->next = iter->next;
599 if (iter->next)
600 iter->next->prev = iter->prev;
601 iter->next = ty->cast;
602 iter->prev = 0;
603 if (ty->cast) ty->cast->prev = iter;
604 ty->cast = iter;
605 return iter;
606 }
607 iter = iter->next;
608 }
609 }
610 return 0;
611}
612
613/*
614 Cast a pointer up an inheritance hierarchy
615*/
617SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
618 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
619}
620
621/*
622 Dynamic pointer casting. Down an inheritance hierarchy
623*/
626 swig_type_info *lastty = ty;
627 if (!ty || !ty->dcast) return ty;
628 while (ty && (ty->dcast)) {
629 ty = (*ty->dcast)(ptr);
630 if (ty) lastty = ty;
631 }
632 return lastty;
633}
634
635/*
636 Return the name associated with this type
637*/
638SWIGRUNTIMEINLINE const char *
640 return ty->name;
641}
642
643/*
644 Return the pretty name associated with this type,
645 that is an unmangled type name in a form presentable to the user.
646*/
647SWIGRUNTIME const char *
649 /* The "str" field contains the equivalent pretty names of the
650 type, separated by vertical-bar characters. Choose the last
651 name. It should be the most specific; a fully resolved name
652 but not necessarily with default template parameters expanded. */
653 if (!type) return NULL;
654 if (type->str != NULL) {
655 const char *last_name = type->str;
656 const char *s;
657 for (s = type->str; *s; s++)
658 if (*s == '|') last_name = s+1;
659 return last_name;
660 }
661 else
662 return type->name;
663}
664
665/*
666 Set the clientdata field for a type
667*/
668SWIGRUNTIME void
670 swig_cast_info *cast = ti->cast;
671 /* if (ti->clientdata == clientdata) return; */
673
674 while (cast) {
675 if (!cast->converter) {
676 swig_type_info *tc = cast->type;
677 if (!tc->clientdata) {
679 }
680 }
681 cast = cast->next;
682 }
683}
684SWIGRUNTIME void
689
690/*
691 Search for a swig_type_info structure only by mangled name
692 Search is a O(log #types)
693
694 We start searching at module start, and finish searching when start == end.
695 Note: if start == end at the beginning of the function, we go all the way around
696 the circular list.
697*/
700 swig_module_info *end,
701 const char *name) {
702 swig_module_info *iter = start;
703 do {
704 if (iter->size) {
705 size_t l = 0;
706 size_t r = iter->size - 1;
707 do {
708 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
709 size_t i = (l + r) >> 1;
710 const char *iname = iter->types[i]->name;
711 if (iname) {
712 int compare = strcmp(name, iname);
713 if (compare == 0) {
714 return iter->types[i];
715 } else if (compare < 0) {
716 if (i) {
717 r = i - 1;
718 } else {
719 break;
720 }
721 } else if (compare > 0) {
722 l = i + 1;
723 }
724 } else {
725 break; /* should never happen */
726 }
727 } while (l <= r);
728 }
729 iter = iter->next;
730 } while (iter != end);
731 return 0;
732}
733
734/*
735 Search for a swig_type_info structure for either a mangled name or a human readable name.
736 It first searches the mangled names of the types, which is a O(log #types)
737 If a type is not found it then searches the human readable names, which is O(#types).
738
739 We start searching at module start, and finish searching when start == end.
740 Note: if start == end at the beginning of the function, we go all the way around
741 the circular list.
742*/
745 swig_module_info *end,
746 const char *name) {
747 /* STEP 1: Search the name field using binary search */
748 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
749 if (ret) {
750 return ret;
751 } else {
752 /* STEP 2: If the type hasn't been found, do a complete search
753 of the str field (the human readable name) */
754 swig_module_info *iter = start;
755 do {
756 size_t i = 0;
757 for (; i < iter->size; ++i) {
758 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
759 return iter->types[i];
760 }
761 iter = iter->next;
762 } while (iter != end);
763 }
764
765 /* neither found a match */
766 return 0;
767}
768
769/*
770 Pack binary data into a string
771*/
772SWIGRUNTIME char *
773SWIG_PackData(char *c, void *ptr, size_t sz) {
774 static const char hex[17] = "0123456789abcdef";
775 const unsigned char *u = (unsigned char *) ptr;
776 const unsigned char *eu = u + sz;
777 for (; u != eu; ++u) {
778 unsigned char uu = *u;
779 *(c++) = hex[(uu & 0xf0) >> 4];
780 *(c++) = hex[uu & 0xf];
781 }
782 return c;
783}
784
785/*
786 Unpack binary data from a string
787*/
788SWIGRUNTIME const char *
789SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
790 unsigned char *u = (unsigned char *) ptr;
791 const unsigned char *eu = u + sz;
792 for (; u != eu; ++u) {
793 char d = *(c++);
794 unsigned char uu;
795 if ((d >= '0') && (d <= '9'))
796 uu = (unsigned char)((d - '0') << 4);
797 else if ((d >= 'a') && (d <= 'f'))
798 uu = (unsigned char)((d - ('a'-10)) << 4);
799 else
800 return (char *) 0;
801 d = *(c++);
802 if ((d >= '0') && (d <= '9'))
803 uu |= (unsigned char)(d - '0');
804 else if ((d >= 'a') && (d <= 'f'))
805 uu |= (unsigned char)(d - ('a'-10));
806 else
807 return (char *) 0;
808 *u = uu;
809 }
810 return c;
811}
812
813/*
814 Pack 'void *' into a string buffer.
815*/
816SWIGRUNTIME char *
817SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
818 char *r = buff;
819 if ((2*sizeof(void *) + 2) > bsz) return 0;
820 *(r++) = '_';
821 r = SWIG_PackData(r,&ptr,sizeof(void *));
822 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
823 strcpy(r,name);
824 return buff;
825}
826
827SWIGRUNTIME const char *
828SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
829 if (*c != '_') {
830 if (strcmp(c,"NULL") == 0) {
831 *ptr = (void *) 0;
832 return name;
833 } else {
834 return 0;
835 }
836 }
837 return SWIG_UnpackData(++c,ptr,sizeof(void *));
838}
839
840SWIGRUNTIME char *
841SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
842 char *r = buff;
843 size_t lname = (name ? strlen(name) : 0);
844 if ((2*sz + 2 + lname) > bsz) return 0;
845 *(r++) = '_';
846 r = SWIG_PackData(r,ptr,sz);
847 if (lname) {
848 strncpy(r,name,lname+1);
849 } else {
850 *r = 0;
851 }
852 return buff;
853}
854
855SWIGRUNTIME const char *
856SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
857 if (*c != '_') {
858 if (strcmp(c,"NULL") == 0) {
859 memset(ptr,0,sz);
860 return name;
861 } else {
862 return 0;
863 }
864 }
865 return SWIG_UnpackData(++c,ptr,sz);
866}
867
868#ifdef __cplusplus
869}
870#endif
871
872/* SWIG Errors applicable to all language modules, values are reserved from -1 to -99 */
873#define SWIG_UnknownError -1
874#define SWIG_IOError -2
875#define SWIG_RuntimeError -3
876#define SWIG_IndexError -4
877#define SWIG_TypeError -5
878#define SWIG_DivisionByZero -6
879#define SWIG_OverflowError -7
880#define SWIG_SyntaxError -8
881#define SWIG_ValueError -9
882#define SWIG_SystemError -10
883#define SWIG_AttributeError -11
884#define SWIG_MemoryError -12
885#define SWIG_NullReferenceError -13
886
887
888#if __GNUC__ >= 7
889#pragma GCC diagnostic push
890#if defined(__cplusplus)
891#pragma GCC diagnostic ignored "-Wregister"
892#if __GNUC__ >= 10
893#pragma GCC diagnostic ignored "-Wvolatile"
894#if __GNUC__ >= 11
895#pragma GCC diagnostic ignored "-Wdeprecated-enum-enum-conversion"
896#endif
897#endif
898#endif
899#endif
900
901#include <ruby.h>
902#include <ruby/version.h> /* For RUBY_API_VERSION_CODE */
903
904#if __GNUC__ >= 7
905#pragma GCC diagnostic pop
906#endif
907
908/* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which
909 * breaks using rb_intern as an lvalue, as SWIG does. We work around this
910 * issue for now by disabling this.
911 * https://sourceforge.net/tracker/?func=detail&aid=2859614&group_id=1645&atid=101645
912 */
913#ifdef rb_intern
914# undef rb_intern
915#endif
916
917/* Remove global macros defined in Ruby's win32.h */
918#ifdef write
919# undef write
920#endif
921#ifdef read
922# undef read
923#endif
924#ifdef bind
925# undef bind
926#endif
927#ifdef close
928# undef close
929#endif
930#ifdef connect
931# undef connect
932#endif
933
934
935/* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */
936#ifndef NUM2LL
937#define NUM2LL(x) NUM2LONG((x))
938#endif
939#ifndef LL2NUM
940#define LL2NUM(x) INT2NUM((long) (x))
941#endif
942#ifndef ULL2NUM
943#define ULL2NUM(x) UINT2NUM((unsigned long) (x))
944#endif
945
946/* Ruby 1.7 doesn't (yet) define NUM2ULL() */
947#ifndef NUM2ULL
948#ifdef HAVE_LONG_LONG
949#define NUM2ULL(x) rb_num2ull((x))
950#else
951#define NUM2ULL(x) NUM2ULONG(x)
952#endif
953#endif
954
955/* RSTRING_LEN, etc are new in Ruby 1.9, but ->ptr and ->len no longer work */
956/* Define these for older versions so we can just write code the new way */
957#ifndef RSTRING_LEN
958# define RSTRING_LEN(x) RSTRING(x)->len
959#endif
960#ifndef RSTRING_PTR
961# define RSTRING_PTR(x) RSTRING(x)->ptr
962#endif
963#ifndef RSTRING_END
964# define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x))
965#endif
966#ifndef RARRAY_LEN
967# define RARRAY_LEN(x) RARRAY(x)->len
968#endif
969#ifndef RARRAY_PTR
970# define RARRAY_PTR(x) RARRAY(x)->ptr
971#endif
972#ifndef RFLOAT_VALUE
973# define RFLOAT_VALUE(x) RFLOAT(x)->value
974#endif
975#ifndef DOUBLE2NUM
976# define DOUBLE2NUM(x) rb_float_new(x)
977#endif
978#ifndef RHASH_TBL
979# define RHASH_TBL(x) (RHASH(x)->tbl)
980#endif
981#ifndef RHASH_ITER_LEV
982# define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev)
983#endif
984#ifndef RHASH_IFNONE
985# define RHASH_IFNONE(x) (RHASH(x)->ifnone)
986#endif
987#ifndef RHASH_SIZE
988# define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries)
989#endif
990#ifndef RHASH_EMPTY_P
991# define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0)
992#endif
993#ifndef RSTRUCT_LEN
994# define RSTRUCT_LEN(x) RSTRUCT(x)->len
995#endif
996#ifndef RSTRUCT_PTR
997# define RSTRUCT_PTR(x) RSTRUCT(x)->ptr
998#endif
999#ifndef RTYPEDDATA_P
1000# define RTYPEDDATA_P(x) (TYPE(x) != T_DATA)
1001#endif
1002
1003
1004
1005/*
1006 * The following macros are used for providing the correct type of a
1007 * function pointer to the Ruby C API.
1008 *
1009 * Starting with Ruby 2.7 these macros act transparently due to Ruby's moving
1010 * moving away from ANYARGS and instead employing strict function signatures.
1011 *
1012 * Note: In case of C (not C++) the macros are transparent even before
1013 * Ruby 2.7 due to the fact that the Ruby C API used function declarators
1014 * with empty parentheses, which allows for an unspecified number of
1015 * arguments.
1016 *
1017 * PROTECTFUNC(f) is used for the function pointer argument of the Ruby
1018 * C API function rb_protect().
1019 *
1020 * VALUEFUNC(f) is used for the function pointer argument(s) of Ruby C API
1021 * functions like rb_define_method() and rb_define_singleton_method().
1022 *
1023 * VOIDFUNC(f) is used to typecast a C function that implements either
1024 * the "mark" or "free" stuff for a Ruby Data object, so that it can be
1025 * passed as an argument to Ruby C API functions like Data_Wrap_Struct()
1026 * and Data_Make_Struct().
1027 *
1028 * SWIG_RUBY_VOID_ANYARGS_FUNC(f) is used for the function pointer
1029 * argument(s) of Ruby C API functions like rb_define_virtual_variable().
1030 *
1031 * SWIG_RUBY_INT_ANYARGS_FUNC(f) is used for the function pointer
1032 * argument(s) of Ruby C API functions like st_foreach().
1033 */
1034#if defined(__cplusplus) && RUBY_API_VERSION_CODE < 20700
1035# define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f)
1036# define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f)
1037# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
1038# define SWIG_RUBY_VOID_ANYARGS_FUNC(f) ((void (*)(ANYARGS))(f))
1039# define SWIG_RUBY_INT_ANYARGS_FUNC(f) ((int (*)(ANYARGS))(f))
1040#else
1041# define PROTECTFUNC(f) (f)
1042# define VALUEFUNC(f) (f)
1043# define VOIDFUNC(f) (f)
1044# define SWIG_RUBY_VOID_ANYARGS_FUNC(f) (f)
1045# define SWIG_RUBY_INT_ANYARGS_FUNC(f) (f)
1046#endif
1047
1048/* Don't use for expressions have side effect */
1049#ifndef RB_STRING_VALUE
1050#define RB_STRING_VALUE(s) (TYPE(s) == T_STRING ? (s) : (*(volatile VALUE *)&(s) = rb_str_to_str(s)))
1051#endif
1052#ifndef StringValue
1053#define StringValue(s) RB_STRING_VALUE(s)
1054#endif
1055#ifndef StringValuePtr
1056#define StringValuePtr(s) RSTRING_PTR(RB_STRING_VALUE(s))
1057#endif
1058#ifndef StringValueLen
1059#define StringValueLen(s) RSTRING_LEN(RB_STRING_VALUE(s))
1060#endif
1061#ifndef SafeStringValue
1062#define SafeStringValue(v) do {\
1063 StringValue(v);\
1064 rb_check_safe_str(v);\
1065} while (0)
1066#endif
1067
1068#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
1069#define rb_define_alloc_func(klass, func) rb_define_singleton_method((klass), "new", VALUEFUNC((func)), -1)
1070#define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new")
1071#endif
1072
1073static VALUE _mSWIG = Qnil;
1074
1075/* -----------------------------------------------------------------------------
1076 * error manipulation
1077 * ----------------------------------------------------------------------------- */
1078
1079
1080/* Define some additional error types */
1081#define SWIG_ObjectPreviouslyDeletedError -100
1082
1083
1084/* Define custom exceptions for errors that do not map to existing Ruby
1085 exceptions. Note this only works for C++ since a global cannot be
1086 initialized by a function in C. For C, fallback to rb_eRuntimeError.*/
1087
1088SWIGINTERN VALUE
1090 static int init = 0;
1091 static VALUE rb_eNullReferenceError ;
1092 if (!init) {
1093 init = 1;
1094 rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
1095 }
1096 return rb_eNullReferenceError;
1097}
1098
1099SWIGINTERN VALUE
1101 static int init = 0;
1102 static VALUE rb_eObjectPreviouslyDeleted ;
1103 if (!init) {
1104 init = 1;
1105 rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError);
1106 }
1107 return rb_eObjectPreviouslyDeleted;
1108}
1109
1110
1111SWIGINTERN VALUE
1112SWIG_Ruby_ErrorType(int SWIG_code) {
1113 VALUE type;
1114 switch (SWIG_code) {
1115 case SWIG_MemoryError:
1116 type = rb_eNoMemError;
1117 break;
1118 case SWIG_IOError:
1119 type = rb_eIOError;
1120 break;
1121 case SWIG_RuntimeError:
1122 type = rb_eRuntimeError;
1123 break;
1124 case SWIG_IndexError:
1125 type = rb_eIndexError;
1126 break;
1127 case SWIG_TypeError:
1128 type = rb_eTypeError;
1129 break;
1131 type = rb_eZeroDivError;
1132 break;
1133 case SWIG_OverflowError:
1134 type = rb_eRangeError;
1135 break;
1136 case SWIG_SyntaxError:
1137 type = rb_eSyntaxError;
1138 break;
1139 case SWIG_ValueError:
1140 type = rb_eArgError;
1141 break;
1142 case SWIG_SystemError:
1143 type = rb_eFatal;
1144 break;
1146 type = rb_eRuntimeError;
1147 break;
1150 break;
1153 break;
1154 case SWIG_UnknownError:
1155 type = rb_eRuntimeError;
1156 break;
1157 default:
1158 type = rb_eRuntimeError;
1159 }
1160 return type;
1161}
1162
1163
1164/* This function is called when a user inputs a wrong argument to
1165 a method.
1166 */
1168const char* Ruby_Format_TypeError( const char* msg,
1169 const char* type,
1170 const char* name,
1171 const int argn,
1172 VALUE input )
1173{
1174 char buf[128];
1175 VALUE str;
1176 VALUE asStr;
1177 if ( msg && *msg )
1178 {
1179 str = rb_str_new2(msg);
1180 }
1181 else
1182 {
1183 str = rb_str_new(NULL, 0);
1184 }
1185
1186 str = rb_str_cat2( str, "Expected argument " );
1187 SWIG_snprintf( buf, sizeof( buf), "%d of type ", argn-1 );
1188 str = rb_str_cat2( str, buf );
1189 str = rb_str_cat2( str, type );
1190 str = rb_str_cat2( str, ", but got " );
1191 str = rb_str_cat2( str, rb_obj_classname(input) );
1192 str = rb_str_cat2( str, " " );
1193 asStr = rb_inspect(input);
1194 if ( RSTRING_LEN(asStr) > 30 )
1195 {
1196 str = rb_str_cat( str, StringValuePtr(asStr), 30 );
1197 str = rb_str_cat2( str, "..." );
1198 }
1199 else
1200 {
1201 str = rb_str_append( str, asStr );
1202 }
1203
1204 if ( name )
1205 {
1206 str = rb_str_cat2( str, "\n\tin SWIG method '" );
1207 str = rb_str_cat2( str, name );
1208 str = rb_str_cat2( str, "'" );
1209 }
1210
1211 return StringValuePtr( str );
1212}
1213
1214/* This function is called when an overloaded method fails */
1217 const int argc,
1218 const int maxargs,
1219 const char* method,
1220 const char* prototypes
1221 )
1222{
1223 const char* msg = "Wrong # of arguments";
1224 if ( argc <= maxargs ) msg = "Wrong arguments";
1225 rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n"
1226 "Possible C/C++ prototypes are:\n%s",
1227 msg, method, prototypes);
1228}
1229
1230/* -----------------------------------------------------------------------------
1231 * rubytracking.swg
1232 *
1233 * This file contains support for tracking mappings from
1234 * Ruby objects to C++ objects. This functionality is needed
1235 * to implement mark functions for Ruby's mark and sweep
1236 * garbage collector.
1237 * ----------------------------------------------------------------------------- */
1238
1239#ifdef __cplusplus
1240extern "C" {
1241#endif
1242
1243#if !defined(ST_DATA_T_DEFINED)
1244/* Needs to be explicitly included for Ruby 1.8 and earlier */
1245#include <st.h>
1246#endif
1247
1248/* Ruby 1.8 actually assumes the first case. */
1249#if SIZEOF_VOIDP == SIZEOF_LONG
1250# define SWIG2NUM(v) LONG2NUM((unsigned long)v)
1251# define NUM2SWIG(x) (unsigned long)NUM2LONG(x)
1252#elif SIZEOF_VOIDP == SIZEOF_LONG_LONG
1253# define SWIG2NUM(v) LL2NUM((unsigned long long)v)
1254# define NUM2SWIG(x) (unsigned long long)NUM2LL(x)
1255#else
1256# error sizeof(void*) is not the same as long or long long
1257#endif
1258
1259/* Global hash table to store Trackings from C/C++
1260 structs to Ruby Objects.
1261*/
1262static st_table* swig_ruby_trackings = NULL;
1263
1264static VALUE swig_ruby_trackings_count(ID id, VALUE *var) {
1265 return SWIG2NUM(swig_ruby_trackings->num_entries);
1266}
1267
1268
1269/* Setup a hash table to store Trackings */
1271 /* Create a hash table to store Trackings from C++
1272 objects to Ruby objects. */
1273
1274 /* Try to see if some other .so has already created a
1275 tracking hash table, which we keep hidden in an instance var
1276 in the SWIG module.
1277 This is done to allow multiple DSOs to share the same
1278 tracking table.
1279 */
1280 VALUE trackings_value = Qnil;
1281 /* change the variable name so that we can mix modules
1282 compiled with older SWIG's - this used to be called "@__trackings__" */
1283 ID trackings_id = rb_intern( "@__safetrackings__" );
1284 VALUE verbose = rb_gv_get("VERBOSE");
1285 rb_gv_set("VERBOSE", Qfalse);
1286 trackings_value = rb_ivar_get( _mSWIG, trackings_id );
1287 rb_gv_set("VERBOSE", verbose);
1288
1289 /* The trick here is that we have to store the hash table
1290 pointer in a Ruby variable. We do not want Ruby's GC to
1291 treat this pointer as a Ruby object, so we convert it to
1292 a Ruby numeric value. */
1293 if (trackings_value == Qnil) {
1294 /* No, it hasn't. Create one ourselves */
1295 swig_ruby_trackings = st_init_numtable();
1296 rb_ivar_set( _mSWIG, trackings_id, SWIG2NUM(swig_ruby_trackings) );
1297 } else {
1298 swig_ruby_trackings = (st_table*)NUM2SWIG(trackings_value);
1299 }
1300
1301 rb_define_virtual_variable("SWIG_TRACKINGS_COUNT",
1303 SWIG_RUBY_VOID_ANYARGS_FUNC((rb_gvar_setter_t*)NULL));
1304}
1305
1306/* Add a Tracking from a C/C++ struct to a Ruby object */
1307SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) {
1308 /* Store the mapping to the global hash table. */
1309 st_insert(swig_ruby_trackings, (st_data_t)ptr, object);
1310}
1311
1312/* Get the Ruby object that owns the specified C/C++ struct */
1314 /* Now lookup the value stored in the global hash table */
1315 VALUE value;
1316
1317 if (st_lookup(swig_ruby_trackings, (st_data_t)ptr, &value)) {
1318 return value;
1319 } else {
1320 return Qnil;
1321 }
1322}
1323
1324/* Remove a Tracking from a C/C++ struct to a Ruby object. It
1325 is very important to remove objects once they are destroyed
1326 since the same memory address may be reused later to create
1327 a new object. */
1329 /* Delete the object from the hash table */
1330 st_delete(swig_ruby_trackings, (st_data_t *)&ptr, NULL);
1331}
1332
1333/* This is a helper method that unlinks a Ruby object from its
1334 underlying C++ object. This is needed if the lifetime of the
1335 Ruby object is longer than the C++ object. */
1337 VALUE object = SWIG_RubyInstanceFor(ptr);
1338
1339 if (object != Qnil) {
1340 // object might have the T_ZOMBIE type, but that's just
1341 // because the GC has flagged it as such for a deferred
1342 // destruction. Until then, it's still a T_DATA object.
1343 DATA_PTR(object) = 0;
1344 }
1345}
1346
1347/* This is a helper method that iterates over all the trackings
1348 passing the C++ object pointer and its related Ruby object
1349 to the passed callback function. */
1350
1351/* Proxy method to abstract the internal trackings datatype */
1352static int swig_ruby_internal_iterate_callback(st_data_t ptr, st_data_t obj, st_data_t meth) {
1353 ((void (*) (void *, VALUE))meth)((void *)ptr, (VALUE)obj);
1354 return ST_CONTINUE;
1355}
1356
1357SWIGRUNTIME void SWIG_RubyIterateTrackings( void(*meth)(void* ptr, VALUE obj) ) {
1358 st_foreach(swig_ruby_trackings,
1360 (st_data_t)meth);
1361}
1362
1363#ifdef __cplusplus
1364}
1365#endif
1366
1367/* -----------------------------------------------------------------------------
1368 * Ruby API portion that goes into the runtime
1369 * ----------------------------------------------------------------------------- */
1370
1371#ifdef __cplusplus
1372extern "C" {
1373#endif
1374
1375SWIGINTERN VALUE
1376SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
1377 if (NIL_P(target)) {
1378 target = o;
1379 } else {
1380 if (TYPE(target) != T_ARRAY) {
1381 VALUE o2 = target;
1382 target = rb_ary_new();
1383 rb_ary_push(target, o2);
1384 }
1385 rb_ary_push(target, o);
1386 }
1387 return target;
1388}
1389
1390/* For ruby1.8.4 and earlier. */
1391#ifndef RUBY_INIT_STACK
1392 RUBY_EXTERN void Init_stack(VALUE* addr);
1393# define RUBY_INIT_STACK \
1394 VALUE variable_in_this_stack_frame; \
1395 Init_stack(&variable_in_this_stack_frame);
1396#endif
1397
1398
1399#ifdef __cplusplus
1400}
1401#endif
1402
1403
1404/* -----------------------------------------------------------------------------
1405 * rubyrun.swg
1406 *
1407 * This file contains the runtime support for Ruby modules
1408 * and includes code for managing global variables and pointer
1409 * type checking.
1410 * ----------------------------------------------------------------------------- */
1411
1412/* For backward compatibility only */
1413#define SWIG_POINTER_EXCEPTION 0
1414
1415/* for raw pointers */
1416#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1417#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1418#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Ruby_NewPointerObj(ptr, type, flags)
1419#define SWIG_AcquirePtr(ptr, own) SWIG_Ruby_AcquirePtr(ptr, own)
1420#define swig_owntype swig_ruby_owntype
1421
1422/* for raw packed data */
1423#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags)
1424#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type)
1425
1426/* for class or struct pointers */
1427#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1428#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1429
1430/* for C or C++ function pointers */
1431#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0)
1432#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0)
1433
1434/* for C++ member pointers, ie, member methods */
1435#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty)
1436#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type)
1437
1438
1439/* Runtime API */
1440
1441#define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule(clientdata)
1442#define SWIG_SetModule(clientdata, pointer) SWIG_Ruby_SetModule(pointer)
1443
1444
1445/* Error manipulation */
1446
1447#define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code)
1448#define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), "%s", msg)
1449#define SWIG_fail goto fail
1450
1451
1452/* Ruby-specific SWIG API */
1453
1454#define SWIG_InitRuntime() SWIG_Ruby_InitRuntime()
1455#define SWIG_define_class(ty) SWIG_Ruby_define_class(ty)
1456#define SWIG_NewClassInstance(value, ty) SWIG_Ruby_NewClassInstance(value, ty)
1457#define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value)
1458#define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty)
1459
1460#include "assert.h"
1461
1462/* -----------------------------------------------------------------------------
1463 * pointers/data manipulation
1464 * ----------------------------------------------------------------------------- */
1465
1466#ifdef __cplusplus
1467extern "C" {
1468#endif
1469
1470typedef struct {
1471 VALUE klass;
1472 VALUE mImpl;
1473 void (*mark)(void *);
1474 void (*destroy)(void *);
1476} swig_class;
1477
1478
1479/* Global pointer used to keep some internal SWIG stuff */
1480static VALUE _cSWIG_Pointer = Qnil;
1482
1483/* Global IDs used to keep some internal SWIG stuff */
1485static ID swig_call_id = 0;
1487
1488/*
1489 If your swig extension is to be run within an embedded ruby and has
1490 director callbacks, you should set -DRUBY_EMBEDDED during compilation.
1491 This will reset ruby's stack frame on each entry point from the main
1492 program the first time a virtual director function is invoked (in a
1493 non-recursive way).
1494 If this is not done, you run the risk of Ruby trashing the stack.
1495*/
1496
1497#ifdef RUBY_EMBEDDED
1498
1499# define SWIG_INIT_STACK \
1500 if ( !swig_virtual_calls ) { RUBY_INIT_STACK } \
1501 ++swig_virtual_calls;
1502# define SWIG_RELEASE_STACK --swig_virtual_calls;
1503# define Ruby_DirectorTypeMismatchException(x) \
1504 rb_raise( rb_eTypeError, "%s", x ); return c_result;
1505
1506 static unsigned int swig_virtual_calls = 0;
1507
1508#else /* normal non-embedded extension */
1509
1510# define SWIG_INIT_STACK
1511# define SWIG_RELEASE_STACK
1512# define Ruby_DirectorTypeMismatchException(x) \
1513 throw Swig::DirectorTypeMismatchException( x );
1514
1515#endif /* RUBY_EMBEDDED */
1516
1517
1518SWIGRUNTIME VALUE
1520 static int init = 0;
1521 static VALUE rubyExceptionClass ;
1522 if (!init) {
1523 init = 1;
1524 rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception"));
1525 }
1526 return rubyExceptionClass;
1527}
1528
1529/* This code checks to see if the Ruby object being raised as part
1530 of an exception inherits from the Ruby class Exception. If so,
1531 the object is simply returned. If not, then a new Ruby exception
1532 object is created and that will be returned to Ruby.*/
1533SWIGRUNTIME VALUE
1535 VALUE exceptionClass = getExceptionClass();
1536 if (rb_obj_is_kind_of(obj, exceptionClass)) {
1537 return obj;
1538 } else {
1539 return rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(obj));
1540 }
1541}
1542
1543/* Initialize Ruby runtime support */
1544SWIGRUNTIME void
1546{
1547 if (_mSWIG == Qnil) {
1548 _mSWIG = rb_define_module("SWIG");
1549 swig_call_id = rb_intern("call");
1550 swig_arity_id = rb_intern("arity");
1551 swig_lowerthan_id = rb_intern("<");
1552 }
1553}
1554
1555/* Define Ruby class for C type */
1556SWIGRUNTIME void
1558{
1559 size_t klass_len = 4 + strlen(type->name) + 1;
1560 char *klass_name = (char *) malloc(klass_len);
1561 SWIG_snprintf(klass_name, klass_len, "TYPE%s", type->name);
1562 if (NIL_P(_cSWIG_Pointer)) {
1563 _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
1564 rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
1565 }
1566 rb_undef_alloc_func(rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer));
1567 free((void *) klass_name);
1568}
1569
1570/* Create a new pointer object */
1571SWIGRUNTIME VALUE
1573{
1574 int own = flags & SWIG_POINTER_OWN;
1575 int track;
1576 char *klass_name;
1577 swig_class *sklass;
1578 VALUE klass;
1579 VALUE obj;
1580
1581 if (!ptr)
1582 return Qnil;
1583
1584 assert(type);
1585 if (type->clientdata) {
1586 sklass = (swig_class *) type->clientdata;
1587
1588 /* Are we tracking this class and have we already returned this Ruby object? */
1589 track = sklass->trackObjects;
1590 if (track) {
1591 obj = SWIG_RubyInstanceFor(ptr);
1592
1593 /* Check the object's type and make sure it has the correct type.
1594 It might not in cases where methods do things like
1595 downcast methods. */
1596 if (obj != Qnil) {
1597 VALUE value = rb_iv_get(obj, "@__swigtype__");
1598 const char* type_name = RSTRING_PTR(value);
1599
1600 if (strcmp(type->name, type_name) == 0) {
1601 return obj;
1602 }
1603 }
1604 }
1605
1606 /* Create a new Ruby object */
1607 obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark),
1608 ( own ? VOIDFUNC(sklass->destroy) :
1609 (track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 )
1610 ), ptr);
1611
1612 /* If tracking is on for this class then track this object. */
1613 if (track) {
1614 SWIG_RubyAddTracking(ptr, obj);
1615 }
1616 } else {
1617 size_t klass_len = 4 + strlen(type->name) + 1;
1618 klass_name = (char *) malloc(klass_len);
1619 SWIG_snprintf(klass_name, klass_len, "TYPE%s", type->name);
1620 klass = rb_const_get(_mSWIG, rb_intern(klass_name));
1621 free((void *) klass_name);
1622 obj = Data_Wrap_Struct(klass, 0, 0, ptr);
1623 }
1624 rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
1625
1626 return obj;
1627}
1628
1629/* Create a new class instance (always owned) */
1630SWIGRUNTIME VALUE
1632{
1633 VALUE obj;
1634 swig_class *sklass = (swig_class *) type->clientdata;
1635 obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0);
1636 rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
1637 return obj;
1638}
1639
1640/* Get type mangle from class name */
1641SWIGRUNTIMEINLINE char *
1643{
1644 VALUE stype = rb_iv_get(obj, "@__swigtype__");
1645 if (NIL_P(stype))
1646 return NULL;
1647 return StringValuePtr(stype);
1648}
1649
1650/* Acquire a pointer value */
1651typedef struct {
1652 void (*datafree)(void *);
1653 int own;
1655
1658 swig_ruby_owntype oldown = {0, 0};
1659 if (TYPE(obj) == T_DATA && !RTYPEDDATA_P(obj)) {
1660 oldown.datafree = RDATA(obj)->dfree;
1661 RDATA(obj)->dfree = own.datafree;
1662 }
1663 return oldown;
1664}
1665
1666/* Convert a pointer value */
1667SWIGRUNTIME int
1669{
1670 char *c;
1671 swig_cast_info *tc;
1672 void *vptr = 0;
1673
1674 /* Grab the pointer */
1675 if (NIL_P(obj)) {
1676 if (ptr)
1677 *ptr = 0;
1679 } else {
1680 if (TYPE(obj) != T_DATA || (TYPE(obj) == T_DATA && RTYPEDDATA_P(obj))) {
1681 return SWIG_ERROR;
1682 }
1683 Data_Get_Struct(obj, void, vptr);
1684 }
1685
1686 if (own) {
1687 own->datafree = RDATA(obj)->dfree;
1688 own->own = 0;
1689 }
1690
1692 if (!RDATA(obj)->dfree)
1694 }
1695
1696 /* Check to see if the input object is giving up ownership
1697 of the underlying C struct or C++ object. If so then we
1698 need to reset the destructor since the Ruby object no
1699 longer owns the underlying C++ object.*/
1700 if (flags & SWIG_POINTER_DISOWN) {
1701 /* Is tracking on for this class? */
1702 int track = 0;
1703 if (ty && ty->clientdata) {
1704 swig_class *sklass = (swig_class *) ty->clientdata;
1705 track = sklass->trackObjects;
1706 }
1707
1708 if (track) {
1709 /* We are tracking objects for this class. Thus we change the destructor
1710 * to SWIG_RubyRemoveTracking. This allows us to
1711 * remove the mapping from the C++ to Ruby object
1712 * when the Ruby object is garbage collected. If we don't
1713 * do this, then it is possible we will return a reference
1714 * to a Ruby object that no longer exists thereby crashing Ruby. */
1715 RDATA(obj)->dfree = SWIG_RubyRemoveTracking;
1716 } else {
1717 RDATA(obj)->dfree = 0;
1718 }
1719 }
1720
1721 if (flags & SWIG_POINTER_CLEAR) {
1722 DATA_PTR(obj) = 0;
1723 }
1724
1725 /* Do type-checking if type info was provided */
1726 if (ty) {
1727 if (ty->clientdata) {
1728 if (rb_obj_is_kind_of(obj, ((swig_class *) (ty->clientdata))->klass)) {
1729 if (vptr == 0) {
1730 /* The object has already been deleted */
1732 }
1733 }
1734 }
1735 if ((c = SWIG_MangleStr(obj)) == NULL) {
1736 return SWIG_ERROR;
1737 }
1738 tc = SWIG_TypeCheck(c, ty);
1739 if (!tc) {
1740 return SWIG_ERROR;
1741 } else {
1742 if (ptr) {
1743 if (tc->type == ty) {
1744 *ptr = vptr;
1745 } else {
1746 int newmemory = 0;
1747 *ptr = SWIG_TypeCast(tc, vptr, &newmemory);
1748 if (newmemory == SWIG_CAST_NEW_MEMORY) {
1749 assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
1750 if (own)
1751 own->own = own->own | SWIG_CAST_NEW_MEMORY;
1752 }
1753 }
1754 }
1755 }
1756 } else {
1757 if (ptr)
1758 *ptr = vptr;
1759 }
1760
1761 return SWIG_OK;
1762}
1763
1764/* Check convert */
1767{
1768 char *c = SWIG_MangleStr(obj);
1769 if (!c) return 0;
1770 return SWIG_TypeCheck(c,ty) != 0;
1771}
1772
1773SWIGRUNTIME VALUE
1775 char result[1024];
1776 char *r = result;
1777 if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
1778 *(r++) = '_';
1779 r = SWIG_PackData(r, ptr, sz);
1780 strcpy(r, type->name);
1781 return rb_str_new2(result);
1782}
1783
1784/* Convert a packed pointer value */
1785SWIGRUNTIME int
1786SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) {
1787 swig_cast_info *tc;
1788 const char *c;
1789
1790 if (TYPE(obj) != T_STRING) goto type_error;
1791 c = StringValuePtr(obj);
1792 /* Pointer values must start with leading underscore */
1793 if (*c != '_') goto type_error;
1794 c++;
1795 c = SWIG_UnpackData(c, ptr, sz);
1796 if (ty) {
1797 tc = SWIG_TypeCheck(c, ty);
1798 if (!tc) goto type_error;
1799 }
1800 return SWIG_OK;
1801
1802 type_error:
1803 return SWIG_ERROR;
1804}
1805
1808{
1809 VALUE pointer;
1810 swig_module_info *ret = 0;
1811 VALUE verbose = rb_gv_get("VERBOSE");
1812
1813 /* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */
1814 rb_gv_set("VERBOSE", Qfalse);
1815
1816 /* first check if pointer already created */
1817 pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME);
1818 if (pointer != Qnil) {
1819 Data_Get_Struct(pointer, swig_module_info, ret);
1820 }
1821
1822 /* reinstate warnings */
1823 rb_gv_set("VERBOSE", verbose);
1824 return ret;
1825}
1826
1827SWIGRUNTIME void
1829{
1830 /* register a new class */
1831 VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1833 /* create and store the structure pointer to a global variable */
1834 swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1835 rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
1836}
1837
1838/* This function can be used to check whether a proc or method or similarly
1839 callable function has been passed. Usually used in a %typecheck, like:
1840
1841 %typecheck(c_callback_t, precedence=SWIG_TYPECHECK_POINTER) {
1842 $result = SWIG_Ruby_isCallable( $input );
1843 }
1844 */
1846int SWIG_Ruby_isCallable( VALUE proc )
1847{
1848 if ( rb_respond_to( proc, swig_call_id ) )
1849 return 1;
1850 return 0;
1851}
1852
1853/* This function can be used to check the arity (number of arguments)
1854 a proc or method can take. Usually used in a %typecheck.
1855 Valid arities will be that equal to minimal or those < 0
1856 which indicate a variable number of parameters at the end.
1857 */
1859int SWIG_Ruby_arity( VALUE proc, int minimal )
1860{
1861 if ( rb_respond_to( proc, swig_arity_id ) )
1862 {
1863 VALUE num = rb_funcall2( proc, swig_arity_id, 0, 0 );
1864 int arity = NUM2INT(num);
1865 if ( arity < 0 && (arity+1) < -minimal ) return 1;
1866 if ( arity == minimal ) return 1;
1867 return 1;
1868 }
1869 return 0;
1870}
1871
1872
1873#ifdef __cplusplus
1874}
1875#endif
1876
1877
1878
1879#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
1880
1881#define SWIG_contract_assert(expr, msg) do { if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } } while (0)
1882
1883
1884
1885/* -------- TYPES TABLE (BEGIN) -------- */
1886
1887#define SWIGTYPE_p_Agedge_t swig_types[0]
1888#define SWIGTYPE_p_Agnode_t swig_types[1]
1889#define SWIGTYPE_p_Agraph_t swig_types[2]
1890#define SWIGTYPE_p_Agsym_t swig_types[3]
1891#define SWIGTYPE_p_FILE swig_types[4]
1892#define SWIGTYPE_p_char swig_types[5]
1894static swig_module_info swig_module = {swig_types, 6, 0, 0, 0, 0};
1895#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1896#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1897
1898/* -------- TYPES TABLE (END) -------- */
1899
1900#define SWIG_init Init_gv
1901#define SWIG_name "Gv"
1902
1903static VALUE mGv;
1904
1905#ifdef __cplusplus
1906#include <utility>
1907/* SwigValueWrapper is described in swig.swg */
1908template<typename T> class SwigValueWrapper {
1909 struct SwigSmartPointer {
1910 T *ptr;
1911 SwigSmartPointer(T *p) : ptr(p) { }
1912 ~SwigSmartPointer() { delete ptr; }
1913 SwigSmartPointer& operator=(SwigSmartPointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
1914 void reset(T *p) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = p; }
1915 } pointer;
1916 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
1917 SwigValueWrapper(const SwigValueWrapper<T>& rhs);
1918public:
1919 SwigValueWrapper() : pointer(0) { }
1920 SwigValueWrapper& operator=(const T& t) { SwigSmartPointer tmp(new T(t)); pointer = tmp; return *this; }
1921#if __cplusplus >=201103L
1922 SwigValueWrapper& operator=(T&& t) { SwigSmartPointer tmp(new T(std::move(t))); pointer = tmp; return *this; }
1923 operator T&&() const { return std::move(*pointer.ptr); }
1924#else
1925 operator T&() const { return *pointer.ptr; }
1926#endif
1927 T *operator&() const { return pointer.ptr; }
1928 static void reset(SwigValueWrapper& t, T *p) { t.pointer.reset(p); }
1929};
1930
1931/*
1932 * SwigValueInit() is a generic initialisation solution as the following approach:
1933 *
1934 * T c_result = T();
1935 *
1936 * doesn't compile for all types for example:
1937 *
1938 * unsigned int c_result = unsigned int();
1939 */
1940template <typename T> T SwigValueInit() {
1941 return T();
1942}
1943
1944#if __cplusplus >=201103L
1945# define SWIG_STD_MOVE(OBJ) std::move(OBJ)
1946#else
1947# define SWIG_STD_MOVE(OBJ) OBJ
1948#endif
1949
1950#endif
1951
1952
1953#define SWIG_RUBY_THREAD_BEGIN_BLOCK
1954#define SWIG_RUBY_THREAD_END_BLOCK
1955
1956
1957#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
1958#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
1959
1960
1961#include <stdexcept>
1962
1963
1964/* some language headers (e.g. php.h, ruby.h) leave these defined */
1965#undef PACKAGE_BUGREPORT
1966#undef PACKAGE_STRING
1967#undef PACKAGE_TARNAME
1968#undef PACKAGE_VERSION
1969#undef PACKAGE_NAME
1970
1971#include "config.h"
1972#include <gvc/gvc.h>
1973
1975/*** New empty graph */
1976extern Agraph_t *graph(char *name);
1977extern Agraph_t *digraph(char *name);
1978extern Agraph_t *strictgraph(char *name);
1979extern Agraph_t *strictdigraph(char *name);
1980/*** New graph from a dot-syntax string or file */
1981extern Agraph_t *readstring(char *string);
1982extern Agraph_t *read(const char *filename);
1983extern Agraph_t *read(FILE *f);
1984/*** Add new subgraph to existing graph */
1985extern Agraph_t *graph(Agraph_t *g, char *name);
1986
1988/*** Add new node to existing graph */
1989extern Agnode_t *node(Agraph_t *g, char *name);
1990
1992/*** Add new edge between existing nodes */
1993extern Agedge_t *edge(Agnode_t *t, Agnode_t *h);
1994/*** Add a new edge between an existing tail node, and a named head node which will be induced in the graph if it doesn't already exist */
1995extern Agedge_t *edge(Agnode_t *t, char *hname);
1996/*** Add a new edge between an existing head node, and a named tail node which will be induced in the graph if it doesn't already exist */
1997extern Agedge_t *edge(char *tname, Agnode_t *h);
1998/*** Add a new edge between named tail and head nodes which will be induced in the graph if they don't already exist */
1999extern Agedge_t *edge(Agraph_t *g, char *tname, char *hname);
2000
2002/*** Set value of named attribute of graph/node/edge - creating attribute if necessary */
2003extern char *setv(Agraph_t *g, char *attr, char *val);
2004extern char *setv(Agnode_t *n, char *attr, char *val);
2005extern char *setv(Agedge_t *e, char *attr, char *val);
2006
2007/*** Set value of existing attribute of graph/node/edge (using attribute handle) */
2008extern char *setv(Agraph_t *g, Agsym_t *a, char *val);
2009extern char *setv(Agnode_t *n, Agsym_t *a, char *val);
2010extern char *setv(Agedge_t *e, Agsym_t *a, char *val);
2011
2013/*** Get value of named attribute of graph/node/edge */
2014extern char *getv(Agraph_t *g, char *attr);
2015extern char *getv(Agnode_t *n, char *attr);
2016extern char *getv(Agedge_t *e, char *attr);
2017
2018/*** Get value of attribute of graph/node/edge (using attribute handle) */
2019extern char *getv(Agraph_t *g, Agsym_t *a);
2020extern char *getv(Agnode_t *n, Agsym_t *a);
2021extern char *getv(Agedge_t *e, Agsym_t *a);
2022
2024extern char *nameof(Agraph_t *g);
2025extern char *nameof(Agnode_t *n);
2026extern char *nameof(Agsym_t *a);
2027
2029extern Agraph_t *findsubg(Agraph_t *g, char *name);
2030extern Agnode_t *findnode(Agraph_t *g, char *name);
2031extern Agedge_t *findedge(Agnode_t *t, Agnode_t *h);
2032
2034extern Agsym_t *findattr(Agraph_t *g, char *name);
2035extern Agsym_t *findattr(Agnode_t *n, char *name);
2036extern Agsym_t *findattr(Agedge_t *e, char *name);
2037
2039extern Agnode_t *headof(Agedge_t *e);
2040extern Agnode_t *tailof(Agedge_t *e);
2041extern Agraph_t *graphof(Agraph_t *g);
2042extern Agraph_t *graphof(Agedge_t *e);
2043extern Agraph_t *graphof(Agnode_t *n);
2044extern Agraph_t *rootof(Agraph_t *g);
2045
2047extern Agnode_t *protonode(Agraph_t *g);
2048extern Agedge_t *protoedge(Agraph_t *g);
2049
2051/*** Iteration termination tests */
2052extern bool ok(Agraph_t *g);
2053extern bool ok(Agnode_t *n);
2054extern bool ok(Agedge_t *e);
2055extern bool ok(Agsym_t *a);
2056
2057/*** Iterate over subgraphs of a graph */
2058extern Agraph_t *firstsubg(Agraph_t *g);
2059extern Agraph_t *nextsubg(Agraph_t *g, Agraph_t *sg);
2060
2061/*** Iterate over supergraphs of a graph (obscure and rarely useful) */
2062extern Agraph_t *firstsupg(Agraph_t *g);
2063extern Agraph_t *nextsupg(Agraph_t *g, Agraph_t *sg);
2064
2065/*** Iterate over edges of a graph */
2066extern Agedge_t *firstedge(Agraph_t *g);
2067extern Agedge_t *nextedge(Agraph_t *g, Agedge_t *e);
2068
2069/*** Iterate over outedges of a graph */
2070extern Agedge_t *firstout(Agraph_t *g);
2071extern Agedge_t *nextout(Agraph_t *g, Agedge_t *e);
2072
2073/*** Iterate over edges of a node */
2074extern Agedge_t *firstedge(Agnode_t *n);
2075extern Agedge_t *nextedge(Agnode_t *n, Agedge_t *e);
2076
2077/*** Iterate over out-edges of a node */
2078extern Agedge_t *firstout(Agnode_t *n);
2079extern Agedge_t *nextout(Agnode_t *n, Agedge_t *e);
2080
2081/*** Iterate over head nodes reachable from out-edges of a node */
2082extern Agnode_t *firsthead(Agnode_t *n);
2083extern Agnode_t *nexthead(Agnode_t *n, Agnode_t *h);
2084
2085/*** Iterate over in-edges of a graph */
2086extern Agedge_t *firstin(Agraph_t *g);
2087extern Agedge_t *nextin(Agnode_t *n, Agedge_t *e);
2088
2089/*** Iterate over in-edges of a node */
2090extern Agedge_t *firstin(Agnode_t *n);
2091extern Agedge_t *nextin(Agraph_t *g, Agedge_t *e);
2092
2093/*** Iterate over tail nodes reachable from in-edges of a node */
2094extern Agnode_t *firsttail(Agnode_t *n);
2095extern Agnode_t *nexttail(Agnode_t *n, Agnode_t *t);
2096
2097/*** Iterate over nodes of a graph */
2098extern Agnode_t *firstnode(Agraph_t *g);
2099extern Agnode_t *nextnode(Agraph_t *g, Agnode_t *n);
2100
2101/*** Iterate over nodes of an edge */
2102extern Agnode_t *firstnode(Agedge_t *e);
2103extern Agnode_t *nextnode(Agedge_t *e, Agnode_t *n);
2104
2105/*** Iterate over attributes of a graph */
2106extern Agsym_t *firstattr(Agraph_t *g);
2107extern Agsym_t *nextattr(Agraph_t *g, Agsym_t *a);
2108
2109/*** Iterate over attributes of an edge */
2110extern Agsym_t *firstattr(Agedge_t *e);
2111extern Agsym_t *nextattr(Agedge_t *e, Agsym_t *a);
2112
2113/*** Iterate over attributes of a node */
2114extern Agsym_t *firstattr(Agnode_t *n);
2115extern Agsym_t *nextattr(Agnode_t *n, Agsym_t *a);
2116
2118extern bool rm(Agraph_t *g);
2119extern bool rm(Agnode_t *n);
2120extern bool rm(Agedge_t *e);
2121
2123/*** Annotate a graph with layout attributes and values using a specific layout engine */
2124extern bool layout(Agraph_t *g, const char *engine);
2125
2127/*** Render a layout into attributes of the graph */
2128extern bool render(Agraph_t *g);
2129/*** Render a layout to stdout */
2130extern bool render(Agraph_t *g, const char *format);
2131/*** Render to an open file */
2132extern bool render(Agraph_t *g, const char *format, FILE *fout);
2133/*** Render a layout to an unopened file by name */
2134extern bool render(Agraph_t *g, const char *format, const char *filename);
2135/*** Render to a string result */
2136#ifdef SWIGJAVA
2137extern char* renderresult(Agraph_t *ing, const char *format);
2138#else
2139extern void renderresult(Agraph_t *g, const char *format, char *outdata);
2140/*** Render to an open channel */
2141extern bool renderchannel(Agraph_t *g, const char *format, const char *channelname);
2142#endif
2143/*** Render a layout to a malloc'ed string, to be free'd by the caller */
2144/*** (deprecated - too easy to leak memory) */
2145/*** (still needed for "eval [gv::renderdata $G tk]" ) */
2146extern char* renderdata(Agraph_t *g, const char *format);
2147
2148/*** Writing graph back to file */
2149extern bool write(Agraph_t *g, const char *filename);
2150extern bool write(Agraph_t *g, FILE *f);
2151
2152/*** Graph transformation tools */
2153extern bool tred(Agraph_t *g);
2154
2155
2156
2159{
2160 static int init = 0;
2161 static swig_type_info* info = 0;
2162 if (!init) {
2163 info = SWIG_TypeQuery("_p_char");
2164 init = 1;
2165 }
2166 return info;
2167}
2168
2169
2170SWIGINTERN int
2171SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
2172{
2173 if (TYPE(obj) == T_STRING) {
2174 char *cstr = StringValuePtr(obj);
2175 size_t size = RSTRING_LEN(obj) + 1;
2176 if (cptr) {
2177 if (alloc) {
2178 if (*alloc == SWIG_NEWOBJ) {
2179 *cptr = reinterpret_cast< char* >(memcpy(new char[size], cstr, sizeof(char)*(size)));
2180 } else {
2181 *cptr = cstr;
2182 *alloc = SWIG_OLDOBJ;
2183 }
2184 }
2185 }
2186 if (psize) *psize = size;
2187 return SWIG_OK;
2188 } else {
2189 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
2190 if (pchar_descriptor) {
2191 void* vptr = 0;
2192 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
2193 if (cptr) *cptr = (char *)vptr;
2194 if (psize) *psize = vptr ? (strlen((char*)vptr) + 1) : 0;
2195 if (alloc) *alloc = SWIG_OLDOBJ;
2196 return SWIG_OK;
2197 }
2198 }
2199 }
2200 return SWIG_TypeError;
2201}
2202
2203
2204
2205
2206
2207SWIGINTERNINLINE VALUE
2208SWIG_FromCharPtrAndSize(const char* carray, size_t size)
2209{
2210 if (carray) {
2211 if (size > LONG_MAX) {
2212 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
2213 return pchar_descriptor ?
2214 SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : Qnil;
2215 } else {
2216 return rb_str_new(carray, static_cast< long >(size));
2217 }
2218 } else {
2219 return Qnil;
2220 }
2221}
2222
2223
2224SWIGINTERNINLINE VALUE
2225SWIG_FromCharPtr(const char *cptr)
2226{
2227 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
2228}
2229
2230
2231SWIGINTERNINLINE VALUE
2232SWIG_From_bool (bool value)
2233{
2234 return value ? Qtrue : Qfalse;
2235}
2236
2237SWIGINTERN VALUE
2238_wrap_graph__SWIG_0(int argc, VALUE *argv, VALUE self) {
2239 char *arg1 = (char *) 0 ;
2240 int res1 ;
2241 char *buf1 = 0 ;
2242 int alloc1 = 0 ;
2243 Agraph_t *result = 0 ;
2244 VALUE vresult = Qnil;
2245
2246 if ((argc < 1) || (argc > 1)) {
2247 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2248 }
2249 res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
2250 if (!SWIG_IsOK(res1)) {
2251 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char *","graph", 1, argv[0] ));
2252 }
2253 arg1 = reinterpret_cast< char * >(buf1);
2254 result = (Agraph_t *)graph(arg1);
2255 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
2256 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2257 return vresult;
2258fail:
2259 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2260 return Qnil;
2261}
2262
2263
2264SWIGINTERN VALUE
2265_wrap_digraph(int argc, VALUE *argv, VALUE self) {
2266 char *arg1 = (char *) 0 ;
2267 int res1 ;
2268 char *buf1 = 0 ;
2269 int alloc1 = 0 ;
2270 Agraph_t *result = 0 ;
2271 VALUE vresult = Qnil;
2272
2273 if ((argc < 1) || (argc > 1)) {
2274 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2275 }
2276 res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
2277 if (!SWIG_IsOK(res1)) {
2278 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char *","digraph", 1, argv[0] ));
2279 }
2280 arg1 = reinterpret_cast< char * >(buf1);
2281 result = (Agraph_t *)digraph(arg1);
2282 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
2283 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2284 return vresult;
2285fail:
2286 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2287 return Qnil;
2288}
2289
2290
2291SWIGINTERN VALUE
2292_wrap_strictgraph(int argc, VALUE *argv, VALUE self) {
2293 char *arg1 = (char *) 0 ;
2294 int res1 ;
2295 char *buf1 = 0 ;
2296 int alloc1 = 0 ;
2297 Agraph_t *result = 0 ;
2298 VALUE vresult = Qnil;
2299
2300 if ((argc < 1) || (argc > 1)) {
2301 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2302 }
2303 res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
2304 if (!SWIG_IsOK(res1)) {
2305 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char *","strictgraph", 1, argv[0] ));
2306 }
2307 arg1 = reinterpret_cast< char * >(buf1);
2308 result = (Agraph_t *)strictgraph(arg1);
2309 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
2310 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2311 return vresult;
2312fail:
2313 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2314 return Qnil;
2315}
2316
2317
2318SWIGINTERN VALUE
2319_wrap_strictdigraph(int argc, VALUE *argv, VALUE self) {
2320 char *arg1 = (char *) 0 ;
2321 int res1 ;
2322 char *buf1 = 0 ;
2323 int alloc1 = 0 ;
2324 Agraph_t *result = 0 ;
2325 VALUE vresult = Qnil;
2326
2327 if ((argc < 1) || (argc > 1)) {
2328 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2329 }
2330 res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
2331 if (!SWIG_IsOK(res1)) {
2332 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char *","strictdigraph", 1, argv[0] ));
2333 }
2334 arg1 = reinterpret_cast< char * >(buf1);
2335 result = (Agraph_t *)strictdigraph(arg1);
2336 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
2337 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2338 return vresult;
2339fail:
2340 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2341 return Qnil;
2342}
2343
2344
2345SWIGINTERN VALUE
2346_wrap_readstring(int argc, VALUE *argv, VALUE self) {
2347 char *arg1 = (char *) 0 ;
2348 int res1 ;
2349 char *buf1 = 0 ;
2350 int alloc1 = 0 ;
2351 Agraph_t *result = 0 ;
2352 VALUE vresult = Qnil;
2353
2354 if ((argc < 1) || (argc > 1)) {
2355 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2356 }
2357 res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
2358 if (!SWIG_IsOK(res1)) {
2359 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char *","readstring", 1, argv[0] ));
2360 }
2361 arg1 = reinterpret_cast< char * >(buf1);
2362 result = (Agraph_t *)readstring(arg1);
2363 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
2364 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2365 return vresult;
2366fail:
2367 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2368 return Qnil;
2369}
2370
2371
2372SWIGINTERN VALUE
2373_wrap_read__SWIG_0(int argc, VALUE *argv, VALUE self) {
2374 char *arg1 = (char *) 0 ;
2375 int res1 ;
2376 char *buf1 = 0 ;
2377 int alloc1 = 0 ;
2378 Agraph_t *result = 0 ;
2379 VALUE vresult = Qnil;
2380
2381 if ((argc < 1) || (argc > 1)) {
2382 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2383 }
2384 res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
2385 if (!SWIG_IsOK(res1)) {
2386 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","read", 1, argv[0] ));
2387 }
2388 arg1 = reinterpret_cast< char * >(buf1);
2389 result = (Agraph_t *)read((char const *)arg1);
2390 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
2391 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2392 return vresult;
2393fail:
2394 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2395 return Qnil;
2396}
2397
2398
2399SWIGINTERN VALUE
2400_wrap_read__SWIG_1(int argc, VALUE *argv, VALUE self) {
2401 FILE *arg1 = (FILE *) 0 ;
2402 void *argp1 = 0 ;
2403 int res1 = 0 ;
2404 Agraph_t *result = 0 ;
2405 VALUE vresult = Qnil;
2406
2407 if ((argc < 1) || (argc > 1)) {
2408 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2409 }
2410 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FILE, 0 | 0 );
2411 if (!SWIG_IsOK(res1)) {
2412 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FILE *","read", 1, argv[0] ));
2413 }
2414 arg1 = reinterpret_cast< FILE * >(argp1);
2415 result = (Agraph_t *)read(arg1);
2416 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
2417 return vresult;
2418fail:
2419 return Qnil;
2420}
2421
2422
2423SWIGINTERN VALUE _wrap_read(int nargs, VALUE *args, VALUE self) {
2424 int argc;
2425 VALUE argv[1];
2426 int ii;
2427
2428 argc = nargs;
2429 if (argc > 1) SWIG_fail;
2430 for (ii = 0; (ii < argc); ++ii) {
2431 argv[ii] = args[ii];
2432 }
2433 if (argc == 1) {
2434 int _v = 0;
2435 void *vptr = 0;
2436 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FILE, 0);
2437 _v = SWIG_CheckState(res);
2438 if (_v) {
2439 return _wrap_read__SWIG_1(nargs, args, self);
2440 }
2441 }
2442 if (argc == 1) {
2443 int _v = 0;
2444 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
2445 _v = SWIG_CheckState(res);
2446 if (_v) {
2447 return _wrap_read__SWIG_0(nargs, args, self);
2448 }
2449 }
2450
2451fail:
2452 Ruby_Format_OverloadedError( argc, 1, "read",
2453 " Agraph_t read(char const *filename)\n"
2454 " Agraph_t * read(FILE *f)\n");
2455
2456 return Qnil;
2457}
2458
2459
2460SWIGINTERN VALUE
2461_wrap_graph__SWIG_1(int argc, VALUE *argv, VALUE self) {
2462 Agraph_t *arg1 = (Agraph_t *) 0 ;
2463 char *arg2 = (char *) 0 ;
2464 void *argp1 = 0 ;
2465 int res1 = 0 ;
2466 int res2 ;
2467 char *buf2 = 0 ;
2468 int alloc2 = 0 ;
2469 Agraph_t *result = 0 ;
2470 VALUE vresult = Qnil;
2471
2472 if ((argc < 2) || (argc > 2)) {
2473 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
2474 }
2475 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
2476 if (!SWIG_IsOK(res1)) {
2477 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","graph", 1, argv[0] ));
2478 }
2479 arg1 = reinterpret_cast< Agraph_t * >(argp1);
2480 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
2481 if (!SWIG_IsOK(res2)) {
2482 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","graph", 2, argv[1] ));
2483 }
2484 arg2 = reinterpret_cast< char * >(buf2);
2485 result = (Agraph_t *)graph(arg1,arg2);
2486 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
2487 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2488 return vresult;
2489fail:
2490 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2491 return Qnil;
2492}
2493
2494
2495SWIGINTERN VALUE _wrap_graph(int nargs, VALUE *args, VALUE self) {
2496 int argc;
2497 VALUE argv[2];
2498 int ii;
2499
2500 argc = nargs;
2501 if (argc > 2) SWIG_fail;
2502 for (ii = 0; (ii < argc); ++ii) {
2503 argv[ii] = args[ii];
2504 }
2505 if (argc == 1) {
2506 int _v = 0;
2507 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
2508 _v = SWIG_CheckState(res);
2509 if (_v) {
2510 return _wrap_graph__SWIG_0(nargs, args, self);
2511 }
2512 }
2513 if (argc == 2) {
2514 int _v = 0;
2515 void *vptr = 0;
2516 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
2517 _v = SWIG_CheckState(res);
2518 if (_v) {
2519 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
2520 _v = SWIG_CheckState(res);
2521 if (_v) {
2522 return _wrap_graph__SWIG_1(nargs, args, self);
2523 }
2524 }
2525 }
2526
2527fail:
2528 Ruby_Format_OverloadedError( argc, 2, "graph",
2529 " Agraph_t graph(char *name)\n"
2530 " Agraph_t * graph(Agraph_t *g, char *name)\n");
2531
2532 return Qnil;
2533}
2534
2535
2536SWIGINTERN VALUE
2537_wrap_node(int argc, VALUE *argv, VALUE self) {
2538 Agraph_t *arg1 = (Agraph_t *) 0 ;
2539 char *arg2 = (char *) 0 ;
2540 void *argp1 = 0 ;
2541 int res1 = 0 ;
2542 int res2 ;
2543 char *buf2 = 0 ;
2544 int alloc2 = 0 ;
2545 Agnode_t *result = 0 ;
2546 VALUE vresult = Qnil;
2547
2548 if ((argc < 2) || (argc > 2)) {
2549 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
2550 }
2551 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
2552 if (!SWIG_IsOK(res1)) {
2553 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","node", 1, argv[0] ));
2554 }
2555 arg1 = reinterpret_cast< Agraph_t * >(argp1);
2556 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
2557 if (!SWIG_IsOK(res2)) {
2558 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","node", 2, argv[1] ));
2559 }
2560 arg2 = reinterpret_cast< char * >(buf2);
2561 result = (Agnode_t *)node(arg1,arg2);
2562 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
2563 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2564 return vresult;
2565fail:
2566 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2567 return Qnil;
2568}
2569
2570
2571SWIGINTERN VALUE
2572_wrap_edge__SWIG_0(int argc, VALUE *argv, VALUE self) {
2573 Agnode_t *arg1 = (Agnode_t *) 0 ;
2574 Agnode_t *arg2 = (Agnode_t *) 0 ;
2575 void *argp1 = 0 ;
2576 int res1 = 0 ;
2577 void *argp2 = 0 ;
2578 int res2 = 0 ;
2579 Agedge_t *result = 0 ;
2580 VALUE vresult = Qnil;
2581
2582 if ((argc < 2) || (argc > 2)) {
2583 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
2584 }
2585 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
2586 if (!SWIG_IsOK(res1)) {
2587 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","edge", 1, argv[0] ));
2588 }
2589 arg1 = reinterpret_cast< Agnode_t * >(argp1);
2590 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agnode_t, 0 | 0 );
2591 if (!SWIG_IsOK(res2)) {
2592 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agnode_t *","edge", 2, argv[1] ));
2593 }
2594 arg2 = reinterpret_cast< Agnode_t * >(argp2);
2595 result = (Agedge_t *)edge(arg1,arg2);
2596 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
2597 return vresult;
2598fail:
2599 return Qnil;
2600}
2601
2602
2603SWIGINTERN VALUE
2604_wrap_edge__SWIG_1(int argc, VALUE *argv, VALUE self) {
2605 Agnode_t *arg1 = (Agnode_t *) 0 ;
2606 char *arg2 = (char *) 0 ;
2607 void *argp1 = 0 ;
2608 int res1 = 0 ;
2609 int res2 ;
2610 char *buf2 = 0 ;
2611 int alloc2 = 0 ;
2612 Agedge_t *result = 0 ;
2613 VALUE vresult = Qnil;
2614
2615 if ((argc < 2) || (argc > 2)) {
2616 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
2617 }
2618 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
2619 if (!SWIG_IsOK(res1)) {
2620 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","edge", 1, argv[0] ));
2621 }
2622 arg1 = reinterpret_cast< Agnode_t * >(argp1);
2623 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
2624 if (!SWIG_IsOK(res2)) {
2625 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","edge", 2, argv[1] ));
2626 }
2627 arg2 = reinterpret_cast< char * >(buf2);
2628 result = (Agedge_t *)edge(arg1,arg2);
2629 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
2630 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2631 return vresult;
2632fail:
2633 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2634 return Qnil;
2635}
2636
2637
2638SWIGINTERN VALUE
2639_wrap_edge__SWIG_2(int argc, VALUE *argv, VALUE self) {
2640 char *arg1 = (char *) 0 ;
2641 Agnode_t *arg2 = (Agnode_t *) 0 ;
2642 int res1 ;
2643 char *buf1 = 0 ;
2644 int alloc1 = 0 ;
2645 void *argp2 = 0 ;
2646 int res2 = 0 ;
2647 Agedge_t *result = 0 ;
2648 VALUE vresult = Qnil;
2649
2650 if ((argc < 2) || (argc > 2)) {
2651 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
2652 }
2653 res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
2654 if (!SWIG_IsOK(res1)) {
2655 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char *","edge", 1, argv[0] ));
2656 }
2657 arg1 = reinterpret_cast< char * >(buf1);
2658 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agnode_t, 0 | 0 );
2659 if (!SWIG_IsOK(res2)) {
2660 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agnode_t *","edge", 2, argv[1] ));
2661 }
2662 arg2 = reinterpret_cast< Agnode_t * >(argp2);
2663 result = (Agedge_t *)edge(arg1,arg2);
2664 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
2665 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2666 return vresult;
2667fail:
2668 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2669 return Qnil;
2670}
2671
2672
2673SWIGINTERN VALUE
2674_wrap_edge__SWIG_3(int argc, VALUE *argv, VALUE self) {
2675 Agraph_t *arg1 = (Agraph_t *) 0 ;
2676 char *arg2 = (char *) 0 ;
2677 char *arg3 = (char *) 0 ;
2678 void *argp1 = 0 ;
2679 int res1 = 0 ;
2680 int res2 ;
2681 char *buf2 = 0 ;
2682 int alloc2 = 0 ;
2683 int res3 ;
2684 char *buf3 = 0 ;
2685 int alloc3 = 0 ;
2686 Agedge_t *result = 0 ;
2687 VALUE vresult = Qnil;
2688
2689 if ((argc < 3) || (argc > 3)) {
2690 rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
2691 }
2692 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
2693 if (!SWIG_IsOK(res1)) {
2694 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","edge", 1, argv[0] ));
2695 }
2696 arg1 = reinterpret_cast< Agraph_t * >(argp1);
2697 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
2698 if (!SWIG_IsOK(res2)) {
2699 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","edge", 2, argv[1] ));
2700 }
2701 arg2 = reinterpret_cast< char * >(buf2);
2702 res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
2703 if (!SWIG_IsOK(res3)) {
2704 SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","edge", 3, argv[2] ));
2705 }
2706 arg3 = reinterpret_cast< char * >(buf3);
2707 result = (Agedge_t *)edge(arg1,arg2,arg3);
2708 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
2709 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2710 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2711 return vresult;
2712fail:
2713 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2714 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2715 return Qnil;
2716}
2717
2718
2719SWIGINTERN VALUE _wrap_edge(int nargs, VALUE *args, VALUE self) {
2720 int argc;
2721 VALUE argv[3];
2722 int ii;
2723
2724 argc = nargs;
2725 if (argc > 3) SWIG_fail;
2726 for (ii = 0; (ii < argc); ++ii) {
2727 argv[ii] = args[ii];
2728 }
2729 if (argc == 2) {
2730 int _v = 0;
2731 void *vptr = 0;
2732 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
2733 _v = SWIG_CheckState(res);
2734 if (_v) {
2735 void *vptr = 0;
2736 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agnode_t, 0);
2737 _v = SWIG_CheckState(res);
2738 if (_v) {
2739 return _wrap_edge__SWIG_0(nargs, args, self);
2740 }
2741 }
2742 }
2743 if (argc == 2) {
2744 int _v = 0;
2745 void *vptr = 0;
2746 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
2747 _v = SWIG_CheckState(res);
2748 if (_v) {
2749 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
2750 _v = SWIG_CheckState(res);
2751 if (_v) {
2752 return _wrap_edge__SWIG_1(nargs, args, self);
2753 }
2754 }
2755 }
2756 if (argc == 2) {
2757 int _v = 0;
2758 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
2759 _v = SWIG_CheckState(res);
2760 if (_v) {
2761 void *vptr = 0;
2762 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agnode_t, 0);
2763 _v = SWIG_CheckState(res);
2764 if (_v) {
2765 return _wrap_edge__SWIG_2(nargs, args, self);
2766 }
2767 }
2768 }
2769 if (argc == 3) {
2770 int _v = 0;
2771 void *vptr = 0;
2772 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
2773 _v = SWIG_CheckState(res);
2774 if (_v) {
2775 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
2776 _v = SWIG_CheckState(res);
2777 if (_v) {
2778 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
2779 _v = SWIG_CheckState(res);
2780 if (_v) {
2781 return _wrap_edge__SWIG_3(nargs, args, self);
2782 }
2783 }
2784 }
2785 }
2786
2787fail:
2788 Ruby_Format_OverloadedError( argc, 3, "edge",
2789 " Agedge_t edge(Agnode_t *t, Agnode_t *h)\n"
2790 " Agedge_t edge(Agnode_t *t, char *hname)\n"
2791 " Agedge_t edge(char *tname, Agnode_t *h)\n"
2792 " Agedge_t * edge(Agraph_t *g, char *tname, char *hname)\n");
2793
2794 return Qnil;
2795}
2796
2797
2798SWIGINTERN VALUE
2799_wrap_setv__SWIG_0(int argc, VALUE *argv, VALUE self) {
2800 Agraph_t *arg1 = (Agraph_t *) 0 ;
2801 char *arg2 = (char *) 0 ;
2802 char *arg3 = (char *) 0 ;
2803 void *argp1 = 0 ;
2804 int res1 = 0 ;
2805 int res2 ;
2806 char *buf2 = 0 ;
2807 int alloc2 = 0 ;
2808 int res3 ;
2809 char *buf3 = 0 ;
2810 int alloc3 = 0 ;
2811 char *result = 0 ;
2812 VALUE vresult = Qnil;
2813
2814 if ((argc < 3) || (argc > 3)) {
2815 rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
2816 }
2817 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
2818 if (!SWIG_IsOK(res1)) {
2819 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","setv", 1, argv[0] ));
2820 }
2821 arg1 = reinterpret_cast< Agraph_t * >(argp1);
2822 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
2823 if (!SWIG_IsOK(res2)) {
2824 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","setv", 2, argv[1] ));
2825 }
2826 arg2 = reinterpret_cast< char * >(buf2);
2827 res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
2828 if (!SWIG_IsOK(res3)) {
2829 SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","setv", 3, argv[2] ));
2830 }
2831 arg3 = reinterpret_cast< char * >(buf3);
2832 result = (char *)setv(arg1,arg2,arg3);
2833 vresult = SWIG_FromCharPtr((const char *)result);
2834 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2835 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2836 return vresult;
2837fail:
2838 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2839 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2840 return Qnil;
2841}
2842
2843
2844SWIGINTERN VALUE
2845_wrap_setv__SWIG_1(int argc, VALUE *argv, VALUE self) {
2846 Agnode_t *arg1 = (Agnode_t *) 0 ;
2847 char *arg2 = (char *) 0 ;
2848 char *arg3 = (char *) 0 ;
2849 void *argp1 = 0 ;
2850 int res1 = 0 ;
2851 int res2 ;
2852 char *buf2 = 0 ;
2853 int alloc2 = 0 ;
2854 int res3 ;
2855 char *buf3 = 0 ;
2856 int alloc3 = 0 ;
2857 char *result = 0 ;
2858 VALUE vresult = Qnil;
2859
2860 if ((argc < 3) || (argc > 3)) {
2861 rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
2862 }
2863 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
2864 if (!SWIG_IsOK(res1)) {
2865 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","setv", 1, argv[0] ));
2866 }
2867 arg1 = reinterpret_cast< Agnode_t * >(argp1);
2868 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
2869 if (!SWIG_IsOK(res2)) {
2870 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","setv", 2, argv[1] ));
2871 }
2872 arg2 = reinterpret_cast< char * >(buf2);
2873 res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
2874 if (!SWIG_IsOK(res3)) {
2875 SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","setv", 3, argv[2] ));
2876 }
2877 arg3 = reinterpret_cast< char * >(buf3);
2878 result = (char *)setv(arg1,arg2,arg3);
2879 vresult = SWIG_FromCharPtr((const char *)result);
2880 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2881 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2882 return vresult;
2883fail:
2884 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2885 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2886 return Qnil;
2887}
2888
2889
2890SWIGINTERN VALUE
2891_wrap_setv__SWIG_2(int argc, VALUE *argv, VALUE self) {
2892 Agedge_t *arg1 = (Agedge_t *) 0 ;
2893 char *arg2 = (char *) 0 ;
2894 char *arg3 = (char *) 0 ;
2895 void *argp1 = 0 ;
2896 int res1 = 0 ;
2897 int res2 ;
2898 char *buf2 = 0 ;
2899 int alloc2 = 0 ;
2900 int res3 ;
2901 char *buf3 = 0 ;
2902 int alloc3 = 0 ;
2903 char *result = 0 ;
2904 VALUE vresult = Qnil;
2905
2906 if ((argc < 3) || (argc > 3)) {
2907 rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
2908 }
2909 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
2910 if (!SWIG_IsOK(res1)) {
2911 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agedge_t *","setv", 1, argv[0] ));
2912 }
2913 arg1 = reinterpret_cast< Agedge_t * >(argp1);
2914 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
2915 if (!SWIG_IsOK(res2)) {
2916 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","setv", 2, argv[1] ));
2917 }
2918 arg2 = reinterpret_cast< char * >(buf2);
2919 res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
2920 if (!SWIG_IsOK(res3)) {
2921 SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","setv", 3, argv[2] ));
2922 }
2923 arg3 = reinterpret_cast< char * >(buf3);
2924 result = (char *)setv(arg1,arg2,arg3);
2925 vresult = SWIG_FromCharPtr((const char *)result);
2926 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2927 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2928 return vresult;
2929fail:
2930 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2931 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2932 return Qnil;
2933}
2934
2935
2936SWIGINTERN VALUE
2937_wrap_setv__SWIG_3(int argc, VALUE *argv, VALUE self) {
2938 Agraph_t *arg1 = (Agraph_t *) 0 ;
2939 Agsym_t *arg2 = (Agsym_t *) 0 ;
2940 char *arg3 = (char *) 0 ;
2941 void *argp1 = 0 ;
2942 int res1 = 0 ;
2943 void *argp2 = 0 ;
2944 int res2 = 0 ;
2945 int res3 ;
2946 char *buf3 = 0 ;
2947 int alloc3 = 0 ;
2948 char *result = 0 ;
2949 VALUE vresult = Qnil;
2950
2951 if ((argc < 3) || (argc > 3)) {
2952 rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
2953 }
2954 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
2955 if (!SWIG_IsOK(res1)) {
2956 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","setv", 1, argv[0] ));
2957 }
2958 arg1 = reinterpret_cast< Agraph_t * >(argp1);
2959 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
2960 if (!SWIG_IsOK(res2)) {
2961 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agsym_t *","setv", 2, argv[1] ));
2962 }
2963 arg2 = reinterpret_cast< Agsym_t * >(argp2);
2964 res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
2965 if (!SWIG_IsOK(res3)) {
2966 SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","setv", 3, argv[2] ));
2967 }
2968 arg3 = reinterpret_cast< char * >(buf3);
2969 result = (char *)setv(arg1,arg2,arg3);
2970 vresult = SWIG_FromCharPtr((const char *)result);
2971 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2972 return vresult;
2973fail:
2974 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2975 return Qnil;
2976}
2977
2978
2979SWIGINTERN VALUE
2980_wrap_setv__SWIG_4(int argc, VALUE *argv, VALUE self) {
2981 Agnode_t *arg1 = (Agnode_t *) 0 ;
2982 Agsym_t *arg2 = (Agsym_t *) 0 ;
2983 char *arg3 = (char *) 0 ;
2984 void *argp1 = 0 ;
2985 int res1 = 0 ;
2986 void *argp2 = 0 ;
2987 int res2 = 0 ;
2988 int res3 ;
2989 char *buf3 = 0 ;
2990 int alloc3 = 0 ;
2991 char *result = 0 ;
2992 VALUE vresult = Qnil;
2993
2994 if ((argc < 3) || (argc > 3)) {
2995 rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
2996 }
2997 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
2998 if (!SWIG_IsOK(res1)) {
2999 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","setv", 1, argv[0] ));
3000 }
3001 arg1 = reinterpret_cast< Agnode_t * >(argp1);
3002 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
3003 if (!SWIG_IsOK(res2)) {
3004 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agsym_t *","setv", 2, argv[1] ));
3005 }
3006 arg2 = reinterpret_cast< Agsym_t * >(argp2);
3007 res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
3008 if (!SWIG_IsOK(res3)) {
3009 SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","setv", 3, argv[2] ));
3010 }
3011 arg3 = reinterpret_cast< char * >(buf3);
3012 result = (char *)setv(arg1,arg2,arg3);
3013 vresult = SWIG_FromCharPtr((const char *)result);
3014 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
3015 return vresult;
3016fail:
3017 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
3018 return Qnil;
3019}
3020
3021
3022SWIGINTERN VALUE
3023_wrap_setv__SWIG_5(int argc, VALUE *argv, VALUE self) {
3024 Agedge_t *arg1 = (Agedge_t *) 0 ;
3025 Agsym_t *arg2 = (Agsym_t *) 0 ;
3026 char *arg3 = (char *) 0 ;
3027 void *argp1 = 0 ;
3028 int res1 = 0 ;
3029 void *argp2 = 0 ;
3030 int res2 = 0 ;
3031 int res3 ;
3032 char *buf3 = 0 ;
3033 int alloc3 = 0 ;
3034 char *result = 0 ;
3035 VALUE vresult = Qnil;
3036
3037 if ((argc < 3) || (argc > 3)) {
3038 rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
3039 }
3040 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
3041 if (!SWIG_IsOK(res1)) {
3042 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agedge_t *","setv", 1, argv[0] ));
3043 }
3044 arg1 = reinterpret_cast< Agedge_t * >(argp1);
3045 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
3046 if (!SWIG_IsOK(res2)) {
3047 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agsym_t *","setv", 2, argv[1] ));
3048 }
3049 arg2 = reinterpret_cast< Agsym_t * >(argp2);
3050 res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
3051 if (!SWIG_IsOK(res3)) {
3052 SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","setv", 3, argv[2] ));
3053 }
3054 arg3 = reinterpret_cast< char * >(buf3);
3055 result = (char *)setv(arg1,arg2,arg3);
3056 vresult = SWIG_FromCharPtr((const char *)result);
3057 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
3058 return vresult;
3059fail:
3060 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
3061 return Qnil;
3062}
3063
3064
3065SWIGINTERN VALUE _wrap_setv(int nargs, VALUE *args, VALUE self) {
3066 int argc;
3067 VALUE argv[3];
3068 int ii;
3069
3070 argc = nargs;
3071 if (argc > 3) SWIG_fail;
3072 for (ii = 0; (ii < argc); ++ii) {
3073 argv[ii] = args[ii];
3074 }
3075 if (argc == 3) {
3076 int _v = 0;
3077 void *vptr = 0;
3078 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
3079 _v = SWIG_CheckState(res);
3080 if (_v) {
3081 void *vptr = 0;
3082 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
3083 _v = SWIG_CheckState(res);
3084 if (_v) {
3085 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
3086 _v = SWIG_CheckState(res);
3087 if (_v) {
3088 return _wrap_setv__SWIG_3(nargs, args, self);
3089 }
3090 }
3091 }
3092 }
3093 if (argc == 3) {
3094 int _v = 0;
3095 void *vptr = 0;
3096 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
3097 _v = SWIG_CheckState(res);
3098 if (_v) {
3099 void *vptr = 0;
3100 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
3101 _v = SWIG_CheckState(res);
3102 if (_v) {
3103 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
3104 _v = SWIG_CheckState(res);
3105 if (_v) {
3106 return _wrap_setv__SWIG_4(nargs, args, self);
3107 }
3108 }
3109 }
3110 }
3111 if (argc == 3) {
3112 int _v = 0;
3113 void *vptr = 0;
3114 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
3115 _v = SWIG_CheckState(res);
3116 if (_v) {
3117 void *vptr = 0;
3118 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
3119 _v = SWIG_CheckState(res);
3120 if (_v) {
3121 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
3122 _v = SWIG_CheckState(res);
3123 if (_v) {
3124 return _wrap_setv__SWIG_5(nargs, args, self);
3125 }
3126 }
3127 }
3128 }
3129 if (argc == 3) {
3130 int _v = 0;
3131 void *vptr = 0;
3132 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
3133 _v = SWIG_CheckState(res);
3134 if (_v) {
3135 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
3136 _v = SWIG_CheckState(res);
3137 if (_v) {
3138 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
3139 _v = SWIG_CheckState(res);
3140 if (_v) {
3141 return _wrap_setv__SWIG_0(nargs, args, self);
3142 }
3143 }
3144 }
3145 }
3146 if (argc == 3) {
3147 int _v = 0;
3148 void *vptr = 0;
3149 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
3150 _v = SWIG_CheckState(res);
3151 if (_v) {
3152 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
3153 _v = SWIG_CheckState(res);
3154 if (_v) {
3155 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
3156 _v = SWIG_CheckState(res);
3157 if (_v) {
3158 return _wrap_setv__SWIG_1(nargs, args, self);
3159 }
3160 }
3161 }
3162 }
3163 if (argc == 3) {
3164 int _v = 0;
3165 void *vptr = 0;
3166 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
3167 _v = SWIG_CheckState(res);
3168 if (_v) {
3169 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
3170 _v = SWIG_CheckState(res);
3171 if (_v) {
3172 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
3173 _v = SWIG_CheckState(res);
3174 if (_v) {
3175 return _wrap_setv__SWIG_2(nargs, args, self);
3176 }
3177 }
3178 }
3179 }
3180
3181fail:
3182 Ruby_Format_OverloadedError( argc, 3, "setv",
3183 " char setv(Agraph_t *g, char *attr, char *val)\n"
3184 " char setv(Agnode_t *n, char *attr, char *val)\n"
3185 " char setv(Agedge_t *e, char *attr, char *val)\n"
3186 " char setv(Agraph_t *g, Agsym_t *a, char *val)\n"
3187 " char setv(Agnode_t *n, Agsym_t *a, char *val)\n"
3188 " char * setv(Agedge_t *e, Agsym_t *a, char *val)\n");
3189
3190 return Qnil;
3191}
3192
3193
3194SWIGINTERN VALUE
3195_wrap_getv__SWIG_0(int argc, VALUE *argv, VALUE self) {
3196 Agraph_t *arg1 = (Agraph_t *) 0 ;
3197 char *arg2 = (char *) 0 ;
3198 void *argp1 = 0 ;
3199 int res1 = 0 ;
3200 int res2 ;
3201 char *buf2 = 0 ;
3202 int alloc2 = 0 ;
3203 char *result = 0 ;
3204 VALUE vresult = Qnil;
3205
3206 if ((argc < 2) || (argc > 2)) {
3207 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
3208 }
3209 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3210 if (!SWIG_IsOK(res1)) {
3211 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","getv", 1, argv[0] ));
3212 }
3213 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3214 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
3215 if (!SWIG_IsOK(res2)) {
3216 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","getv", 2, argv[1] ));
3217 }
3218 arg2 = reinterpret_cast< char * >(buf2);
3219 result = (char *)getv(arg1,arg2);
3220 vresult = SWIG_FromCharPtr((const char *)result);
3221 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3222 return vresult;
3223fail:
3224 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3225 return Qnil;
3226}
3227
3228
3229SWIGINTERN VALUE
3230_wrap_getv__SWIG_1(int argc, VALUE *argv, VALUE self) {
3231 Agnode_t *arg1 = (Agnode_t *) 0 ;
3232 char *arg2 = (char *) 0 ;
3233 void *argp1 = 0 ;
3234 int res1 = 0 ;
3235 int res2 ;
3236 char *buf2 = 0 ;
3237 int alloc2 = 0 ;
3238 char *result = 0 ;
3239 VALUE vresult = Qnil;
3240
3241 if ((argc < 2) || (argc > 2)) {
3242 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
3243 }
3244 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
3245 if (!SWIG_IsOK(res1)) {
3246 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","getv", 1, argv[0] ));
3247 }
3248 arg1 = reinterpret_cast< Agnode_t * >(argp1);
3249 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
3250 if (!SWIG_IsOK(res2)) {
3251 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","getv", 2, argv[1] ));
3252 }
3253 arg2 = reinterpret_cast< char * >(buf2);
3254 result = (char *)getv(arg1,arg2);
3255 vresult = SWIG_FromCharPtr((const char *)result);
3256 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3257 return vresult;
3258fail:
3259 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3260 return Qnil;
3261}
3262
3263
3264SWIGINTERN VALUE
3265_wrap_getv__SWIG_2(int argc, VALUE *argv, VALUE self) {
3266 Agedge_t *arg1 = (Agedge_t *) 0 ;
3267 char *arg2 = (char *) 0 ;
3268 void *argp1 = 0 ;
3269 int res1 = 0 ;
3270 int res2 ;
3271 char *buf2 = 0 ;
3272 int alloc2 = 0 ;
3273 char *result = 0 ;
3274 VALUE vresult = Qnil;
3275
3276 if ((argc < 2) || (argc > 2)) {
3277 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
3278 }
3279 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
3280 if (!SWIG_IsOK(res1)) {
3281 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agedge_t *","getv", 1, argv[0] ));
3282 }
3283 arg1 = reinterpret_cast< Agedge_t * >(argp1);
3284 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
3285 if (!SWIG_IsOK(res2)) {
3286 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","getv", 2, argv[1] ));
3287 }
3288 arg2 = reinterpret_cast< char * >(buf2);
3289 result = (char *)getv(arg1,arg2);
3290 vresult = SWIG_FromCharPtr((const char *)result);
3291 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3292 return vresult;
3293fail:
3294 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3295 return Qnil;
3296}
3297
3298
3299SWIGINTERN VALUE
3300_wrap_getv__SWIG_3(int argc, VALUE *argv, VALUE self) {
3301 Agraph_t *arg1 = (Agraph_t *) 0 ;
3302 Agsym_t *arg2 = (Agsym_t *) 0 ;
3303 void *argp1 = 0 ;
3304 int res1 = 0 ;
3305 void *argp2 = 0 ;
3306 int res2 = 0 ;
3307 char *result = 0 ;
3308 VALUE vresult = Qnil;
3309
3310 if ((argc < 2) || (argc > 2)) {
3311 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
3312 }
3313 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3314 if (!SWIG_IsOK(res1)) {
3315 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","getv", 1, argv[0] ));
3316 }
3317 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3318 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
3319 if (!SWIG_IsOK(res2)) {
3320 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agsym_t *","getv", 2, argv[1] ));
3321 }
3322 arg2 = reinterpret_cast< Agsym_t * >(argp2);
3323 result = (char *)getv(arg1,arg2);
3324 vresult = SWIG_FromCharPtr((const char *)result);
3325 return vresult;
3326fail:
3327 return Qnil;
3328}
3329
3330
3331SWIGINTERN VALUE
3332_wrap_getv__SWIG_4(int argc, VALUE *argv, VALUE self) {
3333 Agnode_t *arg1 = (Agnode_t *) 0 ;
3334 Agsym_t *arg2 = (Agsym_t *) 0 ;
3335 void *argp1 = 0 ;
3336 int res1 = 0 ;
3337 void *argp2 = 0 ;
3338 int res2 = 0 ;
3339 char *result = 0 ;
3340 VALUE vresult = Qnil;
3341
3342 if ((argc < 2) || (argc > 2)) {
3343 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
3344 }
3345 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
3346 if (!SWIG_IsOK(res1)) {
3347 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","getv", 1, argv[0] ));
3348 }
3349 arg1 = reinterpret_cast< Agnode_t * >(argp1);
3350 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
3351 if (!SWIG_IsOK(res2)) {
3352 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agsym_t *","getv", 2, argv[1] ));
3353 }
3354 arg2 = reinterpret_cast< Agsym_t * >(argp2);
3355 result = (char *)getv(arg1,arg2);
3356 vresult = SWIG_FromCharPtr((const char *)result);
3357 return vresult;
3358fail:
3359 return Qnil;
3360}
3361
3362
3363SWIGINTERN VALUE
3364_wrap_getv__SWIG_5(int argc, VALUE *argv, VALUE self) {
3365 Agedge_t *arg1 = (Agedge_t *) 0 ;
3366 Agsym_t *arg2 = (Agsym_t *) 0 ;
3367 void *argp1 = 0 ;
3368 int res1 = 0 ;
3369 void *argp2 = 0 ;
3370 int res2 = 0 ;
3371 char *result = 0 ;
3372 VALUE vresult = Qnil;
3373
3374 if ((argc < 2) || (argc > 2)) {
3375 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
3376 }
3377 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
3378 if (!SWIG_IsOK(res1)) {
3379 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agedge_t *","getv", 1, argv[0] ));
3380 }
3381 arg1 = reinterpret_cast< Agedge_t * >(argp1);
3382 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
3383 if (!SWIG_IsOK(res2)) {
3384 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agsym_t *","getv", 2, argv[1] ));
3385 }
3386 arg2 = reinterpret_cast< Agsym_t * >(argp2);
3387 result = (char *)getv(arg1,arg2);
3388 vresult = SWIG_FromCharPtr((const char *)result);
3389 return vresult;
3390fail:
3391 return Qnil;
3392}
3393
3394
3395SWIGINTERN VALUE _wrap_getv(int nargs, VALUE *args, VALUE self) {
3396 int argc;
3397 VALUE argv[2];
3398 int ii;
3399
3400 argc = nargs;
3401 if (argc > 2) SWIG_fail;
3402 for (ii = 0; (ii < argc); ++ii) {
3403 argv[ii] = args[ii];
3404 }
3405 if (argc == 2) {
3406 int _v = 0;
3407 void *vptr = 0;
3408 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
3409 _v = SWIG_CheckState(res);
3410 if (_v) {
3411 void *vptr = 0;
3412 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
3413 _v = SWIG_CheckState(res);
3414 if (_v) {
3415 return _wrap_getv__SWIG_3(nargs, args, self);
3416 }
3417 }
3418 }
3419 if (argc == 2) {
3420 int _v = 0;
3421 void *vptr = 0;
3422 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
3423 _v = SWIG_CheckState(res);
3424 if (_v) {
3425 void *vptr = 0;
3426 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
3427 _v = SWIG_CheckState(res);
3428 if (_v) {
3429 return _wrap_getv__SWIG_4(nargs, args, self);
3430 }
3431 }
3432 }
3433 if (argc == 2) {
3434 int _v = 0;
3435 void *vptr = 0;
3436 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
3437 _v = SWIG_CheckState(res);
3438 if (_v) {
3439 void *vptr = 0;
3440 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
3441 _v = SWIG_CheckState(res);
3442 if (_v) {
3443 return _wrap_getv__SWIG_5(nargs, args, self);
3444 }
3445 }
3446 }
3447 if (argc == 2) {
3448 int _v = 0;
3449 void *vptr = 0;
3450 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
3451 _v = SWIG_CheckState(res);
3452 if (_v) {
3453 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
3454 _v = SWIG_CheckState(res);
3455 if (_v) {
3456 return _wrap_getv__SWIG_0(nargs, args, self);
3457 }
3458 }
3459 }
3460 if (argc == 2) {
3461 int _v = 0;
3462 void *vptr = 0;
3463 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
3464 _v = SWIG_CheckState(res);
3465 if (_v) {
3466 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
3467 _v = SWIG_CheckState(res);
3468 if (_v) {
3469 return _wrap_getv__SWIG_1(nargs, args, self);
3470 }
3471 }
3472 }
3473 if (argc == 2) {
3474 int _v = 0;
3475 void *vptr = 0;
3476 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
3477 _v = SWIG_CheckState(res);
3478 if (_v) {
3479 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
3480 _v = SWIG_CheckState(res);
3481 if (_v) {
3482 return _wrap_getv__SWIG_2(nargs, args, self);
3483 }
3484 }
3485 }
3486
3487fail:
3488 Ruby_Format_OverloadedError( argc, 2, "getv",
3489 " char getv(Agraph_t *g, char *attr)\n"
3490 " char getv(Agnode_t *n, char *attr)\n"
3491 " char getv(Agedge_t *e, char *attr)\n"
3492 " char getv(Agraph_t *g, Agsym_t *a)\n"
3493 " char getv(Agnode_t *n, Agsym_t *a)\n"
3494 " char * getv(Agedge_t *e, Agsym_t *a)\n");
3495
3496 return Qnil;
3497}
3498
3499
3500SWIGINTERN VALUE
3501_wrap_nameof__SWIG_0(int argc, VALUE *argv, VALUE self) {
3502 Agraph_t *arg1 = (Agraph_t *) 0 ;
3503 void *argp1 = 0 ;
3504 int res1 = 0 ;
3505 char *result = 0 ;
3506 VALUE vresult = Qnil;
3507
3508 if ((argc < 1) || (argc > 1)) {
3509 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
3510 }
3511 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3512 if (!SWIG_IsOK(res1)) {
3513 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","nameof", 1, argv[0] ));
3514 }
3515 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3516 result = (char *)nameof(arg1);
3517 vresult = SWIG_FromCharPtr((const char *)result);
3518 return vresult;
3519fail:
3520 return Qnil;
3521}
3522
3523
3524SWIGINTERN VALUE
3525_wrap_nameof__SWIG_1(int argc, VALUE *argv, VALUE self) {
3526 Agnode_t *arg1 = (Agnode_t *) 0 ;
3527 void *argp1 = 0 ;
3528 int res1 = 0 ;
3529 char *result = 0 ;
3530 VALUE vresult = Qnil;
3531
3532 if ((argc < 1) || (argc > 1)) {
3533 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
3534 }
3535 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
3536 if (!SWIG_IsOK(res1)) {
3537 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","nameof", 1, argv[0] ));
3538 }
3539 arg1 = reinterpret_cast< Agnode_t * >(argp1);
3540 result = (char *)nameof(arg1);
3541 vresult = SWIG_FromCharPtr((const char *)result);
3542 return vresult;
3543fail:
3544 return Qnil;
3545}
3546
3547
3548SWIGINTERN VALUE
3549_wrap_nameof__SWIG_2(int argc, VALUE *argv, VALUE self) {
3550 Agsym_t *arg1 = (Agsym_t *) 0 ;
3551 void *argp1 = 0 ;
3552 int res1 = 0 ;
3553 char *result = 0 ;
3554 VALUE vresult = Qnil;
3555
3556 if ((argc < 1) || (argc > 1)) {
3557 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
3558 }
3559 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agsym_t, 0 | 0 );
3560 if (!SWIG_IsOK(res1)) {
3561 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agsym_t *","nameof", 1, argv[0] ));
3562 }
3563 arg1 = reinterpret_cast< Agsym_t * >(argp1);
3564 result = (char *)nameof(arg1);
3565 vresult = SWIG_FromCharPtr((const char *)result);
3566 return vresult;
3567fail:
3568 return Qnil;
3569}
3570
3571
3572SWIGINTERN VALUE _wrap_nameof(int nargs, VALUE *args, VALUE self) {
3573 int argc;
3574 VALUE argv[1];
3575 int ii;
3576
3577 argc = nargs;
3578 if (argc > 1) SWIG_fail;
3579 for (ii = 0; (ii < argc); ++ii) {
3580 argv[ii] = args[ii];
3581 }
3582 if (argc == 1) {
3583 int _v = 0;
3584 void *vptr = 0;
3585 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
3586 _v = SWIG_CheckState(res);
3587 if (_v) {
3588 return _wrap_nameof__SWIG_0(nargs, args, self);
3589 }
3590 }
3591 if (argc == 1) {
3592 int _v = 0;
3593 void *vptr = 0;
3594 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
3595 _v = SWIG_CheckState(res);
3596 if (_v) {
3597 return _wrap_nameof__SWIG_1(nargs, args, self);
3598 }
3599 }
3600 if (argc == 1) {
3601 int _v = 0;
3602 void *vptr = 0;
3603 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agsym_t, 0);
3604 _v = SWIG_CheckState(res);
3605 if (_v) {
3606 return _wrap_nameof__SWIG_2(nargs, args, self);
3607 }
3608 }
3609
3610fail:
3611 Ruby_Format_OverloadedError( argc, 1, "nameof",
3612 " char nameof(Agraph_t *g)\n"
3613 " char nameof(Agnode_t *n)\n"
3614 " char * nameof(Agsym_t *a)\n");
3615
3616 return Qnil;
3617}
3618
3619
3620SWIGINTERN VALUE
3621_wrap_findsubg(int argc, VALUE *argv, VALUE self) {
3622 Agraph_t *arg1 = (Agraph_t *) 0 ;
3623 char *arg2 = (char *) 0 ;
3624 void *argp1 = 0 ;
3625 int res1 = 0 ;
3626 int res2 ;
3627 char *buf2 = 0 ;
3628 int alloc2 = 0 ;
3629 Agraph_t *result = 0 ;
3630 VALUE vresult = Qnil;
3631
3632 if ((argc < 2) || (argc > 2)) {
3633 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
3634 }
3635 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3636 if (!SWIG_IsOK(res1)) {
3637 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","findsubg", 1, argv[0] ));
3638 }
3639 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3640 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
3641 if (!SWIG_IsOK(res2)) {
3642 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","findsubg", 2, argv[1] ));
3643 }
3644 arg2 = reinterpret_cast< char * >(buf2);
3645 result = (Agraph_t *)findsubg(arg1,arg2);
3646 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
3647 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3648 return vresult;
3649fail:
3650 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3651 return Qnil;
3652}
3653
3654
3655SWIGINTERN VALUE
3656_wrap_findnode(int argc, VALUE *argv, VALUE self) {
3657 Agraph_t *arg1 = (Agraph_t *) 0 ;
3658 char *arg2 = (char *) 0 ;
3659 void *argp1 = 0 ;
3660 int res1 = 0 ;
3661 int res2 ;
3662 char *buf2 = 0 ;
3663 int alloc2 = 0 ;
3664 Agnode_t *result = 0 ;
3665 VALUE vresult = Qnil;
3666
3667 if ((argc < 2) || (argc > 2)) {
3668 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
3669 }
3670 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3671 if (!SWIG_IsOK(res1)) {
3672 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","findnode", 1, argv[0] ));
3673 }
3674 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3675 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
3676 if (!SWIG_IsOK(res2)) {
3677 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","findnode", 2, argv[1] ));
3678 }
3679 arg2 = reinterpret_cast< char * >(buf2);
3680 result = (Agnode_t *)findnode(arg1,arg2);
3681 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
3682 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3683 return vresult;
3684fail:
3685 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3686 return Qnil;
3687}
3688
3689
3690SWIGINTERN VALUE
3691_wrap_findedge(int argc, VALUE *argv, VALUE self) {
3692 Agnode_t *arg1 = (Agnode_t *) 0 ;
3693 Agnode_t *arg2 = (Agnode_t *) 0 ;
3694 void *argp1 = 0 ;
3695 int res1 = 0 ;
3696 void *argp2 = 0 ;
3697 int res2 = 0 ;
3698 Agedge_t *result = 0 ;
3699 VALUE vresult = Qnil;
3700
3701 if ((argc < 2) || (argc > 2)) {
3702 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
3703 }
3704 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
3705 if (!SWIG_IsOK(res1)) {
3706 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","findedge", 1, argv[0] ));
3707 }
3708 arg1 = reinterpret_cast< Agnode_t * >(argp1);
3709 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agnode_t, 0 | 0 );
3710 if (!SWIG_IsOK(res2)) {
3711 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agnode_t *","findedge", 2, argv[1] ));
3712 }
3713 arg2 = reinterpret_cast< Agnode_t * >(argp2);
3714 result = (Agedge_t *)findedge(arg1,arg2);
3715 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
3716 return vresult;
3717fail:
3718 return Qnil;
3719}
3720
3721
3722SWIGINTERN VALUE
3723_wrap_findattr__SWIG_0(int argc, VALUE *argv, VALUE self) {
3724 Agraph_t *arg1 = (Agraph_t *) 0 ;
3725 char *arg2 = (char *) 0 ;
3726 void *argp1 = 0 ;
3727 int res1 = 0 ;
3728 int res2 ;
3729 char *buf2 = 0 ;
3730 int alloc2 = 0 ;
3731 Agsym_t *result = 0 ;
3732 VALUE vresult = Qnil;
3733
3734 if ((argc < 2) || (argc > 2)) {
3735 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
3736 }
3737 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3738 if (!SWIG_IsOK(res1)) {
3739 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","findattr", 1, argv[0] ));
3740 }
3741 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3742 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
3743 if (!SWIG_IsOK(res2)) {
3744 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","findattr", 2, argv[1] ));
3745 }
3746 arg2 = reinterpret_cast< char * >(buf2);
3747 result = (Agsym_t *)findattr(arg1,arg2);
3748 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t, 0 | 0 );
3749 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3750 return vresult;
3751fail:
3752 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3753 return Qnil;
3754}
3755
3756
3757SWIGINTERN VALUE
3758_wrap_findattr__SWIG_1(int argc, VALUE *argv, VALUE self) {
3759 Agnode_t *arg1 = (Agnode_t *) 0 ;
3760 char *arg2 = (char *) 0 ;
3761 void *argp1 = 0 ;
3762 int res1 = 0 ;
3763 int res2 ;
3764 char *buf2 = 0 ;
3765 int alloc2 = 0 ;
3766 Agsym_t *result = 0 ;
3767 VALUE vresult = Qnil;
3768
3769 if ((argc < 2) || (argc > 2)) {
3770 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
3771 }
3772 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
3773 if (!SWIG_IsOK(res1)) {
3774 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","findattr", 1, argv[0] ));
3775 }
3776 arg1 = reinterpret_cast< Agnode_t * >(argp1);
3777 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
3778 if (!SWIG_IsOK(res2)) {
3779 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","findattr", 2, argv[1] ));
3780 }
3781 arg2 = reinterpret_cast< char * >(buf2);
3782 result = (Agsym_t *)findattr(arg1,arg2);
3783 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t, 0 | 0 );
3784 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3785 return vresult;
3786fail:
3787 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3788 return Qnil;
3789}
3790
3791
3792SWIGINTERN VALUE
3793_wrap_findattr__SWIG_2(int argc, VALUE *argv, VALUE self) {
3794 Agedge_t *arg1 = (Agedge_t *) 0 ;
3795 char *arg2 = (char *) 0 ;
3796 void *argp1 = 0 ;
3797 int res1 = 0 ;
3798 int res2 ;
3799 char *buf2 = 0 ;
3800 int alloc2 = 0 ;
3801 Agsym_t *result = 0 ;
3802 VALUE vresult = Qnil;
3803
3804 if ((argc < 2) || (argc > 2)) {
3805 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
3806 }
3807 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
3808 if (!SWIG_IsOK(res1)) {
3809 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agedge_t *","findattr", 1, argv[0] ));
3810 }
3811 arg1 = reinterpret_cast< Agedge_t * >(argp1);
3812 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
3813 if (!SWIG_IsOK(res2)) {
3814 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","findattr", 2, argv[1] ));
3815 }
3816 arg2 = reinterpret_cast< char * >(buf2);
3817 result = (Agsym_t *)findattr(arg1,arg2);
3818 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t, 0 | 0 );
3819 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3820 return vresult;
3821fail:
3822 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3823 return Qnil;
3824}
3825
3826
3827SWIGINTERN VALUE _wrap_findattr(int nargs, VALUE *args, VALUE self) {
3828 int argc;
3829 VALUE argv[2];
3830 int ii;
3831
3832 argc = nargs;
3833 if (argc > 2) SWIG_fail;
3834 for (ii = 0; (ii < argc); ++ii) {
3835 argv[ii] = args[ii];
3836 }
3837 if (argc == 2) {
3838 int _v = 0;
3839 void *vptr = 0;
3840 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
3841 _v = SWIG_CheckState(res);
3842 if (_v) {
3843 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
3844 _v = SWIG_CheckState(res);
3845 if (_v) {
3846 return _wrap_findattr__SWIG_0(nargs, args, self);
3847 }
3848 }
3849 }
3850 if (argc == 2) {
3851 int _v = 0;
3852 void *vptr = 0;
3853 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
3854 _v = SWIG_CheckState(res);
3855 if (_v) {
3856 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
3857 _v = SWIG_CheckState(res);
3858 if (_v) {
3859 return _wrap_findattr__SWIG_1(nargs, args, self);
3860 }
3861 }
3862 }
3863 if (argc == 2) {
3864 int _v = 0;
3865 void *vptr = 0;
3866 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
3867 _v = SWIG_CheckState(res);
3868 if (_v) {
3869 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
3870 _v = SWIG_CheckState(res);
3871 if (_v) {
3872 return _wrap_findattr__SWIG_2(nargs, args, self);
3873 }
3874 }
3875 }
3876
3877fail:
3878 Ruby_Format_OverloadedError( argc, 2, "findattr",
3879 " Agsym_t findattr(Agraph_t *g, char *name)\n"
3880 " Agsym_t findattr(Agnode_t *n, char *name)\n"
3881 " Agsym_t * findattr(Agedge_t *e, char *name)\n");
3882
3883 return Qnil;
3884}
3885
3886
3887SWIGINTERN VALUE
3888_wrap_headof(int argc, VALUE *argv, VALUE self) {
3889 Agedge_t *arg1 = (Agedge_t *) 0 ;
3890 void *argp1 = 0 ;
3891 int res1 = 0 ;
3892 Agnode_t *result = 0 ;
3893 VALUE vresult = Qnil;
3894
3895 if ((argc < 1) || (argc > 1)) {
3896 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
3897 }
3898 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
3899 if (!SWIG_IsOK(res1)) {
3900 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agedge_t *","headof", 1, argv[0] ));
3901 }
3902 arg1 = reinterpret_cast< Agedge_t * >(argp1);
3903 result = (Agnode_t *)headof(arg1);
3904 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
3905 return vresult;
3906fail:
3907 return Qnil;
3908}
3909
3910
3911SWIGINTERN VALUE
3912_wrap_tailof(int argc, VALUE *argv, VALUE self) {
3913 Agedge_t *arg1 = (Agedge_t *) 0 ;
3914 void *argp1 = 0 ;
3915 int res1 = 0 ;
3916 Agnode_t *result = 0 ;
3917 VALUE vresult = Qnil;
3918
3919 if ((argc < 1) || (argc > 1)) {
3920 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
3921 }
3922 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
3923 if (!SWIG_IsOK(res1)) {
3924 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agedge_t *","tailof", 1, argv[0] ));
3925 }
3926 arg1 = reinterpret_cast< Agedge_t * >(argp1);
3927 result = (Agnode_t *)tailof(arg1);
3928 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
3929 return vresult;
3930fail:
3931 return Qnil;
3932}
3933
3934
3935SWIGINTERN VALUE
3936_wrap_graphof__SWIG_0(int argc, VALUE *argv, VALUE self) {
3937 Agraph_t *arg1 = (Agraph_t *) 0 ;
3938 void *argp1 = 0 ;
3939 int res1 = 0 ;
3940 Agraph_t *result = 0 ;
3941 VALUE vresult = Qnil;
3942
3943 if ((argc < 1) || (argc > 1)) {
3944 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
3945 }
3946 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3947 if (!SWIG_IsOK(res1)) {
3948 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","graphof", 1, argv[0] ));
3949 }
3950 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3951 result = (Agraph_t *)graphof(arg1);
3952 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
3953 return vresult;
3954fail:
3955 return Qnil;
3956}
3957
3958
3959SWIGINTERN VALUE
3960_wrap_graphof__SWIG_1(int argc, VALUE *argv, VALUE self) {
3961 Agedge_t *arg1 = (Agedge_t *) 0 ;
3962 void *argp1 = 0 ;
3963 int res1 = 0 ;
3964 Agraph_t *result = 0 ;
3965 VALUE vresult = Qnil;
3966
3967 if ((argc < 1) || (argc > 1)) {
3968 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
3969 }
3970 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
3971 if (!SWIG_IsOK(res1)) {
3972 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agedge_t *","graphof", 1, argv[0] ));
3973 }
3974 arg1 = reinterpret_cast< Agedge_t * >(argp1);
3975 result = (Agraph_t *)graphof(arg1);
3976 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
3977 return vresult;
3978fail:
3979 return Qnil;
3980}
3981
3982
3983SWIGINTERN VALUE
3984_wrap_graphof__SWIG_2(int argc, VALUE *argv, VALUE self) {
3985 Agnode_t *arg1 = (Agnode_t *) 0 ;
3986 void *argp1 = 0 ;
3987 int res1 = 0 ;
3988 Agraph_t *result = 0 ;
3989 VALUE vresult = Qnil;
3990
3991 if ((argc < 1) || (argc > 1)) {
3992 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
3993 }
3994 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
3995 if (!SWIG_IsOK(res1)) {
3996 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","graphof", 1, argv[0] ));
3997 }
3998 arg1 = reinterpret_cast< Agnode_t * >(argp1);
3999 result = (Agraph_t *)graphof(arg1);
4000 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
4001 return vresult;
4002fail:
4003 return Qnil;
4004}
4005
4006
4007SWIGINTERN VALUE _wrap_graphof(int nargs, VALUE *args, VALUE self) {
4008 int argc;
4009 VALUE argv[1];
4010 int ii;
4011
4012 argc = nargs;
4013 if (argc > 1) SWIG_fail;
4014 for (ii = 0; (ii < argc); ++ii) {
4015 argv[ii] = args[ii];
4016 }
4017 if (argc == 1) {
4018 int _v = 0;
4019 void *vptr = 0;
4020 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4021 _v = SWIG_CheckState(res);
4022 if (_v) {
4023 return _wrap_graphof__SWIG_0(nargs, args, self);
4024 }
4025 }
4026 if (argc == 1) {
4027 int _v = 0;
4028 void *vptr = 0;
4029 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
4030 _v = SWIG_CheckState(res);
4031 if (_v) {
4032 return _wrap_graphof__SWIG_1(nargs, args, self);
4033 }
4034 }
4035 if (argc == 1) {
4036 int _v = 0;
4037 void *vptr = 0;
4038 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
4039 _v = SWIG_CheckState(res);
4040 if (_v) {
4041 return _wrap_graphof__SWIG_2(nargs, args, self);
4042 }
4043 }
4044
4045fail:
4046 Ruby_Format_OverloadedError( argc, 1, "graphof",
4047 " Agraph_t graphof(Agraph_t *g)\n"
4048 " Agraph_t graphof(Agedge_t *e)\n"
4049 " Agraph_t * graphof(Agnode_t *n)\n");
4050
4051 return Qnil;
4052}
4053
4054
4055SWIGINTERN VALUE
4056_wrap_rootof(int argc, VALUE *argv, VALUE self) {
4057 Agraph_t *arg1 = (Agraph_t *) 0 ;
4058 void *argp1 = 0 ;
4059 int res1 = 0 ;
4060 Agraph_t *result = 0 ;
4061 VALUE vresult = Qnil;
4062
4063 if ((argc < 1) || (argc > 1)) {
4064 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4065 }
4066 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4067 if (!SWIG_IsOK(res1)) {
4068 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","rootof", 1, argv[0] ));
4069 }
4070 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4071 result = (Agraph_t *)rootof(arg1);
4072 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
4073 return vresult;
4074fail:
4075 return Qnil;
4076}
4077
4078
4079SWIGINTERN VALUE
4080_wrap_protonode(int argc, VALUE *argv, VALUE self) {
4081 Agraph_t *arg1 = (Agraph_t *) 0 ;
4082 void *argp1 = 0 ;
4083 int res1 = 0 ;
4084 Agnode_t *result = 0 ;
4085 VALUE vresult = Qnil;
4086
4087 if ((argc < 1) || (argc > 1)) {
4088 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4089 }
4090 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4091 if (!SWIG_IsOK(res1)) {
4092 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","protonode", 1, argv[0] ));
4093 }
4094 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4095 result = (Agnode_t *)protonode(arg1);
4096 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
4097 return vresult;
4098fail:
4099 return Qnil;
4100}
4101
4102
4103SWIGINTERN VALUE
4104_wrap_protoedge(int argc, VALUE *argv, VALUE self) {
4105 Agraph_t *arg1 = (Agraph_t *) 0 ;
4106 void *argp1 = 0 ;
4107 int res1 = 0 ;
4108 Agedge_t *result = 0 ;
4109 VALUE vresult = Qnil;
4110
4111 if ((argc < 1) || (argc > 1)) {
4112 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4113 }
4114 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4115 if (!SWIG_IsOK(res1)) {
4116 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","protoedge", 1, argv[0] ));
4117 }
4118 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4119 result = (Agedge_t *)protoedge(arg1);
4120 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
4121 return vresult;
4122fail:
4123 return Qnil;
4124}
4125
4126
4127SWIGINTERN VALUE
4128_wrap_ok__SWIG_0(int argc, VALUE *argv, VALUE self) {
4129 Agraph_t *arg1 = (Agraph_t *) 0 ;
4130 void *argp1 = 0 ;
4131 int res1 = 0 ;
4132 bool result;
4133 VALUE vresult = Qnil;
4134
4135 if ((argc < 1) || (argc > 1)) {
4136 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4137 }
4138 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4139 if (!SWIG_IsOK(res1)) {
4140 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","ok", 1, argv[0] ));
4141 }
4142 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4143 result = (bool)ok(arg1);
4144 vresult = SWIG_From_bool(static_cast< bool >(result));
4145 return vresult;
4146fail:
4147 return Qnil;
4148}
4149
4150
4151SWIGINTERN VALUE
4152_wrap_ok__SWIG_1(int argc, VALUE *argv, VALUE self) {
4153 Agnode_t *arg1 = (Agnode_t *) 0 ;
4154 void *argp1 = 0 ;
4155 int res1 = 0 ;
4156 bool result;
4157 VALUE vresult = Qnil;
4158
4159 if ((argc < 1) || (argc > 1)) {
4160 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4161 }
4162 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4163 if (!SWIG_IsOK(res1)) {
4164 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","ok", 1, argv[0] ));
4165 }
4166 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4167 result = (bool)ok(arg1);
4168 vresult = SWIG_From_bool(static_cast< bool >(result));
4169 return vresult;
4170fail:
4171 return Qnil;
4172}
4173
4174
4175SWIGINTERN VALUE
4176_wrap_ok__SWIG_2(int argc, VALUE *argv, VALUE self) {
4177 Agedge_t *arg1 = (Agedge_t *) 0 ;
4178 void *argp1 = 0 ;
4179 int res1 = 0 ;
4180 bool result;
4181 VALUE vresult = Qnil;
4182
4183 if ((argc < 1) || (argc > 1)) {
4184 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4185 }
4186 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
4187 if (!SWIG_IsOK(res1)) {
4188 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agedge_t *","ok", 1, argv[0] ));
4189 }
4190 arg1 = reinterpret_cast< Agedge_t * >(argp1);
4191 result = (bool)ok(arg1);
4192 vresult = SWIG_From_bool(static_cast< bool >(result));
4193 return vresult;
4194fail:
4195 return Qnil;
4196}
4197
4198
4199SWIGINTERN VALUE
4200_wrap_ok__SWIG_3(int argc, VALUE *argv, VALUE self) {
4201 Agsym_t *arg1 = (Agsym_t *) 0 ;
4202 void *argp1 = 0 ;
4203 int res1 = 0 ;
4204 bool result;
4205 VALUE vresult = Qnil;
4206
4207 if ((argc < 1) || (argc > 1)) {
4208 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4209 }
4210 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agsym_t, 0 | 0 );
4211 if (!SWIG_IsOK(res1)) {
4212 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agsym_t *","ok", 1, argv[0] ));
4213 }
4214 arg1 = reinterpret_cast< Agsym_t * >(argp1);
4215 result = (bool)ok(arg1);
4216 vresult = SWIG_From_bool(static_cast< bool >(result));
4217 return vresult;
4218fail:
4219 return Qnil;
4220}
4221
4222
4223SWIGINTERN VALUE _wrap_ok(int nargs, VALUE *args, VALUE self) {
4224 int argc;
4225 VALUE argv[1];
4226 int ii;
4227
4228 argc = nargs;
4229 if (argc > 1) SWIG_fail;
4230 for (ii = 0; (ii < argc); ++ii) {
4231 argv[ii] = args[ii];
4232 }
4233 if (argc == 1) {
4234 int _v = 0;
4235 void *vptr = 0;
4236 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4237 _v = SWIG_CheckState(res);
4238 if (_v) {
4239 return _wrap_ok__SWIG_0(nargs, args, self);
4240 }
4241 }
4242 if (argc == 1) {
4243 int _v = 0;
4244 void *vptr = 0;
4245 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
4246 _v = SWIG_CheckState(res);
4247 if (_v) {
4248 return _wrap_ok__SWIG_1(nargs, args, self);
4249 }
4250 }
4251 if (argc == 1) {
4252 int _v = 0;
4253 void *vptr = 0;
4254 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
4255 _v = SWIG_CheckState(res);
4256 if (_v) {
4257 return _wrap_ok__SWIG_2(nargs, args, self);
4258 }
4259 }
4260 if (argc == 1) {
4261 int _v = 0;
4262 void *vptr = 0;
4263 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agsym_t, 0);
4264 _v = SWIG_CheckState(res);
4265 if (_v) {
4266 return _wrap_ok__SWIG_3(nargs, args, self);
4267 }
4268 }
4269
4270fail:
4271 Ruby_Format_OverloadedError( argc, 1, "ok",
4272 " bool ok(Agraph_t *g)\n"
4273 " bool ok(Agnode_t *n)\n"
4274 " bool ok(Agedge_t *e)\n"
4275 " bool ok(Agsym_t *a)\n");
4276
4277 return Qnil;
4278}
4279
4280
4281SWIGINTERN VALUE
4282_wrap_firstsubg(int argc, VALUE *argv, VALUE self) {
4283 Agraph_t *arg1 = (Agraph_t *) 0 ;
4284 void *argp1 = 0 ;
4285 int res1 = 0 ;
4286 Agraph_t *result = 0 ;
4287 VALUE vresult = Qnil;
4288
4289 if ((argc < 1) || (argc > 1)) {
4290 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4291 }
4292 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4293 if (!SWIG_IsOK(res1)) {
4294 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","firstsubg", 1, argv[0] ));
4295 }
4296 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4297 result = (Agraph_t *)firstsubg(arg1);
4298 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
4299 return vresult;
4300fail:
4301 return Qnil;
4302}
4303
4304
4305SWIGINTERN VALUE
4306_wrap_nextsubg(int argc, VALUE *argv, VALUE self) {
4307 Agraph_t *arg1 = (Agraph_t *) 0 ;
4308 Agraph_t *arg2 = (Agraph_t *) 0 ;
4309 void *argp1 = 0 ;
4310 int res1 = 0 ;
4311 void *argp2 = 0 ;
4312 int res2 = 0 ;
4313 Agraph_t *result = 0 ;
4314 VALUE vresult = Qnil;
4315
4316 if ((argc < 2) || (argc > 2)) {
4317 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
4318 }
4319 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4320 if (!SWIG_IsOK(res1)) {
4321 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","nextsubg", 1, argv[0] ));
4322 }
4323 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4324 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agraph_t, 0 | 0 );
4325 if (!SWIG_IsOK(res2)) {
4326 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agraph_t *","nextsubg", 2, argv[1] ));
4327 }
4328 arg2 = reinterpret_cast< Agraph_t * >(argp2);
4329 result = (Agraph_t *)nextsubg(arg1,arg2);
4330 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
4331 return vresult;
4332fail:
4333 return Qnil;
4334}
4335
4336
4337SWIGINTERN VALUE
4338_wrap_firstsupg(int argc, VALUE *argv, VALUE self) {
4339 Agraph_t *arg1 = (Agraph_t *) 0 ;
4340 void *argp1 = 0 ;
4341 int res1 = 0 ;
4342 Agraph_t *result = 0 ;
4343 VALUE vresult = Qnil;
4344
4345 if ((argc < 1) || (argc > 1)) {
4346 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4347 }
4348 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4349 if (!SWIG_IsOK(res1)) {
4350 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","firstsupg", 1, argv[0] ));
4351 }
4352 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4353 result = (Agraph_t *)firstsupg(arg1);
4354 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
4355 return vresult;
4356fail:
4357 return Qnil;
4358}
4359
4360
4361SWIGINTERN VALUE
4362_wrap_nextsupg(int argc, VALUE *argv, VALUE self) {
4363 Agraph_t *arg1 = (Agraph_t *) 0 ;
4364 Agraph_t *arg2 = (Agraph_t *) 0 ;
4365 void *argp1 = 0 ;
4366 int res1 = 0 ;
4367 void *argp2 = 0 ;
4368 int res2 = 0 ;
4369 Agraph_t *result = 0 ;
4370 VALUE vresult = Qnil;
4371
4372 if ((argc < 2) || (argc > 2)) {
4373 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
4374 }
4375 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4376 if (!SWIG_IsOK(res1)) {
4377 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","nextsupg", 1, argv[0] ));
4378 }
4379 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4380 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agraph_t, 0 | 0 );
4381 if (!SWIG_IsOK(res2)) {
4382 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agraph_t *","nextsupg", 2, argv[1] ));
4383 }
4384 arg2 = reinterpret_cast< Agraph_t * >(argp2);
4385 result = (Agraph_t *)nextsupg(arg1,arg2);
4386 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t, 0 | 0 );
4387 return vresult;
4388fail:
4389 return Qnil;
4390}
4391
4392
4393SWIGINTERN VALUE
4394_wrap_firstedge__SWIG_0(int argc, VALUE *argv, VALUE self) {
4395 Agraph_t *arg1 = (Agraph_t *) 0 ;
4396 void *argp1 = 0 ;
4397 int res1 = 0 ;
4398 Agedge_t *result = 0 ;
4399 VALUE vresult = Qnil;
4400
4401 if ((argc < 1) || (argc > 1)) {
4402 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4403 }
4404 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4405 if (!SWIG_IsOK(res1)) {
4406 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","firstedge", 1, argv[0] ));
4407 }
4408 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4409 result = (Agedge_t *)firstedge(arg1);
4410 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
4411 return vresult;
4412fail:
4413 return Qnil;
4414}
4415
4416
4417SWIGINTERN VALUE
4418_wrap_nextedge__SWIG_0(int argc, VALUE *argv, VALUE self) {
4419 Agraph_t *arg1 = (Agraph_t *) 0 ;
4420 Agedge_t *arg2 = (Agedge_t *) 0 ;
4421 void *argp1 = 0 ;
4422 int res1 = 0 ;
4423 void *argp2 = 0 ;
4424 int res2 = 0 ;
4425 Agedge_t *result = 0 ;
4426 VALUE vresult = Qnil;
4427
4428 if ((argc < 2) || (argc > 2)) {
4429 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
4430 }
4431 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4432 if (!SWIG_IsOK(res1)) {
4433 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","nextedge", 1, argv[0] ));
4434 }
4435 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4436 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agedge_t, 0 | 0 );
4437 if (!SWIG_IsOK(res2)) {
4438 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agedge_t *","nextedge", 2, argv[1] ));
4439 }
4440 arg2 = reinterpret_cast< Agedge_t * >(argp2);
4441 result = (Agedge_t *)nextedge(arg1,arg2);
4442 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
4443 return vresult;
4444fail:
4445 return Qnil;
4446}
4447
4448
4449SWIGINTERN VALUE
4450_wrap_firstout__SWIG_0(int argc, VALUE *argv, VALUE self) {
4451 Agraph_t *arg1 = (Agraph_t *) 0 ;
4452 void *argp1 = 0 ;
4453 int res1 = 0 ;
4454 Agedge_t *result = 0 ;
4455 VALUE vresult = Qnil;
4456
4457 if ((argc < 1) || (argc > 1)) {
4458 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4459 }
4460 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4461 if (!SWIG_IsOK(res1)) {
4462 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","firstout", 1, argv[0] ));
4463 }
4464 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4465 result = (Agedge_t *)firstout(arg1);
4466 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
4467 return vresult;
4468fail:
4469 return Qnil;
4470}
4471
4472
4473SWIGINTERN VALUE
4474_wrap_nextout__SWIG_0(int argc, VALUE *argv, VALUE self) {
4475 Agraph_t *arg1 = (Agraph_t *) 0 ;
4476 Agedge_t *arg2 = (Agedge_t *) 0 ;
4477 void *argp1 = 0 ;
4478 int res1 = 0 ;
4479 void *argp2 = 0 ;
4480 int res2 = 0 ;
4481 Agedge_t *result = 0 ;
4482 VALUE vresult = Qnil;
4483
4484 if ((argc < 2) || (argc > 2)) {
4485 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
4486 }
4487 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4488 if (!SWIG_IsOK(res1)) {
4489 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","nextout", 1, argv[0] ));
4490 }
4491 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4492 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agedge_t, 0 | 0 );
4493 if (!SWIG_IsOK(res2)) {
4494 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agedge_t *","nextout", 2, argv[1] ));
4495 }
4496 arg2 = reinterpret_cast< Agedge_t * >(argp2);
4497 result = (Agedge_t *)nextout(arg1,arg2);
4498 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
4499 return vresult;
4500fail:
4501 return Qnil;
4502}
4503
4504
4505SWIGINTERN VALUE
4506_wrap_firstedge__SWIG_1(int argc, VALUE *argv, VALUE self) {
4507 Agnode_t *arg1 = (Agnode_t *) 0 ;
4508 void *argp1 = 0 ;
4509 int res1 = 0 ;
4510 Agedge_t *result = 0 ;
4511 VALUE vresult = Qnil;
4512
4513 if ((argc < 1) || (argc > 1)) {
4514 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4515 }
4516 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4517 if (!SWIG_IsOK(res1)) {
4518 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","firstedge", 1, argv[0] ));
4519 }
4520 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4521 result = (Agedge_t *)firstedge(arg1);
4522 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
4523 return vresult;
4524fail:
4525 return Qnil;
4526}
4527
4528
4529SWIGINTERN VALUE _wrap_firstedge(int nargs, VALUE *args, VALUE self) {
4530 int argc;
4531 VALUE argv[1];
4532 int ii;
4533
4534 argc = nargs;
4535 if (argc > 1) SWIG_fail;
4536 for (ii = 0; (ii < argc); ++ii) {
4537 argv[ii] = args[ii];
4538 }
4539 if (argc == 1) {
4540 int _v = 0;
4541 void *vptr = 0;
4542 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4543 _v = SWIG_CheckState(res);
4544 if (_v) {
4545 return _wrap_firstedge__SWIG_0(nargs, args, self);
4546 }
4547 }
4548 if (argc == 1) {
4549 int _v = 0;
4550 void *vptr = 0;
4551 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
4552 _v = SWIG_CheckState(res);
4553 if (_v) {
4554 return _wrap_firstedge__SWIG_1(nargs, args, self);
4555 }
4556 }
4557
4558fail:
4559 Ruby_Format_OverloadedError( argc, 1, "firstedge",
4560 " Agedge_t firstedge(Agraph_t *g)\n"
4561 " Agedge_t * firstedge(Agnode_t *n)\n");
4562
4563 return Qnil;
4564}
4565
4566
4567SWIGINTERN VALUE
4568_wrap_nextedge__SWIG_1(int argc, VALUE *argv, VALUE self) {
4569 Agnode_t *arg1 = (Agnode_t *) 0 ;
4570 Agedge_t *arg2 = (Agedge_t *) 0 ;
4571 void *argp1 = 0 ;
4572 int res1 = 0 ;
4573 void *argp2 = 0 ;
4574 int res2 = 0 ;
4575 Agedge_t *result = 0 ;
4576 VALUE vresult = Qnil;
4577
4578 if ((argc < 2) || (argc > 2)) {
4579 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
4580 }
4581 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4582 if (!SWIG_IsOK(res1)) {
4583 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","nextedge", 1, argv[0] ));
4584 }
4585 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4586 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agedge_t, 0 | 0 );
4587 if (!SWIG_IsOK(res2)) {
4588 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agedge_t *","nextedge", 2, argv[1] ));
4589 }
4590 arg2 = reinterpret_cast< Agedge_t * >(argp2);
4591 result = (Agedge_t *)nextedge(arg1,arg2);
4592 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
4593 return vresult;
4594fail:
4595 return Qnil;
4596}
4597
4598
4599SWIGINTERN VALUE _wrap_nextedge(int nargs, VALUE *args, VALUE self) {
4600 int argc;
4601 VALUE argv[2];
4602 int ii;
4603
4604 argc = nargs;
4605 if (argc > 2) SWIG_fail;
4606 for (ii = 0; (ii < argc); ++ii) {
4607 argv[ii] = args[ii];
4608 }
4609 if (argc == 2) {
4610 int _v = 0;
4611 void *vptr = 0;
4612 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4613 _v = SWIG_CheckState(res);
4614 if (_v) {
4615 void *vptr = 0;
4616 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agedge_t, 0);
4617 _v = SWIG_CheckState(res);
4618 if (_v) {
4619 return _wrap_nextedge__SWIG_0(nargs, args, self);
4620 }
4621 }
4622 }
4623 if (argc == 2) {
4624 int _v = 0;
4625 void *vptr = 0;
4626 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
4627 _v = SWIG_CheckState(res);
4628 if (_v) {
4629 void *vptr = 0;
4630 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agedge_t, 0);
4631 _v = SWIG_CheckState(res);
4632 if (_v) {
4633 return _wrap_nextedge__SWIG_1(nargs, args, self);
4634 }
4635 }
4636 }
4637
4638fail:
4639 Ruby_Format_OverloadedError( argc, 2, "nextedge",
4640 " Agedge_t nextedge(Agraph_t *g, Agedge_t *e)\n"
4641 " Agedge_t * nextedge(Agnode_t *n, Agedge_t *e)\n");
4642
4643 return Qnil;
4644}
4645
4646
4647SWIGINTERN VALUE
4648_wrap_firstout__SWIG_1(int argc, VALUE *argv, VALUE self) {
4649 Agnode_t *arg1 = (Agnode_t *) 0 ;
4650 void *argp1 = 0 ;
4651 int res1 = 0 ;
4652 Agedge_t *result = 0 ;
4653 VALUE vresult = Qnil;
4654
4655 if ((argc < 1) || (argc > 1)) {
4656 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4657 }
4658 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4659 if (!SWIG_IsOK(res1)) {
4660 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","firstout", 1, argv[0] ));
4661 }
4662 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4663 result = (Agedge_t *)firstout(arg1);
4664 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
4665 return vresult;
4666fail:
4667 return Qnil;
4668}
4669
4670
4671SWIGINTERN VALUE _wrap_firstout(int nargs, VALUE *args, VALUE self) {
4672 int argc;
4673 VALUE argv[1];
4674 int ii;
4675
4676 argc = nargs;
4677 if (argc > 1) SWIG_fail;
4678 for (ii = 0; (ii < argc); ++ii) {
4679 argv[ii] = args[ii];
4680 }
4681 if (argc == 1) {
4682 int _v = 0;
4683 void *vptr = 0;
4684 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4685 _v = SWIG_CheckState(res);
4686 if (_v) {
4687 return _wrap_firstout__SWIG_0(nargs, args, self);
4688 }
4689 }
4690 if (argc == 1) {
4691 int _v = 0;
4692 void *vptr = 0;
4693 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
4694 _v = SWIG_CheckState(res);
4695 if (_v) {
4696 return _wrap_firstout__SWIG_1(nargs, args, self);
4697 }
4698 }
4699
4700fail:
4701 Ruby_Format_OverloadedError( argc, 1, "firstout",
4702 " Agedge_t firstout(Agraph_t *g)\n"
4703 " Agedge_t * firstout(Agnode_t *n)\n");
4704
4705 return Qnil;
4706}
4707
4708
4709SWIGINTERN VALUE
4710_wrap_nextout__SWIG_1(int argc, VALUE *argv, VALUE self) {
4711 Agnode_t *arg1 = (Agnode_t *) 0 ;
4712 Agedge_t *arg2 = (Agedge_t *) 0 ;
4713 void *argp1 = 0 ;
4714 int res1 = 0 ;
4715 void *argp2 = 0 ;
4716 int res2 = 0 ;
4717 Agedge_t *result = 0 ;
4718 VALUE vresult = Qnil;
4719
4720 if ((argc < 2) || (argc > 2)) {
4721 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
4722 }
4723 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4724 if (!SWIG_IsOK(res1)) {
4725 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","nextout", 1, argv[0] ));
4726 }
4727 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4728 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agedge_t, 0 | 0 );
4729 if (!SWIG_IsOK(res2)) {
4730 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agedge_t *","nextout", 2, argv[1] ));
4731 }
4732 arg2 = reinterpret_cast< Agedge_t * >(argp2);
4733 result = (Agedge_t *)nextout(arg1,arg2);
4734 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
4735 return vresult;
4736fail:
4737 return Qnil;
4738}
4739
4740
4741SWIGINTERN VALUE _wrap_nextout(int nargs, VALUE *args, VALUE self) {
4742 int argc;
4743 VALUE argv[2];
4744 int ii;
4745
4746 argc = nargs;
4747 if (argc > 2) SWIG_fail;
4748 for (ii = 0; (ii < argc); ++ii) {
4749 argv[ii] = args[ii];
4750 }
4751 if (argc == 2) {
4752 int _v = 0;
4753 void *vptr = 0;
4754 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4755 _v = SWIG_CheckState(res);
4756 if (_v) {
4757 void *vptr = 0;
4758 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agedge_t, 0);
4759 _v = SWIG_CheckState(res);
4760 if (_v) {
4761 return _wrap_nextout__SWIG_0(nargs, args, self);
4762 }
4763 }
4764 }
4765 if (argc == 2) {
4766 int _v = 0;
4767 void *vptr = 0;
4768 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
4769 _v = SWIG_CheckState(res);
4770 if (_v) {
4771 void *vptr = 0;
4772 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agedge_t, 0);
4773 _v = SWIG_CheckState(res);
4774 if (_v) {
4775 return _wrap_nextout__SWIG_1(nargs, args, self);
4776 }
4777 }
4778 }
4779
4780fail:
4781 Ruby_Format_OverloadedError( argc, 2, "nextout",
4782 " Agedge_t nextout(Agraph_t *g, Agedge_t *e)\n"
4783 " Agedge_t * nextout(Agnode_t *n, Agedge_t *e)\n");
4784
4785 return Qnil;
4786}
4787
4788
4789SWIGINTERN VALUE
4790_wrap_firsthead(int argc, VALUE *argv, VALUE self) {
4791 Agnode_t *arg1 = (Agnode_t *) 0 ;
4792 void *argp1 = 0 ;
4793 int res1 = 0 ;
4794 Agnode_t *result = 0 ;
4795 VALUE vresult = Qnil;
4796
4797 if ((argc < 1) || (argc > 1)) {
4798 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4799 }
4800 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4801 if (!SWIG_IsOK(res1)) {
4802 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","firsthead", 1, argv[0] ));
4803 }
4804 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4805 result = (Agnode_t *)firsthead(arg1);
4806 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
4807 return vresult;
4808fail:
4809 return Qnil;
4810}
4811
4812
4813SWIGINTERN VALUE
4814_wrap_nexthead(int argc, VALUE *argv, VALUE self) {
4815 Agnode_t *arg1 = (Agnode_t *) 0 ;
4816 Agnode_t *arg2 = (Agnode_t *) 0 ;
4817 void *argp1 = 0 ;
4818 int res1 = 0 ;
4819 void *argp2 = 0 ;
4820 int res2 = 0 ;
4821 Agnode_t *result = 0 ;
4822 VALUE vresult = Qnil;
4823
4824 if ((argc < 2) || (argc > 2)) {
4825 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
4826 }
4827 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4828 if (!SWIG_IsOK(res1)) {
4829 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","nexthead", 1, argv[0] ));
4830 }
4831 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4832 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agnode_t, 0 | 0 );
4833 if (!SWIG_IsOK(res2)) {
4834 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agnode_t *","nexthead", 2, argv[1] ));
4835 }
4836 arg2 = reinterpret_cast< Agnode_t * >(argp2);
4837 result = (Agnode_t *)nexthead(arg1,arg2);
4838 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
4839 return vresult;
4840fail:
4841 return Qnil;
4842}
4843
4844
4845SWIGINTERN VALUE
4846_wrap_firstin__SWIG_0(int argc, VALUE *argv, VALUE self) {
4847 Agraph_t *arg1 = (Agraph_t *) 0 ;
4848 void *argp1 = 0 ;
4849 int res1 = 0 ;
4850 Agedge_t *result = 0 ;
4851 VALUE vresult = Qnil;
4852
4853 if ((argc < 1) || (argc > 1)) {
4854 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4855 }
4856 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4857 if (!SWIG_IsOK(res1)) {
4858 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","firstin", 1, argv[0] ));
4859 }
4860 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4861 result = (Agedge_t *)firstin(arg1);
4862 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
4863 return vresult;
4864fail:
4865 return Qnil;
4866}
4867
4868
4869SWIGINTERN VALUE
4870_wrap_nextin__SWIG_0(int argc, VALUE *argv, VALUE self) {
4871 Agnode_t *arg1 = (Agnode_t *) 0 ;
4872 Agedge_t *arg2 = (Agedge_t *) 0 ;
4873 void *argp1 = 0 ;
4874 int res1 = 0 ;
4875 void *argp2 = 0 ;
4876 int res2 = 0 ;
4877 Agedge_t *result = 0 ;
4878 VALUE vresult = Qnil;
4879
4880 if ((argc < 2) || (argc > 2)) {
4881 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
4882 }
4883 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4884 if (!SWIG_IsOK(res1)) {
4885 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","nextin", 1, argv[0] ));
4886 }
4887 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4888 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agedge_t, 0 | 0 );
4889 if (!SWIG_IsOK(res2)) {
4890 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agedge_t *","nextin", 2, argv[1] ));
4891 }
4892 arg2 = reinterpret_cast< Agedge_t * >(argp2);
4893 result = (Agedge_t *)nextin(arg1,arg2);
4894 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
4895 return vresult;
4896fail:
4897 return Qnil;
4898}
4899
4900
4901SWIGINTERN VALUE
4902_wrap_firstin__SWIG_1(int argc, VALUE *argv, VALUE self) {
4903 Agnode_t *arg1 = (Agnode_t *) 0 ;
4904 void *argp1 = 0 ;
4905 int res1 = 0 ;
4906 Agedge_t *result = 0 ;
4907 VALUE vresult = Qnil;
4908
4909 if ((argc < 1) || (argc > 1)) {
4910 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4911 }
4912 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4913 if (!SWIG_IsOK(res1)) {
4914 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","firstin", 1, argv[0] ));
4915 }
4916 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4917 result = (Agedge_t *)firstin(arg1);
4918 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
4919 return vresult;
4920fail:
4921 return Qnil;
4922}
4923
4924
4925SWIGINTERN VALUE _wrap_firstin(int nargs, VALUE *args, VALUE self) {
4926 int argc;
4927 VALUE argv[1];
4928 int ii;
4929
4930 argc = nargs;
4931 if (argc > 1) SWIG_fail;
4932 for (ii = 0; (ii < argc); ++ii) {
4933 argv[ii] = args[ii];
4934 }
4935 if (argc == 1) {
4936 int _v = 0;
4937 void *vptr = 0;
4938 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4939 _v = SWIG_CheckState(res);
4940 if (_v) {
4941 return _wrap_firstin__SWIG_0(nargs, args, self);
4942 }
4943 }
4944 if (argc == 1) {
4945 int _v = 0;
4946 void *vptr = 0;
4947 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
4948 _v = SWIG_CheckState(res);
4949 if (_v) {
4950 return _wrap_firstin__SWIG_1(nargs, args, self);
4951 }
4952 }
4953
4954fail:
4955 Ruby_Format_OverloadedError( argc, 1, "firstin",
4956 " Agedge_t firstin(Agraph_t *g)\n"
4957 " Agedge_t * firstin(Agnode_t *n)\n");
4958
4959 return Qnil;
4960}
4961
4962
4963SWIGINTERN VALUE
4964_wrap_nextin__SWIG_1(int argc, VALUE *argv, VALUE self) {
4965 Agraph_t *arg1 = (Agraph_t *) 0 ;
4966 Agedge_t *arg2 = (Agedge_t *) 0 ;
4967 void *argp1 = 0 ;
4968 int res1 = 0 ;
4969 void *argp2 = 0 ;
4970 int res2 = 0 ;
4971 Agedge_t *result = 0 ;
4972 VALUE vresult = Qnil;
4973
4974 if ((argc < 2) || (argc > 2)) {
4975 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
4976 }
4977 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4978 if (!SWIG_IsOK(res1)) {
4979 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","nextin", 1, argv[0] ));
4980 }
4981 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4982 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agedge_t, 0 | 0 );
4983 if (!SWIG_IsOK(res2)) {
4984 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agedge_t *","nextin", 2, argv[1] ));
4985 }
4986 arg2 = reinterpret_cast< Agedge_t * >(argp2);
4987 result = (Agedge_t *)nextin(arg1,arg2);
4988 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t, 0 | 0 );
4989 return vresult;
4990fail:
4991 return Qnil;
4992}
4993
4994
4995SWIGINTERN VALUE _wrap_nextin(int nargs, VALUE *args, VALUE self) {
4996 int argc;
4997 VALUE argv[2];
4998 int ii;
4999
5000 argc = nargs;
5001 if (argc > 2) SWIG_fail;
5002 for (ii = 0; (ii < argc); ++ii) {
5003 argv[ii] = args[ii];
5004 }
5005 if (argc == 2) {
5006 int _v = 0;
5007 void *vptr = 0;
5008 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
5009 _v = SWIG_CheckState(res);
5010 if (_v) {
5011 void *vptr = 0;
5012 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agedge_t, 0);
5013 _v = SWIG_CheckState(res);
5014 if (_v) {
5015 return _wrap_nextin__SWIG_0(nargs, args, self);
5016 }
5017 }
5018 }
5019 if (argc == 2) {
5020 int _v = 0;
5021 void *vptr = 0;
5022 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5023 _v = SWIG_CheckState(res);
5024 if (_v) {
5025 void *vptr = 0;
5026 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agedge_t, 0);
5027 _v = SWIG_CheckState(res);
5028 if (_v) {
5029 return _wrap_nextin__SWIG_1(nargs, args, self);
5030 }
5031 }
5032 }
5033
5034fail:
5035 Ruby_Format_OverloadedError( argc, 2, "nextin",
5036 " Agedge_t nextin(Agnode_t *n, Agedge_t *e)\n"
5037 " Agedge_t * nextin(Agraph_t *g, Agedge_t *e)\n");
5038
5039 return Qnil;
5040}
5041
5042
5043SWIGINTERN VALUE
5044_wrap_firsttail(int argc, VALUE *argv, VALUE self) {
5045 Agnode_t *arg1 = (Agnode_t *) 0 ;
5046 void *argp1 = 0 ;
5047 int res1 = 0 ;
5048 Agnode_t *result = 0 ;
5049 VALUE vresult = Qnil;
5050
5051 if ((argc < 1) || (argc > 1)) {
5052 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5053 }
5054 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
5055 if (!SWIG_IsOK(res1)) {
5056 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","firsttail", 1, argv[0] ));
5057 }
5058 arg1 = reinterpret_cast< Agnode_t * >(argp1);
5059 result = (Agnode_t *)firsttail(arg1);
5060 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
5061 return vresult;
5062fail:
5063 return Qnil;
5064}
5065
5066
5067SWIGINTERN VALUE
5068_wrap_nexttail(int argc, VALUE *argv, VALUE self) {
5069 Agnode_t *arg1 = (Agnode_t *) 0 ;
5070 Agnode_t *arg2 = (Agnode_t *) 0 ;
5071 void *argp1 = 0 ;
5072 int res1 = 0 ;
5073 void *argp2 = 0 ;
5074 int res2 = 0 ;
5075 Agnode_t *result = 0 ;
5076 VALUE vresult = Qnil;
5077
5078 if ((argc < 2) || (argc > 2)) {
5079 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
5080 }
5081 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
5082 if (!SWIG_IsOK(res1)) {
5083 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","nexttail", 1, argv[0] ));
5084 }
5085 arg1 = reinterpret_cast< Agnode_t * >(argp1);
5086 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agnode_t, 0 | 0 );
5087 if (!SWIG_IsOK(res2)) {
5088 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agnode_t *","nexttail", 2, argv[1] ));
5089 }
5090 arg2 = reinterpret_cast< Agnode_t * >(argp2);
5091 result = (Agnode_t *)nexttail(arg1,arg2);
5092 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
5093 return vresult;
5094fail:
5095 return Qnil;
5096}
5097
5098
5099SWIGINTERN VALUE
5100_wrap_firstnode__SWIG_0(int argc, VALUE *argv, VALUE self) {
5101 Agraph_t *arg1 = (Agraph_t *) 0 ;
5102 void *argp1 = 0 ;
5103 int res1 = 0 ;
5104 Agnode_t *result = 0 ;
5105 VALUE vresult = Qnil;
5106
5107 if ((argc < 1) || (argc > 1)) {
5108 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5109 }
5110 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5111 if (!SWIG_IsOK(res1)) {
5112 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","firstnode", 1, argv[0] ));
5113 }
5114 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5115 result = (Agnode_t *)firstnode(arg1);
5116 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
5117 return vresult;
5118fail:
5119 return Qnil;
5120}
5121
5122
5123SWIGINTERN VALUE
5124_wrap_nextnode__SWIG_0(int argc, VALUE *argv, VALUE self) {
5125 Agraph_t *arg1 = (Agraph_t *) 0 ;
5126 Agnode_t *arg2 = (Agnode_t *) 0 ;
5127 void *argp1 = 0 ;
5128 int res1 = 0 ;
5129 void *argp2 = 0 ;
5130 int res2 = 0 ;
5131 Agnode_t *result = 0 ;
5132 VALUE vresult = Qnil;
5133
5134 if ((argc < 2) || (argc > 2)) {
5135 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
5136 }
5137 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5138 if (!SWIG_IsOK(res1)) {
5139 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","nextnode", 1, argv[0] ));
5140 }
5141 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5142 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agnode_t, 0 | 0 );
5143 if (!SWIG_IsOK(res2)) {
5144 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agnode_t *","nextnode", 2, argv[1] ));
5145 }
5146 arg2 = reinterpret_cast< Agnode_t * >(argp2);
5147 result = (Agnode_t *)nextnode(arg1,arg2);
5148 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
5149 return vresult;
5150fail:
5151 return Qnil;
5152}
5153
5154
5155SWIGINTERN VALUE
5156_wrap_firstnode__SWIG_1(int argc, VALUE *argv, VALUE self) {
5157 Agedge_t *arg1 = (Agedge_t *) 0 ;
5158 void *argp1 = 0 ;
5159 int res1 = 0 ;
5160 Agnode_t *result = 0 ;
5161 VALUE vresult = Qnil;
5162
5163 if ((argc < 1) || (argc > 1)) {
5164 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5165 }
5166 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
5167 if (!SWIG_IsOK(res1)) {
5168 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agedge_t *","firstnode", 1, argv[0] ));
5169 }
5170 arg1 = reinterpret_cast< Agedge_t * >(argp1);
5171 result = (Agnode_t *)firstnode(arg1);
5172 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
5173 return vresult;
5174fail:
5175 return Qnil;
5176}
5177
5178
5179SWIGINTERN VALUE _wrap_firstnode(int nargs, VALUE *args, VALUE self) {
5180 int argc;
5181 VALUE argv[1];
5182 int ii;
5183
5184 argc = nargs;
5185 if (argc > 1) SWIG_fail;
5186 for (ii = 0; (ii < argc); ++ii) {
5187 argv[ii] = args[ii];
5188 }
5189 if (argc == 1) {
5190 int _v = 0;
5191 void *vptr = 0;
5192 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5193 _v = SWIG_CheckState(res);
5194 if (_v) {
5195 return _wrap_firstnode__SWIG_0(nargs, args, self);
5196 }
5197 }
5198 if (argc == 1) {
5199 int _v = 0;
5200 void *vptr = 0;
5201 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
5202 _v = SWIG_CheckState(res);
5203 if (_v) {
5204 return _wrap_firstnode__SWIG_1(nargs, args, self);
5205 }
5206 }
5207
5208fail:
5209 Ruby_Format_OverloadedError( argc, 1, "firstnode",
5210 " Agnode_t firstnode(Agraph_t *g)\n"
5211 " Agnode_t * firstnode(Agedge_t *e)\n");
5212
5213 return Qnil;
5214}
5215
5216
5217SWIGINTERN VALUE
5218_wrap_nextnode__SWIG_1(int argc, VALUE *argv, VALUE self) {
5219 Agedge_t *arg1 = (Agedge_t *) 0 ;
5220 Agnode_t *arg2 = (Agnode_t *) 0 ;
5221 void *argp1 = 0 ;
5222 int res1 = 0 ;
5223 void *argp2 = 0 ;
5224 int res2 = 0 ;
5225 Agnode_t *result = 0 ;
5226 VALUE vresult = Qnil;
5227
5228 if ((argc < 2) || (argc > 2)) {
5229 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
5230 }
5231 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
5232 if (!SWIG_IsOK(res1)) {
5233 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agedge_t *","nextnode", 1, argv[0] ));
5234 }
5235 arg1 = reinterpret_cast< Agedge_t * >(argp1);
5236 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agnode_t, 0 | 0 );
5237 if (!SWIG_IsOK(res2)) {
5238 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agnode_t *","nextnode", 2, argv[1] ));
5239 }
5240 arg2 = reinterpret_cast< Agnode_t * >(argp2);
5241 result = (Agnode_t *)nextnode(arg1,arg2);
5242 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t, 0 | 0 );
5243 return vresult;
5244fail:
5245 return Qnil;
5246}
5247
5248
5249SWIGINTERN VALUE _wrap_nextnode(int nargs, VALUE *args, VALUE self) {
5250 int argc;
5251 VALUE argv[2];
5252 int ii;
5253
5254 argc = nargs;
5255 if (argc > 2) SWIG_fail;
5256 for (ii = 0; (ii < argc); ++ii) {
5257 argv[ii] = args[ii];
5258 }
5259 if (argc == 2) {
5260 int _v = 0;
5261 void *vptr = 0;
5262 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5263 _v = SWIG_CheckState(res);
5264 if (_v) {
5265 void *vptr = 0;
5266 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agnode_t, 0);
5267 _v = SWIG_CheckState(res);
5268 if (_v) {
5269 return _wrap_nextnode__SWIG_0(nargs, args, self);
5270 }
5271 }
5272 }
5273 if (argc == 2) {
5274 int _v = 0;
5275 void *vptr = 0;
5276 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
5277 _v = SWIG_CheckState(res);
5278 if (_v) {
5279 void *vptr = 0;
5280 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agnode_t, 0);
5281 _v = SWIG_CheckState(res);
5282 if (_v) {
5283 return _wrap_nextnode__SWIG_1(nargs, args, self);
5284 }
5285 }
5286 }
5287
5288fail:
5289 Ruby_Format_OverloadedError( argc, 2, "nextnode",
5290 " Agnode_t nextnode(Agraph_t *g, Agnode_t *n)\n"
5291 " Agnode_t * nextnode(Agedge_t *e, Agnode_t *n)\n");
5292
5293 return Qnil;
5294}
5295
5296
5297SWIGINTERN VALUE
5298_wrap_firstattr__SWIG_0(int argc, VALUE *argv, VALUE self) {
5299 Agraph_t *arg1 = (Agraph_t *) 0 ;
5300 void *argp1 = 0 ;
5301 int res1 = 0 ;
5302 Agsym_t *result = 0 ;
5303 VALUE vresult = Qnil;
5304
5305 if ((argc < 1) || (argc > 1)) {
5306 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5307 }
5308 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5309 if (!SWIG_IsOK(res1)) {
5310 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","firstattr", 1, argv[0] ));
5311 }
5312 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5313 result = (Agsym_t *)firstattr(arg1);
5314 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t, 0 | 0 );
5315 return vresult;
5316fail:
5317 return Qnil;
5318}
5319
5320
5321SWIGINTERN VALUE
5322_wrap_nextattr__SWIG_0(int argc, VALUE *argv, VALUE self) {
5323 Agraph_t *arg1 = (Agraph_t *) 0 ;
5324 Agsym_t *arg2 = (Agsym_t *) 0 ;
5325 void *argp1 = 0 ;
5326 int res1 = 0 ;
5327 void *argp2 = 0 ;
5328 int res2 = 0 ;
5329 Agsym_t *result = 0 ;
5330 VALUE vresult = Qnil;
5331
5332 if ((argc < 2) || (argc > 2)) {
5333 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
5334 }
5335 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5336 if (!SWIG_IsOK(res1)) {
5337 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","nextattr", 1, argv[0] ));
5338 }
5339 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5340 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
5341 if (!SWIG_IsOK(res2)) {
5342 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agsym_t *","nextattr", 2, argv[1] ));
5343 }
5344 arg2 = reinterpret_cast< Agsym_t * >(argp2);
5345 result = (Agsym_t *)nextattr(arg1,arg2);
5346 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t, 0 | 0 );
5347 return vresult;
5348fail:
5349 return Qnil;
5350}
5351
5352
5353SWIGINTERN VALUE
5354_wrap_firstattr__SWIG_1(int argc, VALUE *argv, VALUE self) {
5355 Agedge_t *arg1 = (Agedge_t *) 0 ;
5356 void *argp1 = 0 ;
5357 int res1 = 0 ;
5358 Agsym_t *result = 0 ;
5359 VALUE vresult = Qnil;
5360
5361 if ((argc < 1) || (argc > 1)) {
5362 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5363 }
5364 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
5365 if (!SWIG_IsOK(res1)) {
5366 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agedge_t *","firstattr", 1, argv[0] ));
5367 }
5368 arg1 = reinterpret_cast< Agedge_t * >(argp1);
5369 result = (Agsym_t *)firstattr(arg1);
5370 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t, 0 | 0 );
5371 return vresult;
5372fail:
5373 return Qnil;
5374}
5375
5376
5377SWIGINTERN VALUE
5378_wrap_nextattr__SWIG_1(int argc, VALUE *argv, VALUE self) {
5379 Agedge_t *arg1 = (Agedge_t *) 0 ;
5380 Agsym_t *arg2 = (Agsym_t *) 0 ;
5381 void *argp1 = 0 ;
5382 int res1 = 0 ;
5383 void *argp2 = 0 ;
5384 int res2 = 0 ;
5385 Agsym_t *result = 0 ;
5386 VALUE vresult = Qnil;
5387
5388 if ((argc < 2) || (argc > 2)) {
5389 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
5390 }
5391 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
5392 if (!SWIG_IsOK(res1)) {
5393 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agedge_t *","nextattr", 1, argv[0] ));
5394 }
5395 arg1 = reinterpret_cast< Agedge_t * >(argp1);
5396 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
5397 if (!SWIG_IsOK(res2)) {
5398 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agsym_t *","nextattr", 2, argv[1] ));
5399 }
5400 arg2 = reinterpret_cast< Agsym_t * >(argp2);
5401 result = (Agsym_t *)nextattr(arg1,arg2);
5402 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t, 0 | 0 );
5403 return vresult;
5404fail:
5405 return Qnil;
5406}
5407
5408
5409SWIGINTERN VALUE
5410_wrap_firstattr__SWIG_2(int argc, VALUE *argv, VALUE self) {
5411 Agnode_t *arg1 = (Agnode_t *) 0 ;
5412 void *argp1 = 0 ;
5413 int res1 = 0 ;
5414 Agsym_t *result = 0 ;
5415 VALUE vresult = Qnil;
5416
5417 if ((argc < 1) || (argc > 1)) {
5418 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5419 }
5420 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
5421 if (!SWIG_IsOK(res1)) {
5422 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","firstattr", 1, argv[0] ));
5423 }
5424 arg1 = reinterpret_cast< Agnode_t * >(argp1);
5425 result = (Agsym_t *)firstattr(arg1);
5426 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t, 0 | 0 );
5427 return vresult;
5428fail:
5429 return Qnil;
5430}
5431
5432
5433SWIGINTERN VALUE _wrap_firstattr(int nargs, VALUE *args, VALUE self) {
5434 int argc;
5435 VALUE argv[1];
5436 int ii;
5437
5438 argc = nargs;
5439 if (argc > 1) SWIG_fail;
5440 for (ii = 0; (ii < argc); ++ii) {
5441 argv[ii] = args[ii];
5442 }
5443 if (argc == 1) {
5444 int _v = 0;
5445 void *vptr = 0;
5446 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5447 _v = SWIG_CheckState(res);
5448 if (_v) {
5449 return _wrap_firstattr__SWIG_0(nargs, args, self);
5450 }
5451 }
5452 if (argc == 1) {
5453 int _v = 0;
5454 void *vptr = 0;
5455 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
5456 _v = SWIG_CheckState(res);
5457 if (_v) {
5458 return _wrap_firstattr__SWIG_1(nargs, args, self);
5459 }
5460 }
5461 if (argc == 1) {
5462 int _v = 0;
5463 void *vptr = 0;
5464 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
5465 _v = SWIG_CheckState(res);
5466 if (_v) {
5467 return _wrap_firstattr__SWIG_2(nargs, args, self);
5468 }
5469 }
5470
5471fail:
5472 Ruby_Format_OverloadedError( argc, 1, "firstattr",
5473 " Agsym_t firstattr(Agraph_t *g)\n"
5474 " Agsym_t firstattr(Agedge_t *e)\n"
5475 " Agsym_t * firstattr(Agnode_t *n)\n");
5476
5477 return Qnil;
5478}
5479
5480
5481SWIGINTERN VALUE
5482_wrap_nextattr__SWIG_2(int argc, VALUE *argv, VALUE self) {
5483 Agnode_t *arg1 = (Agnode_t *) 0 ;
5484 Agsym_t *arg2 = (Agsym_t *) 0 ;
5485 void *argp1 = 0 ;
5486 int res1 = 0 ;
5487 void *argp2 = 0 ;
5488 int res2 = 0 ;
5489 Agsym_t *result = 0 ;
5490 VALUE vresult = Qnil;
5491
5492 if ((argc < 2) || (argc > 2)) {
5493 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
5494 }
5495 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
5496 if (!SWIG_IsOK(res1)) {
5497 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","nextattr", 1, argv[0] ));
5498 }
5499 arg1 = reinterpret_cast< Agnode_t * >(argp1);
5500 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
5501 if (!SWIG_IsOK(res2)) {
5502 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Agsym_t *","nextattr", 2, argv[1] ));
5503 }
5504 arg2 = reinterpret_cast< Agsym_t * >(argp2);
5505 result = (Agsym_t *)nextattr(arg1,arg2);
5506 vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t, 0 | 0 );
5507 return vresult;
5508fail:
5509 return Qnil;
5510}
5511
5512
5513SWIGINTERN VALUE _wrap_nextattr(int nargs, VALUE *args, VALUE self) {
5514 int argc;
5515 VALUE argv[2];
5516 int ii;
5517
5518 argc = nargs;
5519 if (argc > 2) SWIG_fail;
5520 for (ii = 0; (ii < argc); ++ii) {
5521 argv[ii] = args[ii];
5522 }
5523 if (argc == 2) {
5524 int _v = 0;
5525 void *vptr = 0;
5526 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5527 _v = SWIG_CheckState(res);
5528 if (_v) {
5529 void *vptr = 0;
5530 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
5531 _v = SWIG_CheckState(res);
5532 if (_v) {
5533 return _wrap_nextattr__SWIG_0(nargs, args, self);
5534 }
5535 }
5536 }
5537 if (argc == 2) {
5538 int _v = 0;
5539 void *vptr = 0;
5540 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
5541 _v = SWIG_CheckState(res);
5542 if (_v) {
5543 void *vptr = 0;
5544 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
5545 _v = SWIG_CheckState(res);
5546 if (_v) {
5547 return _wrap_nextattr__SWIG_1(nargs, args, self);
5548 }
5549 }
5550 }
5551 if (argc == 2) {
5552 int _v = 0;
5553 void *vptr = 0;
5554 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
5555 _v = SWIG_CheckState(res);
5556 if (_v) {
5557 void *vptr = 0;
5558 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
5559 _v = SWIG_CheckState(res);
5560 if (_v) {
5561 return _wrap_nextattr__SWIG_2(nargs, args, self);
5562 }
5563 }
5564 }
5565
5566fail:
5567 Ruby_Format_OverloadedError( argc, 2, "nextattr",
5568 " Agsym_t nextattr(Agraph_t *g, Agsym_t *a)\n"
5569 " Agsym_t nextattr(Agedge_t *e, Agsym_t *a)\n"
5570 " Agsym_t * nextattr(Agnode_t *n, Agsym_t *a)\n");
5571
5572 return Qnil;
5573}
5574
5575
5576SWIGINTERN VALUE
5577_wrap_rm__SWIG_0(int argc, VALUE *argv, VALUE self) {
5578 Agraph_t *arg1 = (Agraph_t *) 0 ;
5579 void *argp1 = 0 ;
5580 int res1 = 0 ;
5581 bool result;
5582 VALUE vresult = Qnil;
5583
5584 if ((argc < 1) || (argc > 1)) {
5585 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5586 }
5587 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5588 if (!SWIG_IsOK(res1)) {
5589 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","rm", 1, argv[0] ));
5590 }
5591 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5592 result = (bool)rm(arg1);
5593 vresult = SWIG_From_bool(static_cast< bool >(result));
5594 return vresult;
5595fail:
5596 return Qnil;
5597}
5598
5599
5600SWIGINTERN VALUE
5601_wrap_rm__SWIG_1(int argc, VALUE *argv, VALUE self) {
5602 Agnode_t *arg1 = (Agnode_t *) 0 ;
5603 void *argp1 = 0 ;
5604 int res1 = 0 ;
5605 bool result;
5606 VALUE vresult = Qnil;
5607
5608 if ((argc < 1) || (argc > 1)) {
5609 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5610 }
5611 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
5612 if (!SWIG_IsOK(res1)) {
5613 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agnode_t *","rm", 1, argv[0] ));
5614 }
5615 arg1 = reinterpret_cast< Agnode_t * >(argp1);
5616 result = (bool)rm(arg1);
5617 vresult = SWIG_From_bool(static_cast< bool >(result));
5618 return vresult;
5619fail:
5620 return Qnil;
5621}
5622
5623
5624SWIGINTERN VALUE
5625_wrap_rm__SWIG_2(int argc, VALUE *argv, VALUE self) {
5626 Agedge_t *arg1 = (Agedge_t *) 0 ;
5627 void *argp1 = 0 ;
5628 int res1 = 0 ;
5629 bool result;
5630 VALUE vresult = Qnil;
5631
5632 if ((argc < 1) || (argc > 1)) {
5633 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5634 }
5635 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
5636 if (!SWIG_IsOK(res1)) {
5637 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agedge_t *","rm", 1, argv[0] ));
5638 }
5639 arg1 = reinterpret_cast< Agedge_t * >(argp1);
5640 result = (bool)rm(arg1);
5641 vresult = SWIG_From_bool(static_cast< bool >(result));
5642 return vresult;
5643fail:
5644 return Qnil;
5645}
5646
5647
5648SWIGINTERN VALUE _wrap_rm(int nargs, VALUE *args, VALUE self) {
5649 int argc;
5650 VALUE argv[1];
5651 int ii;
5652
5653 argc = nargs;
5654 if (argc > 1) SWIG_fail;
5655 for (ii = 0; (ii < argc); ++ii) {
5656 argv[ii] = args[ii];
5657 }
5658 if (argc == 1) {
5659 int _v = 0;
5660 void *vptr = 0;
5661 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5662 _v = SWIG_CheckState(res);
5663 if (_v) {
5664 return _wrap_rm__SWIG_0(nargs, args, self);
5665 }
5666 }
5667 if (argc == 1) {
5668 int _v = 0;
5669 void *vptr = 0;
5670 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
5671 _v = SWIG_CheckState(res);
5672 if (_v) {
5673 return _wrap_rm__SWIG_1(nargs, args, self);
5674 }
5675 }
5676 if (argc == 1) {
5677 int _v = 0;
5678 void *vptr = 0;
5679 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
5680 _v = SWIG_CheckState(res);
5681 if (_v) {
5682 return _wrap_rm__SWIG_2(nargs, args, self);
5683 }
5684 }
5685
5686fail:
5687 Ruby_Format_OverloadedError( argc, 1, "rm",
5688 " bool rm(Agraph_t *g)\n"
5689 " bool rm(Agnode_t *n)\n"
5690 " bool rm(Agedge_t *e)\n");
5691
5692 return Qnil;
5693}
5694
5695
5696SWIGINTERN VALUE
5697_wrap_layout(int argc, VALUE *argv, VALUE self) {
5698 Agraph_t *arg1 = (Agraph_t *) 0 ;
5699 char *arg2 = (char *) 0 ;
5700 void *argp1 = 0 ;
5701 int res1 = 0 ;
5702 int res2 ;
5703 char *buf2 = 0 ;
5704 int alloc2 = 0 ;
5705 bool result;
5706 VALUE vresult = Qnil;
5707
5708 if ((argc < 2) || (argc > 2)) {
5709 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
5710 }
5711 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5712 if (!SWIG_IsOK(res1)) {
5713 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","layout", 1, argv[0] ));
5714 }
5715 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5716 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
5717 if (!SWIG_IsOK(res2)) {
5718 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","layout", 2, argv[1] ));
5719 }
5720 arg2 = reinterpret_cast< char * >(buf2);
5721 result = (bool)layout(arg1,(char const *)arg2);
5722 vresult = SWIG_From_bool(static_cast< bool >(result));
5723 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5724 return vresult;
5725fail:
5726 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5727 return Qnil;
5728}
5729
5730
5731SWIGINTERN VALUE
5732_wrap_render__SWIG_0(int argc, VALUE *argv, VALUE self) {
5733 Agraph_t *arg1 = (Agraph_t *) 0 ;
5734 void *argp1 = 0 ;
5735 int res1 = 0 ;
5736 bool result;
5737 VALUE vresult = Qnil;
5738
5739 if ((argc < 1) || (argc > 1)) {
5740 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5741 }
5742 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5743 if (!SWIG_IsOK(res1)) {
5744 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","render", 1, argv[0] ));
5745 }
5746 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5747 result = (bool)render(arg1);
5748 vresult = SWIG_From_bool(static_cast< bool >(result));
5749 return vresult;
5750fail:
5751 return Qnil;
5752}
5753
5754
5755SWIGINTERN VALUE
5756_wrap_render__SWIG_1(int argc, VALUE *argv, VALUE self) {
5757 Agraph_t *arg1 = (Agraph_t *) 0 ;
5758 char *arg2 = (char *) 0 ;
5759 void *argp1 = 0 ;
5760 int res1 = 0 ;
5761 int res2 ;
5762 char *buf2 = 0 ;
5763 int alloc2 = 0 ;
5764 bool result;
5765 VALUE vresult = Qnil;
5766
5767 if ((argc < 2) || (argc > 2)) {
5768 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
5769 }
5770 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5771 if (!SWIG_IsOK(res1)) {
5772 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","render", 1, argv[0] ));
5773 }
5774 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5775 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
5776 if (!SWIG_IsOK(res2)) {
5777 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","render", 2, argv[1] ));
5778 }
5779 arg2 = reinterpret_cast< char * >(buf2);
5780 result = (bool)render(arg1,(char const *)arg2);
5781 vresult = SWIG_From_bool(static_cast< bool >(result));
5782 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5783 return vresult;
5784fail:
5785 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5786 return Qnil;
5787}
5788
5789
5790SWIGINTERN VALUE
5791_wrap_render__SWIG_2(int argc, VALUE *argv, VALUE self) {
5792 Agraph_t *arg1 = (Agraph_t *) 0 ;
5793 char *arg2 = (char *) 0 ;
5794 FILE *arg3 = (FILE *) 0 ;
5795 void *argp1 = 0 ;
5796 int res1 = 0 ;
5797 int res2 ;
5798 char *buf2 = 0 ;
5799 int alloc2 = 0 ;
5800 void *argp3 = 0 ;
5801 int res3 = 0 ;
5802 bool result;
5803 VALUE vresult = Qnil;
5804
5805 if ((argc < 3) || (argc > 3)) {
5806 rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
5807 }
5808 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5809 if (!SWIG_IsOK(res1)) {
5810 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","render", 1, argv[0] ));
5811 }
5812 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5813 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
5814 if (!SWIG_IsOK(res2)) {
5815 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","render", 2, argv[1] ));
5816 }
5817 arg2 = reinterpret_cast< char * >(buf2);
5818 res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_FILE, 0 | 0 );
5819 if (!SWIG_IsOK(res3)) {
5820 SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FILE *","render", 3, argv[2] ));
5821 }
5822 arg3 = reinterpret_cast< FILE * >(argp3);
5823 result = (bool)render(arg1,(char const *)arg2,arg3);
5824 vresult = SWIG_From_bool(static_cast< bool >(result));
5825 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5826 return vresult;
5827fail:
5828 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5829 return Qnil;
5830}
5831
5832
5833SWIGINTERN VALUE
5834_wrap_render__SWIG_3(int argc, VALUE *argv, VALUE self) {
5835 Agraph_t *arg1 = (Agraph_t *) 0 ;
5836 char *arg2 = (char *) 0 ;
5837 char *arg3 = (char *) 0 ;
5838 void *argp1 = 0 ;
5839 int res1 = 0 ;
5840 int res2 ;
5841 char *buf2 = 0 ;
5842 int alloc2 = 0 ;
5843 int res3 ;
5844 char *buf3 = 0 ;
5845 int alloc3 = 0 ;
5846 bool result;
5847 VALUE vresult = Qnil;
5848
5849 if ((argc < 3) || (argc > 3)) {
5850 rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
5851 }
5852 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5853 if (!SWIG_IsOK(res1)) {
5854 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","render", 1, argv[0] ));
5855 }
5856 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5857 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
5858 if (!SWIG_IsOK(res2)) {
5859 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","render", 2, argv[1] ));
5860 }
5861 arg2 = reinterpret_cast< char * >(buf2);
5862 res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
5863 if (!SWIG_IsOK(res3)) {
5864 SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","render", 3, argv[2] ));
5865 }
5866 arg3 = reinterpret_cast< char * >(buf3);
5867 result = (bool)render(arg1,(char const *)arg2,(char const *)arg3);
5868 vresult = SWIG_From_bool(static_cast< bool >(result));
5869 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5870 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
5871 return vresult;
5872fail:
5873 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5874 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
5875 return Qnil;
5876}
5877
5878
5879SWIGINTERN VALUE _wrap_render(int nargs, VALUE *args, VALUE self) {
5880 int argc;
5881 VALUE argv[3];
5882 int ii;
5883
5884 argc = nargs;
5885 if (argc > 3) SWIG_fail;
5886 for (ii = 0; (ii < argc); ++ii) {
5887 argv[ii] = args[ii];
5888 }
5889 if (argc == 1) {
5890 int _v = 0;
5891 void *vptr = 0;
5892 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5893 _v = SWIG_CheckState(res);
5894 if (_v) {
5895 return _wrap_render__SWIG_0(nargs, args, self);
5896 }
5897 }
5898 if (argc == 2) {
5899 int _v = 0;
5900 void *vptr = 0;
5901 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5902 _v = SWIG_CheckState(res);
5903 if (_v) {
5904 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
5905 _v = SWIG_CheckState(res);
5906 if (_v) {
5907 return _wrap_render__SWIG_1(nargs, args, self);
5908 }
5909 }
5910 }
5911 if (argc == 3) {
5912 int _v = 0;
5913 void *vptr = 0;
5914 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5915 _v = SWIG_CheckState(res);
5916 if (_v) {
5917 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
5918 _v = SWIG_CheckState(res);
5919 if (_v) {
5920 void *vptr = 0;
5921 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FILE, 0);
5922 _v = SWIG_CheckState(res);
5923 if (_v) {
5924 return _wrap_render__SWIG_2(nargs, args, self);
5925 }
5926 }
5927 }
5928 }
5929 if (argc == 3) {
5930 int _v = 0;
5931 void *vptr = 0;
5932 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5933 _v = SWIG_CheckState(res);
5934 if (_v) {
5935 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
5936 _v = SWIG_CheckState(res);
5937 if (_v) {
5938 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
5939 _v = SWIG_CheckState(res);
5940 if (_v) {
5941 return _wrap_render__SWIG_3(nargs, args, self);
5942 }
5943 }
5944 }
5945 }
5946
5947fail:
5948 Ruby_Format_OverloadedError( argc, 3, "render",
5949 " bool render(Agraph_t *g)\n"
5950 " bool render(Agraph_t *g, char const *format)\n"
5951 " bool render(Agraph_t *g, char const *format, FILE *fout)\n"
5952 " bool render(Agraph_t *g, char const *format, char const *filename)\n");
5953
5954 return Qnil;
5955}
5956
5957
5958SWIGINTERN VALUE
5959_wrap_renderresult(int argc, VALUE *argv, VALUE self) {
5960 Agraph_t *arg1 = (Agraph_t *) 0 ;
5961 char *arg2 = (char *) 0 ;
5962 char *arg3 = (char *) 0 ;
5963 void *argp1 = 0 ;
5964 int res1 = 0 ;
5965 int res2 ;
5966 char *buf2 = 0 ;
5967 int alloc2 = 0 ;
5968 int res3 ;
5969 char *buf3 = 0 ;
5970 int alloc3 = 0 ;
5971
5972 if ((argc < 3) || (argc > 3)) {
5973 rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
5974 }
5975 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5976 if (!SWIG_IsOK(res1)) {
5977 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","renderresult", 1, argv[0] ));
5978 }
5979 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5980 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
5981 if (!SWIG_IsOK(res2)) {
5982 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","renderresult", 2, argv[1] ));
5983 }
5984 arg2 = reinterpret_cast< char * >(buf2);
5985 res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
5986 if (!SWIG_IsOK(res3)) {
5987 SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","renderresult", 3, argv[2] ));
5988 }
5989 arg3 = reinterpret_cast< char * >(buf3);
5990 renderresult(arg1,(char const *)arg2,arg3);
5991 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5992 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
5993 return Qnil;
5994fail:
5995 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5996 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
5997 return Qnil;
5998}
5999
6000
6001SWIGINTERN VALUE
6002_wrap_renderchannel(int argc, VALUE *argv, VALUE self) {
6003 Agraph_t *arg1 = (Agraph_t *) 0 ;
6004 char *arg2 = (char *) 0 ;
6005 char *arg3 = (char *) 0 ;
6006 void *argp1 = 0 ;
6007 int res1 = 0 ;
6008 int res2 ;
6009 char *buf2 = 0 ;
6010 int alloc2 = 0 ;
6011 int res3 ;
6012 char *buf3 = 0 ;
6013 int alloc3 = 0 ;
6014 bool result;
6015 VALUE vresult = Qnil;
6016
6017 if ((argc < 3) || (argc > 3)) {
6018 rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
6019 }
6020 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
6021 if (!SWIG_IsOK(res1)) {
6022 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","renderchannel", 1, argv[0] ));
6023 }
6024 arg1 = reinterpret_cast< Agraph_t * >(argp1);
6025 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
6026 if (!SWIG_IsOK(res2)) {
6027 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","renderchannel", 2, argv[1] ));
6028 }
6029 arg2 = reinterpret_cast< char * >(buf2);
6030 res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
6031 if (!SWIG_IsOK(res3)) {
6032 SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","renderchannel", 3, argv[2] ));
6033 }
6034 arg3 = reinterpret_cast< char * >(buf3);
6035 result = (bool)renderchannel(arg1,(char const *)arg2,(char const *)arg3);
6036 vresult = SWIG_From_bool(static_cast< bool >(result));
6037 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
6038 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
6039 return vresult;
6040fail:
6041 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
6042 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
6043 return Qnil;
6044}
6045
6046
6047SWIGINTERN VALUE
6048_wrap_renderdata(int argc, VALUE *argv, VALUE self) {
6049 Agraph_t *arg1 = (Agraph_t *) 0 ;
6050 char *arg2 = (char *) 0 ;
6051 void *argp1 = 0 ;
6052 int res1 = 0 ;
6053 int res2 ;
6054 char *buf2 = 0 ;
6055 int alloc2 = 0 ;
6056 char *result = 0 ;
6057 VALUE vresult = Qnil;
6058
6059 if ((argc < 2) || (argc > 2)) {
6060 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
6061 }
6062 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
6063 if (!SWIG_IsOK(res1)) {
6064 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","renderdata", 1, argv[0] ));
6065 }
6066 arg1 = reinterpret_cast< Agraph_t * >(argp1);
6067 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
6068 if (!SWIG_IsOK(res2)) {
6069 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","renderdata", 2, argv[1] ));
6070 }
6071 arg2 = reinterpret_cast< char * >(buf2);
6072 result = (char *)renderdata(arg1,(char const *)arg2);
6073 vresult = SWIG_FromCharPtr((const char *)result);
6074 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
6075 return vresult;
6076fail:
6077 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
6078 return Qnil;
6079}
6080
6081
6082SWIGINTERN VALUE
6083_wrap_write__SWIG_0(int argc, VALUE *argv, VALUE self) {
6084 Agraph_t *arg1 = (Agraph_t *) 0 ;
6085 char *arg2 = (char *) 0 ;
6086 void *argp1 = 0 ;
6087 int res1 = 0 ;
6088 int res2 ;
6089 char *buf2 = 0 ;
6090 int alloc2 = 0 ;
6091 bool result;
6092 VALUE vresult = Qnil;
6093
6094 if ((argc < 2) || (argc > 2)) {
6095 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
6096 }
6097 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
6098 if (!SWIG_IsOK(res1)) {
6099 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","write", 1, argv[0] ));
6100 }
6101 arg1 = reinterpret_cast< Agraph_t * >(argp1);
6102 res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
6103 if (!SWIG_IsOK(res2)) {
6104 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","write", 2, argv[1] ));
6105 }
6106 arg2 = reinterpret_cast< char * >(buf2);
6107 result = (bool)write(arg1,(char const *)arg2);
6108 vresult = SWIG_From_bool(static_cast< bool >(result));
6109 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
6110 return vresult;
6111fail:
6112 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
6113 return Qnil;
6114}
6115
6116
6117SWIGINTERN VALUE
6118_wrap_write__SWIG_1(int argc, VALUE *argv, VALUE self) {
6119 Agraph_t *arg1 = (Agraph_t *) 0 ;
6120 FILE *arg2 = (FILE *) 0 ;
6121 void *argp1 = 0 ;
6122 int res1 = 0 ;
6123 void *argp2 = 0 ;
6124 int res2 = 0 ;
6125 bool result;
6126 VALUE vresult = Qnil;
6127
6128 if ((argc < 2) || (argc > 2)) {
6129 rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
6130 }
6131 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
6132 if (!SWIG_IsOK(res1)) {
6133 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","write", 1, argv[0] ));
6134 }
6135 arg1 = reinterpret_cast< Agraph_t * >(argp1);
6136 res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_FILE, 0 | 0 );
6137 if (!SWIG_IsOK(res2)) {
6138 SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FILE *","write", 2, argv[1] ));
6139 }
6140 arg2 = reinterpret_cast< FILE * >(argp2);
6141 result = (bool)write(arg1,arg2);
6142 vresult = SWIG_From_bool(static_cast< bool >(result));
6143 return vresult;
6144fail:
6145 return Qnil;
6146}
6147
6148
6149SWIGINTERN VALUE _wrap_write(int nargs, VALUE *args, VALUE self) {
6150 int argc;
6151 VALUE argv[2];
6152 int ii;
6153
6154 argc = nargs;
6155 if (argc > 2) SWIG_fail;
6156 for (ii = 0; (ii < argc); ++ii) {
6157 argv[ii] = args[ii];
6158 }
6159 if (argc == 2) {
6160 int _v = 0;
6161 void *vptr = 0;
6162 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
6163 _v = SWIG_CheckState(res);
6164 if (_v) {
6165 void *vptr = 0;
6166 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FILE, 0);
6167 _v = SWIG_CheckState(res);
6168 if (_v) {
6169 return _wrap_write__SWIG_1(nargs, args, self);
6170 }
6171 }
6172 }
6173 if (argc == 2) {
6174 int _v = 0;
6175 void *vptr = 0;
6176 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
6177 _v = SWIG_CheckState(res);
6178 if (_v) {
6179 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
6180 _v = SWIG_CheckState(res);
6181 if (_v) {
6182 return _wrap_write__SWIG_0(nargs, args, self);
6183 }
6184 }
6185 }
6186
6187fail:
6188 Ruby_Format_OverloadedError( argc, 2, "write",
6189 " bool write(Agraph_t *g, char const *filename)\n"
6190 " bool write(Agraph_t *g, FILE *f)\n");
6191
6192 return Qnil;
6193}
6194
6195
6196SWIGINTERN VALUE
6197_wrap_tred(int argc, VALUE *argv, VALUE self) {
6198 Agraph_t *arg1 = (Agraph_t *) 0 ;
6199 void *argp1 = 0 ;
6200 int res1 = 0 ;
6201 bool result;
6202 VALUE vresult = Qnil;
6203
6204 if ((argc < 1) || (argc > 1)) {
6205 rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
6206 }
6207 res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
6208 if (!SWIG_IsOK(res1)) {
6209 SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Agraph_t *","tred", 1, argv[0] ));
6210 }
6211 arg1 = reinterpret_cast< Agraph_t * >(argp1);
6212 result = (bool)tred(arg1);
6213 vresult = SWIG_From_bool(static_cast< bool >(result));
6214 return vresult;
6215fail:
6216 return Qnil;
6217}
6218
6219
6220
6221/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
6222
6223static swig_type_info _swigt__p_Agedge_t = {"_p_Agedge_t", "Agedge_t *", 0, 0, (void*)0, 0};
6224static swig_type_info _swigt__p_Agnode_t = {"_p_Agnode_t", "Agnode_t *", 0, 0, (void*)0, 0};
6225static swig_type_info _swigt__p_Agraph_t = {"_p_Agraph_t", "Agraph_t *", 0, 0, (void*)0, 0};
6226static swig_type_info _swigt__p_Agsym_t = {"_p_Agsym_t", "Agsym_t *", 0, 0, (void*)0, 0};
6227static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
6228static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
6229
6238
6239static swig_cast_info _swigc__p_Agedge_t[] = { {&_swigt__p_Agedge_t, 0, 0, 0},{0, 0, 0, 0}};
6240static swig_cast_info _swigc__p_Agnode_t[] = { {&_swigt__p_Agnode_t, 0, 0, 0},{0, 0, 0, 0}};
6241static swig_cast_info _swigc__p_Agraph_t[] = { {&_swigt__p_Agraph_t, 0, 0, 0},{0, 0, 0, 0}};
6242static swig_cast_info _swigc__p_Agsym_t[] = { {&_swigt__p_Agsym_t, 0, 0, 0},{0, 0, 0, 0}};
6243static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
6244static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
6245
6254
6255
6256/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
6257
6258/* -----------------------------------------------------------------------------
6259 * Type initialization:
6260 * This problem is tough by the requirement that no dynamic
6261 * memory is used. Also, since swig_type_info structures store pointers to
6262 * swig_cast_info structures and swig_cast_info structures store pointers back
6263 * to swig_type_info structures, we need some lookup code at initialization.
6264 * The idea is that swig generates all the structures that are needed.
6265 * The runtime then collects these partially filled structures.
6266 * The SWIG_InitializeModule function takes these initial arrays out of
6267 * swig_module, and does all the lookup, filling in the swig_module.types
6268 * array with the correct data and linking the correct swig_cast_info
6269 * structures together.
6270 *
6271 * The generated swig_type_info structures are assigned statically to an initial
6272 * array. We just loop through that array, and handle each type individually.
6273 * First we lookup if this type has been already loaded, and if so, use the
6274 * loaded structure instead of the generated one. Then we have to fill in the
6275 * cast linked list. The cast data is initially stored in something like a
6276 * two-dimensional array. Each row corresponds to a type (there are the same
6277 * number of rows as there are in the swig_type_initial array). Each entry in
6278 * a column is one of the swig_cast_info structures for that type.
6279 * The cast_initial array is actually an array of arrays, because each row has
6280 * a variable number of columns. So to actually build the cast linked list,
6281 * we find the array of casts associated with the type, and loop through it
6282 * adding the casts to the list. The one last trick we need to do is making
6283 * sure the type pointer in the swig_cast_info struct is correct.
6284 *
6285 * First off, we lookup the cast->type name to see if it is already loaded.
6286 * There are three cases to handle:
6287 * 1) If the cast->type has already been loaded AND the type we are adding
6288 * casting info to has not been loaded (it is in this module), THEN we
6289 * replace the cast->type pointer with the type pointer that has already
6290 * been loaded.
6291 * 2) If BOTH types (the one we are adding casting info to, and the
6292 * cast->type) are loaded, THEN the cast info has already been loaded by
6293 * the previous module so we just ignore it.
6294 * 3) Finally, if cast->type has not already been loaded, then we add that
6295 * swig_cast_info to the linked list (because the cast->type) pointer will
6296 * be correct.
6297 * ----------------------------------------------------------------------------- */
6298
6299#ifdef __cplusplus
6300extern "C" {
6301#if 0
6302} /* c-mode */
6303#endif
6304#endif
6305
6306#if 0
6307#define SWIGRUNTIME_DEBUG
6308#endif
6309
6310#ifndef SWIG_INIT_CLIENT_DATA_TYPE
6311#define SWIG_INIT_CLIENT_DATA_TYPE void *
6312#endif
6313
6314SWIGRUNTIME void
6316 size_t i;
6317 swig_module_info *module_head, *iter;
6318 int init;
6319
6320 /* check to see if the circular list has been setup, if not, set it up */
6321 if (swig_module.next==0) {
6322 /* Initialize the swig_module */
6326 init = 1;
6327 } else {
6328 init = 0;
6329 }
6330
6331 /* Try and load any already created modules */
6332 module_head = SWIG_GetModule(clientdata);
6333 if (!module_head) {
6334 /* This is the first module loaded for this interpreter */
6335 /* so set the swig module into the interpreter */
6336 SWIG_SetModule(clientdata, &swig_module);
6337 } else {
6338 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
6339 iter=module_head;
6340 do {
6341 if (iter==&swig_module) {
6342 /* Our module is already in the list, so there's nothing more to do. */
6343 return;
6344 }
6345 iter=iter->next;
6346 } while (iter!= module_head);
6347
6348 /* otherwise we must add our module into the list */
6349 swig_module.next = module_head->next;
6350 module_head->next = &swig_module;
6351 }
6352
6353 /* When multiple interpreters are used, a module could have already been initialized in
6354 a different interpreter, but not yet have a pointer in this interpreter.
6355 In this case, we do not want to continue adding types... everything should be
6356 set up already */
6357 if (init == 0) return;
6358
6359 /* Now work on filling in swig_module.types */
6360#ifdef SWIGRUNTIME_DEBUG
6361 printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
6362#endif
6363 for (i = 0; i < swig_module.size; ++i) {
6364 swig_type_info *type = 0;
6365 swig_type_info *ret;
6366 swig_cast_info *cast;
6367
6368#ifdef SWIGRUNTIME_DEBUG
6369 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
6370#endif
6371
6372 /* if there is another module already loaded */
6373 if (swig_module.next != &swig_module) {
6375 }
6376 if (type) {
6377 /* Overwrite clientdata field */
6378#ifdef SWIGRUNTIME_DEBUG
6379 printf("SWIG_InitializeModule: found type %s\n", type->name);
6380#endif
6382 type->clientdata = swig_module.type_initial[i]->clientdata;
6383#ifdef SWIGRUNTIME_DEBUG
6384 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
6385#endif
6386 }
6387 } else {
6389 }
6390
6391 /* Insert casting types */
6392 cast = swig_module.cast_initial[i];
6393 while (cast->type) {
6394
6395 /* Don't need to add information already in the list */
6396 ret = 0;
6397#ifdef SWIGRUNTIME_DEBUG
6398 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
6399#endif
6400 if (swig_module.next != &swig_module) {
6402#ifdef SWIGRUNTIME_DEBUG
6403 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
6404#endif
6405 }
6406 if (ret) {
6407 if (type == swig_module.type_initial[i]) {
6408#ifdef SWIGRUNTIME_DEBUG
6409 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
6410#endif
6411 cast->type = ret;
6412 ret = 0;
6413 } else {
6414 /* Check for casting already in the list */
6415 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
6416#ifdef SWIGRUNTIME_DEBUG
6417 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
6418#endif
6419 if (!ocast) ret = 0;
6420 }
6421 }
6422
6423 if (!ret) {
6424#ifdef SWIGRUNTIME_DEBUG
6425 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
6426#endif
6427 if (type->cast) {
6428 type->cast->prev = cast;
6429 cast->next = type->cast;
6430 }
6431 type->cast = cast;
6432 }
6433 cast++;
6434 }
6435 /* Set entry in modules->types array equal to the type */
6436 swig_module.types[i] = type;
6437 }
6438 swig_module.types[i] = 0;
6439
6440#ifdef SWIGRUNTIME_DEBUG
6441 printf("**** SWIG_InitializeModule: Cast List ******\n");
6442 for (i = 0; i < swig_module.size; ++i) {
6443 int j = 0;
6445 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
6446 while (cast->type) {
6447 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
6448 cast++;
6449 ++j;
6450 }
6451 printf("---- Total casts: %d\n",j);
6452 }
6453 printf("**** SWIG_InitializeModule: Cast List ******\n");
6454#endif
6455}
6456
6457/* This function will propagate the clientdata field of type to
6458* any new swig_type_info structures that have been added into the list
6459* of equivalent types. It is like calling
6460* SWIG_TypeClientData(type, clientdata) a second time.
6461*/
6462SWIGRUNTIME void
6464 size_t i;
6465 swig_cast_info *equiv;
6466 static int init_run = 0;
6467
6468 if (init_run) return;
6469 init_run = 1;
6470
6471 for (i = 0; i < swig_module.size; i++) {
6472 if (swig_module.types[i]->clientdata) {
6473 equiv = swig_module.types[i]->cast;
6474 while (equiv) {
6475 if (!equiv->converter) {
6476 if (equiv->type && !equiv->type->clientdata)
6478 }
6479 equiv = equiv->next;
6480 }
6481 }
6482 }
6483}
6484
6485#ifdef __cplusplus
6486#if 0
6487{ /* c-mode */
6488#endif
6489}
6490#endif
6491
6492/*
6493
6494*/
6495#ifdef __cplusplus
6496extern "C"
6497#endif
6499 size_t i;
6500
6502 mGv = rb_define_module("Gv");
6503
6505 for (i = 0; i < swig_module.size; i++) {
6507 }
6508
6510 rb_define_module_function(mGv, "digraph", VALUEFUNC(_wrap_digraph), -1);
6511 rb_define_module_function(mGv, "strictgraph", VALUEFUNC(_wrap_strictgraph), -1);
6512 rb_define_module_function(mGv, "strictdigraph", VALUEFUNC(_wrap_strictdigraph), -1);
6513 rb_define_module_function(mGv, "readstring", VALUEFUNC(_wrap_readstring), -1);
6514 rb_define_module_function(mGv, "read", VALUEFUNC(_wrap_read), -1);
6515 rb_define_module_function(mGv, "graph", VALUEFUNC(_wrap_graph), -1);
6516 rb_define_module_function(mGv, "node", VALUEFUNC(_wrap_node), -1);
6517 rb_define_module_function(mGv, "edge", VALUEFUNC(_wrap_edge), -1);
6518 rb_define_module_function(mGv, "setv", VALUEFUNC(_wrap_setv), -1);
6519 rb_define_module_function(mGv, "getv", VALUEFUNC(_wrap_getv), -1);
6520 rb_define_module_function(mGv, "nameof", VALUEFUNC(_wrap_nameof), -1);
6521 rb_define_module_function(mGv, "findsubg", VALUEFUNC(_wrap_findsubg), -1);
6522 rb_define_module_function(mGv, "findnode", VALUEFUNC(_wrap_findnode), -1);
6523 rb_define_module_function(mGv, "findedge", VALUEFUNC(_wrap_findedge), -1);
6524 rb_define_module_function(mGv, "findattr", VALUEFUNC(_wrap_findattr), -1);
6525 rb_define_module_function(mGv, "headof", VALUEFUNC(_wrap_headof), -1);
6526 rb_define_module_function(mGv, "tailof", VALUEFUNC(_wrap_tailof), -1);
6527 rb_define_module_function(mGv, "graphof", VALUEFUNC(_wrap_graphof), -1);
6528 rb_define_module_function(mGv, "rootof", VALUEFUNC(_wrap_rootof), -1);
6529 rb_define_module_function(mGv, "protonode", VALUEFUNC(_wrap_protonode), -1);
6530 rb_define_module_function(mGv, "protoedge", VALUEFUNC(_wrap_protoedge), -1);
6531 rb_define_module_function(mGv, "ok", VALUEFUNC(_wrap_ok), -1);
6532 rb_define_module_function(mGv, "firstsubg", VALUEFUNC(_wrap_firstsubg), -1);
6533 rb_define_module_function(mGv, "nextsubg", VALUEFUNC(_wrap_nextsubg), -1);
6534 rb_define_module_function(mGv, "firstsupg", VALUEFUNC(_wrap_firstsupg), -1);
6535 rb_define_module_function(mGv, "nextsupg", VALUEFUNC(_wrap_nextsupg), -1);
6536 rb_define_module_function(mGv, "firstedge", VALUEFUNC(_wrap_firstedge), -1);
6537 rb_define_module_function(mGv, "nextedge", VALUEFUNC(_wrap_nextedge), -1);
6538 rb_define_module_function(mGv, "firstout", VALUEFUNC(_wrap_firstout), -1);
6539 rb_define_module_function(mGv, "nextout", VALUEFUNC(_wrap_nextout), -1);
6540 rb_define_module_function(mGv, "firsthead", VALUEFUNC(_wrap_firsthead), -1);
6541 rb_define_module_function(mGv, "nexthead", VALUEFUNC(_wrap_nexthead), -1);
6542 rb_define_module_function(mGv, "firstin", VALUEFUNC(_wrap_firstin), -1);
6543 rb_define_module_function(mGv, "nextin", VALUEFUNC(_wrap_nextin), -1);
6544 rb_define_module_function(mGv, "firsttail", VALUEFUNC(_wrap_firsttail), -1);
6545 rb_define_module_function(mGv, "nexttail", VALUEFUNC(_wrap_nexttail), -1);
6546 rb_define_module_function(mGv, "firstnode", VALUEFUNC(_wrap_firstnode), -1);
6547 rb_define_module_function(mGv, "nextnode", VALUEFUNC(_wrap_nextnode), -1);
6548 rb_define_module_function(mGv, "firstattr", VALUEFUNC(_wrap_firstattr), -1);
6549 rb_define_module_function(mGv, "nextattr", VALUEFUNC(_wrap_nextattr), -1);
6550 rb_define_module_function(mGv, "rm", VALUEFUNC(_wrap_rm), -1);
6551 rb_define_module_function(mGv, "layout", VALUEFUNC(_wrap_layout), -1);
6552 rb_define_module_function(mGv, "render", VALUEFUNC(_wrap_render), -1);
6553 rb_define_module_function(mGv, "renderresult", VALUEFUNC(_wrap_renderresult), -1);
6554 rb_define_module_function(mGv, "renderchannel", VALUEFUNC(_wrap_renderchannel), -1);
6555 rb_define_module_function(mGv, "renderdata", VALUEFUNC(_wrap_renderdata), -1);
6556 rb_define_module_function(mGv, "write", VALUEFUNC(_wrap_write), -1);
6557 rb_define_module_function(mGv, "tred", VALUEFUNC(_wrap_tred), -1);
6558}
6559
int compare(Agobj_t *l, Agobj_t *r)
Definition actions.c:687
int verbose
Definition bcomps.c:62
static void init(int argc, char *argv[], double *angle, double *accuracy, int *check_edges_with_same_endpoint, int *seed, char **color_scheme, int *lightness)
expr procedure type
Definition exparse.y:211
static int flags
Definition gc.c:61
#define TYPE
Definition gmlparse.c:399
#define ID
Definition gmlparse.c:415
void * malloc(YYSIZE_T)
void free(void *)
edge
Definition gmlparse.y:279
node NULL
Definition grammar.y:149
#define SWIG_MAXCASTRANK
Definition gv_perl.cpp:312
#define SWIG_CastRank(r)
Definition gv_perl.cpp:315
SWIGINTERN VALUE _wrap_getv__SWIG_4(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:3332
SWIGINTERN VALUE _wrap_setv__SWIG_4(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:2980
SWIGRUNTIME void SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata)
Definition gv_ruby.cpp:6315
static swig_type_info _swigt__p_Agsym_t
Definition gv_ruby.cpp:6226
SWIGINTERN VALUE getObjectPreviouslyDeletedError(void)
Definition gv_ruby.cpp:1100
bool ok(Agraph_t *g)
Definition gv.cpp:368
static swig_cast_info _swigc__p_Agraph_t[]
Definition gv_ruby.cpp:6241
SWIGINTERN VALUE _wrap_rm__SWIG_2(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:5625
SWIGRUNTIME VALUE getExceptionClass(void)
Definition gv_ruby.cpp:1519
SWIGINTERN VALUE _wrap_firstnode__SWIG_1(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:5156
static swig_cast_info * swig_cast_initial[]
Definition gv_ruby.cpp:6246
bool tred(Agraph_t *g)
Definition gv.cpp:734
Agraph_t * firstsubg(Agraph_t *g)
Definition gv.cpp:373
SWIGINTERN VALUE _wrap_getv__SWIG_3(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:3300
Agraph_t * read(const char *filename)
Definition gv.cpp:67
Agraph_t * nextsubg(Agraph_t *g, Agraph_t *sg)
Definition gv.cpp:379
Agraph_t * readstring(char *string)
Definition gv.cpp:55
SWIGRUNTIMEINLINE int SWIG_Ruby_CheckConvert(VALUE obj, swig_type_info *ty)
Definition gv_ruby.cpp:1766
SWIGINTERN VALUE _wrap_setv__SWIG_1(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:2845
#define RSTRING_PTR(x)
Definition gv_ruby.cpp:961
SWIGINTERN VALUE _wrap_nextnode__SWIG_0(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:5124
#define SWIG2NUM(v)
Definition gv_ruby.cpp:1250
SWIGINTERN VALUE _wrap_graphof__SWIG_2(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:3984
char * getv(Agraph_t *g, char *attr)
Definition gv.cpp:136
SWIGINTERN VALUE _wrap_protoedge(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4104
Agraph_t * findsubg(Agraph_t *g, char *name)
Definition gv.cpp:253
#define SWIG_TypeQuery(name)
Definition gv_ruby.cpp:1895
SWIGINTERN VALUE _wrap_read__SWIG_0(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:2373
#define SWIG_POINTER_OWN
Definition gv_ruby.cpp:323
SWIGINTERN VALUE _wrap_firstnode(int nargs, VALUE *args, VALUE self)
Definition gv_ruby.cpp:5179
SWIGINTERN VALUE _wrap_firstsupg(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4338
void renderresult(Agraph_t *g, const char *format, char *outdata)
Definition gv.cpp:696
#define SWIG_SyntaxError
Definition gv_ruby.cpp:880
SWIGINTERN VALUE _wrap_nextsupg(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4362
static VALUE _mSWIG
Definition gv_ruby.cpp:1073
static ID swig_call_id
Definition gv_ruby.cpp:1485
#define SWIG_CheckState(r)
Definition gv_ruby.cpp:453
SWIGINTERN VALUE _wrap_tailof(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:3912
SWIGINTERN VALUE _wrap_render(int nargs, VALUE *args, VALUE self)
Definition gv_ruby.cpp:5879
static swig_cast_info _swigc__p_FILE[]
Definition gv_ruby.cpp:6243
SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb)
Definition gv_ruby.cpp:555
SWIGINTERN VALUE _wrap_nexttail(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:5068
SWIGINTERN VALUE _wrap_setv__SWIG_0(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:2799
#define SWIG_RUBY_INT_ANYARGS_FUNC(f)
Definition gv_ruby.cpp:1045
#define SWIG_TypeError
Definition gv_ruby.cpp:877
RUBY_EXTERN void Init_stack(VALUE *addr)
static VALUE swig_runtime_data_type_pointer
Definition gv_ruby.cpp:1481
#define SWIGTYPE_p_Agnode_t
Definition gv_ruby.cpp:1888
SWIGINTERN VALUE _wrap_nextout__SWIG_1(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4710
SWIGINTERN VALUE _wrap_nextattr__SWIG_1(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:5378
struct swig_cast_info swig_cast_info
SWIGINTERN VALUE _wrap_firstattr__SWIG_2(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:5410
SWIGINTERN VALUE _wrap_getv(int nargs, VALUE *args, VALUE self)
Definition gv_ruby.cpp:3395
SWIGRUNTIME void SWIG_RubyAddTracking(void *ptr, VALUE object)
Definition gv_ruby.cpp:1307
SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2)
Definition gv_ruby.cpp:521
Agraph_t * strictgraph(char *name)
Definition gv.cpp:43
SWIGINTERN VALUE _wrap_render__SWIG_1(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:5756
static VALUE swig_ruby_trackings_count(ID id, VALUE *var)
Definition gv_ruby.cpp:1264
SWIGINTERN VALUE _wrap_protonode(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4080
SWIGINTERN VALUE _wrap_ok__SWIG_2(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4176
char * setv(Agraph_t *g, char *attr, char *val)
Definition gv.cpp:158
#define SWIG_RuntimeError
Definition gv_ruby.cpp:875
Agedge_t * nextout(Agraph_t *g, Agedge_t *e)
Definition gv.cpp:401
SWIGINTERN VALUE _wrap_graphof__SWIG_0(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:3936
SWIGINTERN VALUE _wrap_nextnode(int nargs, VALUE *args, VALUE self)
Definition gv_ruby.cpp:5249
#define SWIG_RUBY_VOID_ANYARGS_FUNC(f)
Definition gv_ruby.cpp:1044
Agraph_t * rootof(Agraph_t *g)
Definition gv.cpp:333
static swig_cast_info _swigc__p_Agnode_t[]
Definition gv_ruby.cpp:6240
#define VALUEFUNC(f)
Definition gv_ruby.cpp:1042
SWIGINTERN VALUE _wrap_firstattr(int nargs, VALUE *args, VALUE self)
Definition gv_ruby.cpp:5433
SWIGINTERN VALUE _wrap_render__SWIG_0(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:5732
Agnode_t * headof(Agedge_t *e)
Definition gv.cpp:293
#define SWIGRUNTIME
Definition gv_ruby.cpp:303
SWIGINTERNINLINE VALUE SWIG_FromCharPtrAndSize(const char *carray, size_t size)
Definition gv_ruby.cpp:2208
SWIGINTERN VALUE _wrap_firstedge__SWIG_0(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4394
#define SWIGTYPE_p_Agraph_t
Definition gv_ruby.cpp:1889
#define SWIG_UnknownError
Definition gv_ruby.cpp:873
Agnode_t * firsttail(Agnode_t *n)
Definition gv.cpp:500
SWIGINTERN VALUE _wrap_ok__SWIG_1(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4152
#define SWIG_RUNTIME_VERSION
Definition gv_ruby.cpp:282
#define SWIGTYPE_p_Agsym_t
Definition gv_ruby.cpp:1890
SWIGINTERN VALUE _wrap_read__SWIG_1(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:2400
Agraph_t * strictdigraph(char *name)
Definition gv.cpp:49
#define SWIG_OLDOBJ
Definition gv_ruby.cpp:424
SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata)
Definition gv_ruby.cpp:669
SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
Definition gv_ruby.cpp:744
SWIGINTERN VALUE _wrap_edge__SWIG_0(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:2572
#define SWIG_ValueError
Definition gv_ruby.cpp:881
bool renderchannel(Agraph_t *g, const char *format, const char *channelname)
Definition gv.cpp:654
Agraph_t * nextsupg(Agraph_t *g, Agraph_t *sg)
Definition gv.cpp:388
SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz)
Definition gv_ruby.cpp:841
#define SWIG_AddCast(r)
Definition gv_ruby.cpp:452
SWIGINTERN VALUE _wrap_setv__SWIG_3(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:2937
SWIGINTERN VALUE _wrap_nameof__SWIG_2(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:3549
#define SWIG_exception_fail(code, msg)
Definition gv_ruby.cpp:1879
SWIGRUNTIME void SWIG_Ruby_SetModule(swig_module_info *pointer)
Definition gv_ruby.cpp:1828
#define StringValuePtr(s)
Definition gv_ruby.cpp:1056
SWIGINTERN VALUE _wrap_digraph(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:2265
SWIGINTERN VALUE _wrap_ok__SWIG_0(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4128
Agedge_t * firstedge(Agraph_t *g)
Definition gv.cpp:415
SWIGEXPORT void Init_gv(void)
Definition gv_ruby.cpp:6498
SWIGINTERN VALUE _wrap_edge__SWIG_1(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:2604
#define SWIG_InitRuntime()
Definition gv_ruby.cpp:1454
#define SWIG_AttributeError
Definition gv_ruby.cpp:883
#define rb_undef_alloc_func(klass)
Definition gv_ruby.cpp:1070
Agraph_t * graphof(Agraph_t *g)
Definition gv.cpp:309
SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name)
Definition gv_ruby.cpp:828
SWIGINTERN VALUE _wrap_nextattr(int nargs, VALUE *args, VALUE self)
Definition gv_ruby.cpp:5513
static swig_module_info swig_module
Definition gv_ruby.cpp:1894
SWIGINTERN VALUE _wrap_graph__SWIG_1(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:2461
static ID swig_arity_id
Definition gv_ruby.cpp:1484
SWIGINTERN VALUE _wrap_graphof(int nargs, VALUE *args, VALUE self)
Definition gv_ruby.cpp:4007
SWIGINTERN VALUE _wrap_nextedge__SWIG_0(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4418
SWIGINTERN VALUE _wrap_firstattr__SWIG_1(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:5354
char * nameof(Agraph_t *g)
Definition gv.cpp:349
SWIGINTERN VALUE _wrap_firstin__SWIG_0(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4846
#define SWIG_SetModule(clientdata, pointer)
Definition gv_ruby.cpp:1442
#define SWIG_define_class(ty)
Definition gv_ruby.cpp:1455
SWIGRUNTIME void SWIG_RubyRemoveTracking(void *ptr)
Definition gv_ruby.cpp:1328
Agnode_t * firstnode(Agraph_t *g)
Definition gv.cpp:524
#define SWIG_INIT_CLIENT_DATA_TYPE
Definition gv_ruby.cpp:6311
#define SWIGUNUSEDPARM(p)
Definition gv_ruby.cpp:65
Agedge_t * firstout(Agraph_t *g)
Definition gv.cpp:390
SWIGINTERN VALUE _wrap_nextin__SWIG_0(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4870
SWIGINTERN VALUE _wrap_getv__SWIG_1(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:3230
#define SWIG_POINTER_RELEASE
Definition gv_ruby.cpp:320
SWIGINTERN VALUE _wrap_firstedge(int nargs, VALUE *args, VALUE self)
Definition gv_ruby.cpp:4529
SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
Definition gv_ruby.cpp:625
#define SWIG_as_voidptr(a)
Definition gv_ruby.cpp:1957
SWIGINTERN swig_type_info * SWIG_pchar_descriptor(void)
Definition gv_ruby.cpp:2158
SWIGINTERN VALUE _wrap_firstsubg(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4282
SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata)
Definition gv_ruby.cpp:685
SWIGRUNTIME void SWIG_RubyInitializeTrackings(void)
Definition gv_ruby.cpp:1270
SWIGINTERN VALUE _wrap_firstout(int nargs, VALUE *args, VALUE self)
Definition gv_ruby.cpp:4671
#define SWIG_POINTER_CLEAR
Definition gv_ruby.cpp:319
#define SWIG_ConvertPtr(obj, pptr, type, flags)
Definition gv_ruby.cpp:1416
SWIGRUNTIME int SWIG_TypeCmp(const char *nb, const char *tb)
Definition gv_ruby.cpp:536
SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz)
Definition gv_ruby.cpp:789
SWIGINTERN VALUE _wrap_headof(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:3888
SWIGINTERN VALUE _wrap_firstin__SWIG_1(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4902
SWIGINTERN VALUE _wrap_nextin__SWIG_1(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4964
SWIGINTERNINLINE VALUE SWIG_FromCharPtr(const char *cptr)
Definition gv_ruby.cpp:2225
SWIGINTERN VALUE _wrap_firstout__SWIG_1(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4648
SWIGINTERN VALUE _wrap_firstin(int nargs, VALUE *args, VALUE self)
Definition gv_ruby.cpp:4925
SWIGRUNTIMEINLINE char * SWIG_Ruby_MangleStr(VALUE obj)
Definition gv_ruby.cpp:1642
SWIGINTERN VALUE _wrap_rootof(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4056
SWIGINTERN VALUE _wrap_write__SWIG_0(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:6083
static swig_type_info * swig_types[7]
Definition gv_ruby.cpp:1893
SWIGINTERN VALUE _wrap_setv__SWIG_5(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:3023
SWIGINTERN VALUE _wrap_readstring(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:2346
SWIGINTERN VALUE _wrap_ok(int nargs, VALUE *args, VALUE self)
Definition gv_ruby.cpp:4223
SWIGINTERN VALUE _wrap_strictgraph(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:2292
SWIGINTERN VALUE getNullReferenceError(void)
Definition gv_ruby.cpp:1089
SWIGINTERN VALUE SWIG_Ruby_AppendOutput(VALUE target, VALUE o)
Definition gv_ruby.cpp:1376
SWIGRUNTIME void SWIG_RubyIterateTrackings(void(*meth)(void *ptr, VALUE obj))
Definition gv_ruby.cpp:1357
static swig_cast_info _swigc__p_char[]
Definition gv_ruby.cpp:6244
SWIGINTERN VALUE _wrap_strictdigraph(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:2319
SWIGINTERN int SWIG_Ruby_arity(VALUE proc, int minimal)
Definition gv_ruby.cpp:1859
#define SWIGINTERN
Definition gv_ruby.cpp:71
static st_table * swig_ruby_trackings
Definition gv_ruby.cpp:1262
bool layout(Agraph_t *g, const char *engine)
Definition gv.cpp:621
static swig_type_info _swigt__p_Agraph_t
Definition gv_ruby.cpp:6225
SWIGRUNTIME int SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, swig_ruby_owntype *own)
Definition gv_ruby.cpp:1668
SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
Definition gv_ruby.cpp:699
#define SWIG_ArgError(r)
Definition gv_ruby.cpp:414
SWIGINTERN VALUE _wrap_layout(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:5697
SWIGINTERN VALUE _wrap_ok__SWIG_3(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4200
SWIGINTERN VALUE _wrap_findattr__SWIG_2(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:3793
SWIGINTERN VALUE _wrap_nextedge__SWIG_1(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4568
SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name)
Definition gv_ruby.cpp:856
SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void *ptr)
Definition gv_ruby.cpp:1313
#define SWIG_NewPointerObj(ptr, type, flags)
Definition gv_ruby.cpp:1418
#define NUM2SWIG(x)
Definition gv_ruby.cpp:1251
SWIGINTERN VALUE _wrap_renderresult(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:5959
SWIGINTERN VALUE _wrap_findsubg(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:3621
SWIGINTERN VALUE _wrap_setv__SWIG_2(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:2891
SWIGINTERN VALUE _wrap_getv__SWIG_2(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:3265
Agsym_t * nextattr(Agraph_t *g, Agsym_t *a)
Definition gv.cpp:555
#define SWIG_POINTER_NO_NULL
Definition gv_ruby.cpp:318
Agnode_t * tailof(Agedge_t *e)
Definition gv.cpp:301
bool write(Agraph_t *g, const char *filename)
Definition gv.cpp:723
char * renderdata(Agraph_t *g, const char *format)
Definition gv.cpp:705
SWIGINTERN VALUE _wrap_tred(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:6197
SWIGINTERN VALUE _wrap_nextattr__SWIG_2(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:5482
#define SWIG_IOError
Definition gv_ruby.cpp:874
#define SWIG_NullReferenceError
Definition gv_ruby.cpp:885
SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty)
Definition gv_ruby.cpp:639
SWIGINTERN VALUE _wrap_firstattr__SWIG_0(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:5298
#define SWIG_POINTER_DISOWN
Definition gv_ruby.cpp:316
struct swig_type_info swig_type_info
#define VOIDFUNC(f)
Definition gv_ruby.cpp:1043
SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz)
Definition gv_ruby.cpp:817
Agnode_t * protonode(Agraph_t *g)
Definition gv.cpp:340
static ID swig_lowerthan_id
Definition gv_ruby.cpp:1486
SWIGINTERN VALUE _wrap_getv__SWIG_0(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:3195
SWIGRUNTIME VALUE SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type)
Definition gv_ruby.cpp:1631
static swig_cast_info _swigc__p_Agedge_t[]
Definition gv_ruby.cpp:6239
SWIGINTERN int SWIG_AsCharPtrAndSize(VALUE obj, char **cptr, size_t *psize, int *alloc)
Definition gv_ruby.cpp:2171
SWIGINTERN VALUE _wrap_renderchannel(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:6002
SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz)
Definition gv_ruby.cpp:773
SWIGINTERN VALUE _wrap_rm(int nargs, VALUE *args, VALUE self)
Definition gv_ruby.cpp:5648
SWIGINTERN VALUE _wrap_nameof__SWIG_0(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:3501
bool rm(Agraph_t *g)
Definition gv.cpp:590
SWIGINTERN VALUE _wrap_render__SWIG_2(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:5791
static VALUE _cSWIG_Pointer
Definition gv_ruby.cpp:1480
Agnode_t * findnode(Agraph_t *g, char *name)
Definition gv.cpp:259
#define SWIGTYPE_p_Agedge_t
Definition gv_ruby.cpp:1887
SWIGINTERN VALUE _wrap_graphof__SWIG_1(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:3960
Agnode_t * nexttail(Agnode_t *n, Agnode_t *t)
Definition gv.cpp:509
#define SWIG_MangleStr(value)
Definition gv_ruby.cpp:1457
SWIGRUNTIME void SWIG_RubyUnlinkObjects(void *ptr)
Definition gv_ruby.cpp:1336
#define SWIG_NEWOBJ
Definition gv_ruby.cpp:425
SWIGINTERN VALUE _wrap_rm__SWIG_0(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:5577
Agraph_t * firstsupg(Agraph_t *g)
Definition gv.cpp:386
SWIGRUNTIME void SWIG_Ruby_InitRuntime(void)
Definition gv_ruby.cpp:1545
#define SWIG_GetModule(clientdata)
Definition gv_ruby.cpp:1441
Agsym_t * findattr(Agraph_t *g, char *name)
Definition gv.cpp:273
#define SWIG_fail
Definition gv_ruby.cpp:1449
SWIGINTERN VALUE _wrap_nexthead(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4814
SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty)
Definition gv_ruby.cpp:590
SWIGRUNTIME void SWIG_PropagateClientData(void)
Definition gv_ruby.cpp:6463
SWIGINTERN VALUE _wrap_findattr__SWIG_1(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:3758
SWIGINTERN VALUE _wrap_firstout__SWIG_0(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4450
Agraph_t * digraph(char *name)
Definition gv.cpp:37
SWIGINTERN VALUE _wrap_nameof(int nargs, VALUE *args, VALUE self)
Definition gv_ruby.cpp:3572
SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type)
Definition gv_ruby.cpp:648
Agedge_t * firstin(Agraph_t *g)
Definition gv.cpp:467
SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty)
Definition gv_ruby.cpp:563
SWIGINTERN const char * Ruby_Format_TypeError(const char *msg, const char *type, const char *name, const int argn, VALUE input)
Definition gv_ruby.cpp:1168
SWIGINTERN VALUE _wrap_firstedge__SWIG_1(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4506
#define SWIG_ERROR_RELEASE_NOT_OWNED
Definition gv_ruby.cpp:411
SWIGINTERN VALUE _wrap_renderdata(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:6048
Agnode_t * nextnode(Agraph_t *g, Agnode_t *n)
Definition gv.cpp:530
#define SWIG_TYPE_TABLE_NAME
Definition gv_ruby.cpp:290
SWIGINTERN VALUE _wrap_nextout(int nargs, VALUE *args, VALUE self)
Definition gv_ruby.cpp:4741
#define SWIG_CAST_NEW_MEMORY
Definition gv_ruby.cpp:317
SWIGINTERN VALUE _wrap_graph(int nargs, VALUE *args, VALUE self)
Definition gv_ruby.cpp:2495
static swig_type_info _swigt__p_FILE
Definition gv_ruby.cpp:6227
Agedge_t * nextin(Agnode_t *n, Agedge_t *e)
Definition gv.cpp:494
Agraph_t * graph(char *name)
Definition gv.cpp:31
SWIGRUNTIME VALUE SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
Definition gv_ruby.cpp:1572
SWIGINTERN VALUE _wrap_getv__SWIG_5(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:3364
struct swig_module_info swig_module_info
SWIGINTERN VALUE _wrap_rm__SWIG_1(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:5601
#define RSTRING_LEN(x)
Definition gv_ruby.cpp:958
SWIGINTERN VALUE _wrap_nextout__SWIG_0(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4474
#define SWIG_ERROR
Definition gv_ruby.cpp:407
#define SWIGTYPE_p_FILE
Definition gv_ruby.cpp:1891
Agsym_t * firstattr(Agraph_t *g)
Definition gv.cpp:548
SWIGRUNTIME VALUE SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj)
Definition gv_ruby.cpp:1534
SWIGINTERN VALUE _wrap_edge(int nargs, VALUE *args, VALUE self)
Definition gv_ruby.cpp:2719
#define RTYPEDDATA_P(x)
Definition gv_ruby.cpp:1000
SWIGINTERN VALUE _wrap_render__SWIG_3(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:5834
SWIGINTERN VALUE _wrap_setv(int nargs, VALUE *args, VALUE self)
Definition gv_ruby.cpp:3065
SWIGINTERN VALUE _wrap_nextattr__SWIG_0(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:5322
SWIGRUNTIME swig_module_info * SWIG_Ruby_GetModule(void *SWIGUNUSEDPARM(clientdata))
Definition gv_ruby.cpp:1807
static swig_type_info * swig_type_initial[]
Definition gv_ruby.cpp:6230
SWIGINTERN VALUE _wrap_edge__SWIG_3(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:2674
SWIGRUNTIME void SWIG_Ruby_define_class(swig_type_info *type)
Definition gv_ruby.cpp:1557
static int swig_ruby_internal_iterate_callback(st_data_t ptr, st_data_t obj, st_data_t meth)
Definition gv_ruby.cpp:1352
SWIGINTERN VALUE _wrap_findattr(int nargs, VALUE *args, VALUE self)
Definition gv_ruby.cpp:3827
SWIGINTERN int SWIG_Ruby_isCallable(VALUE proc)
Definition gv_ruby.cpp:1846
SWIGRUNTIME swig_ruby_owntype SWIG_Ruby_AcquirePtr(VALUE obj, swig_ruby_owntype own)
Definition gv_ruby.cpp:1657
static swig_cast_info _swigc__p_Agsym_t[]
Definition gv_ruby.cpp:6242
SWIGINTERN VALUE SWIG_Ruby_ErrorType(int SWIG_code)
Definition gv_ruby.cpp:1112
#define SWIG_MemoryError
Definition gv_ruby.cpp:884
Agedge_t * nextedge(Agraph_t *g, Agedge_t *e)
Definition gv.cpp:417
SWIGINTERN VALUE _wrap_findattr__SWIG_0(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:3723
Agedge_t * findedge(Agnode_t *t, Agnode_t *h)
Definition gv.cpp:265
SWIGINTERN VALUE _wrap_node(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:2537
#define SWIG_SystemError
Definition gv_ruby.cpp:882
#define SWIG_DivisionByZero
Definition gv_ruby.cpp:878
SWIGINTERN VALUE _wrap_write(int nargs, VALUE *args, VALUE self)
Definition gv_ruby.cpp:6149
SWIGINTERN VALUE _wrap_edge__SWIG_2(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:2639
static swig_type_info _swigt__p_char
Definition gv_ruby.cpp:6228
#define SWIG_OverflowError
Definition gv_ruby.cpp:879
SWIGINTERN VALUE _wrap_firsttail(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:5044
SWIGINTERN VALUE _wrap_nextedge(int nargs, VALUE *args, VALUE self)
Definition gv_ruby.cpp:4599
#define SWIGEXPORT
Definition gv_ruby.cpp:99
SWIGINTERN VALUE _wrap_nextin(int nargs, VALUE *args, VALUE self)
Definition gv_ruby.cpp:4995
#define SWIG_IsOK(r)
Definition gv_ruby.cpp:413
SWIGINTERN VALUE _wrap_findedge(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:3691
SWIGRUNTIME VALUE SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type)
Definition gv_ruby.cpp:1774
SWIGINTERN VALUE _wrap_firstnode__SWIG_0(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:5100
SWIGRUNTIME int SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty)
Definition gv_ruby.cpp:1786
Agnode_t * firsthead(Agnode_t *n)
Definition gv.cpp:431
static swig_type_info _swigt__p_Agnode_t
Definition gv_ruby.cpp:6224
SWIGINTERN VALUE _wrap_graph__SWIG_0(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:2238
#define SWIG_IndexError
Definition gv_ruby.cpp:876
bool render(Agraph_t *g)
Definition gv.cpp:630
static VALUE mGv
Definition gv_ruby.cpp:1903
static swig_type_info _swigt__p_Agedge_t
Definition gv_ruby.cpp:6223
SWIGINTERN VALUE _wrap_write__SWIG_1(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:6118
SWIGINTERN VALUE _wrap_firsthead(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4790
#define SWIG_snprintf(O, S, F, A)
Definition gv_ruby.cpp:470
SWIGINTERN VALUE _wrap_nameof__SWIG_1(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:3525
#define SWIG_OK
Definition gv_ruby.cpp:405
SWIGINTERN VALUE _wrap_nextnode__SWIG_1(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:5218
Agnode_t * nexthead(Agnode_t *n, Agnode_t *h)
Definition gv.cpp:440
#define SWIG_ObjectPreviouslyDeletedError
Definition gv_ruby.cpp:1081
SWIGINTERN VALUE _wrap_nextsubg(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:4306
#define SWIGINTERNINLINE
Definition gv_ruby.cpp:76
SWIGINTERN VALUE _wrap_read(int nargs, VALUE *args, VALUE self)
Definition gv_ruby.cpp:2423
Agedge_t * protoedge(Agraph_t *g)
Definition gv.cpp:344
SWIGINTERN VALUE _wrap_findnode(int argc, VALUE *argv, VALUE self)
Definition gv_ruby.cpp:3656
#define SWIGRUNTIMEINLINE
Definition gv_ruby.cpp:307
SWIGINTERN void Ruby_Format_OverloadedError(const int argc, const int maxargs, const char *method, const char *prototypes)
Definition gv_ruby.cpp:1216
SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory)
Definition gv_ruby.cpp:617
#define SWIG_From_bool
Definition gv_tcl.cpp:2016
Graphviz context library.
GVIO_API const char * format
Definition gvio.h:51
static gvloadimage_engine_t engine
agxbuf * str
Definition htmlparse.c:97
static void mark(const stk_t *stk, Agnode_t *n)
set a mark on n
Definition ccomps.c:37
#define RDATA(n)
Definition patchwork.h:24
void *(* swig_converter_func)(void *, int *)
Definition runtime.h:360
struct swig_type_info *(* swig_dycast_func)(void **)
Definition runtime.h:361
void reset(sgraph *G)
Definition sgraph.c:29
graph or subgraph
Definition cgraph.h:425
string attribute descriptor symbol in Agattr_s.dict
Definition cgraph.h:639
swig_type_info * type
Definition gv_guile.cpp:372
struct swig_cast_info * prev
Definition gv_guile.cpp:375
struct swig_cast_info * next
Definition gv_guile.cpp:374
swig_converter_func converter
Definition gv_guile.cpp:373
void(* destroy)(void *)
Definition gv_ruby.cpp:1474
void(* mark)(void *)
Definition gv_ruby.cpp:1473
VALUE mImpl
Definition gv_ruby.cpp:1472
VALUE klass
Definition gv_ruby.cpp:1471
int trackObjects
Definition gv_ruby.cpp:1475
swig_type_info ** types
Definition gv_guile.cpp:382
swig_cast_info ** cast_initial
Definition gv_guile.cpp:386
swig_type_info ** type_initial
Definition gv_guile.cpp:385
struct swig_module_info * next
Definition gv_guile.cpp:384
void(* datafree)(void *)
Definition gv_ruby.cpp:1652
swig_dycast_func dcast
Definition gv_guile.cpp:364
void * clientdata
Definition gv_guile.cpp:366
const char * name
Definition gv_guile.cpp:362
const char * str
Definition gv_guile.cpp:363
struct swig_cast_info * cast
Definition gv_guile.cpp:365
static mytime_t T
Definition timing.c:41
Definition grammar.c:93
char * name
Definition grammar.c:98