10#define SWIG_VERSION 0x040200
19#ifndef SWIGTEMPLATEDISAMBIGUATOR
20# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
21# define SWIGTEMPLATEDISAMBIGUATOR template
22# elif defined(__HP_aCC)
25# define SWIGTEMPLATEDISAMBIGUATOR template
27# define SWIGTEMPLATEDISAMBIGUATOR
33# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
34# define SWIGINLINE inline
43# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
44# define SWIGUNUSED __attribute__ ((__unused__))
49# define SWIGUNUSED __attribute__ ((__unused__))
55#ifndef SWIG_MSC_UNSUPPRESS_4505
57# pragma warning(disable : 4505)
63# define SWIGUNUSEDPARM(p)
65# define SWIGUNUSEDPARM(p) p SWIGUNUSED
71# define SWIGINTERN static SWIGUNUSED
75#ifndef SWIGINTERNINLINE
76# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
81# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
82# ifndef GCC_HASCLASSVISIBILITY
83# define GCC_HASCLASSVISIBILITY
89# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
90# if defined(STATIC_LINKED)
93# define SWIGEXPORT __declspec(dllexport)
96# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
97# define SWIGEXPORT __attribute__ ((visibility("default")))
106# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
107# define SWIGSTDCALL __stdcall
114#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
115# define _CRT_SECURE_NO_DEPRECATE
119#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
120# define _SCL_SECURE_NO_DEPRECATE
124#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
125# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
133#ifdef __INTEL_COMPILER
134# pragma warning disable 592
137#if __cplusplus >=201103L
138# define SWIG_NULLPTR nullptr
140# define SWIG_NULLPTR NULL
149#ifndef SWIGTEMPLATEDISAMBIGUATOR
150# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
151# define SWIGTEMPLATEDISAMBIGUATOR template
152# elif defined(__HP_aCC)
155# define SWIGTEMPLATEDISAMBIGUATOR template
157# define SWIGTEMPLATEDISAMBIGUATOR
163# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
164# define SWIGINLINE inline
172# if defined(__GNUC__)
173# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
174# define SWIGUNUSED __attribute__ ((__unused__))
179# define SWIGUNUSED __attribute__ ((__unused__))
185#ifndef SWIG_MSC_UNSUPPRESS_4505
186# if defined(_MSC_VER)
187# pragma warning(disable : 4505)
191#ifndef SWIGUNUSEDPARM
193# define SWIGUNUSEDPARM(p)
195# define SWIGUNUSEDPARM(p) p SWIGUNUSED
201# define SWIGINTERN static SWIGUNUSED
205#ifndef SWIGINTERNINLINE
206# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
211# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
212# ifndef GCC_HASCLASSVISIBILITY
213# define GCC_HASCLASSVISIBILITY
219# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
220# if defined(STATIC_LINKED)
223# define SWIGEXPORT __declspec(dllexport)
226# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
227# define SWIGEXPORT __attribute__ ((visibility("default")))
236# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
237# define SWIGSTDCALL __stdcall
244#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
245# define _CRT_SECURE_NO_DEPRECATE
249#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
250# define _SCL_SECURE_NO_DEPRECATE
254#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
255# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
263#ifdef __INTEL_COMPILER
264# pragma warning disable 592
267#if __cplusplus >=201103L
268# define SWIG_NULLPTR nullptr
270# define SWIG_NULLPTR NULL
282#define SWIG_RUNTIME_VERSION "4"
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)
290# define SWIG_TYPE_TABLE_NAME
303# define SWIGRUNTIME SWIGINTERN
306#ifndef SWIGRUNTIMEINLINE
307# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
311#ifndef SWIG_BUFFER_SIZE
312# define SWIG_BUFFER_SIZE 1024
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)
323#define SWIG_POINTER_OWN 0x1
407#define SWIG_ERROR (-1)
411#define SWIG_ERROR_RELEASE_NOT_OWNED (-200)
413#define SWIG_IsOK(r) (r >= 0)
414#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
417#define SWIG_CASTRANKLIMIT (1 << 8)
419#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
421#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
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)
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))
436#if defined(SWIG_CASTRANK_MODE)
437# ifndef SWIG_TypeRank
438# define SWIG_TypeRank unsigned long
440# ifndef SWIG_MAXCASTRANK
441# define SWIG_MAXCASTRANK (2)
443# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
444# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
452# define SWIG_AddCast(r) (r)
453# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
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)
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)
480typedef void *(*swig_converter_func)(
void *,
int *);
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;
528 return (
int)((l1 - f1) - (l2 - f2));
538 const char* te = tb + strlen(tb);
540 while (equiv != 0 && *ne) {
541 for (nb = ne; *ne; ++ne) {
542 if (*ne ==
'|')
break;
567 if (strcmp(iter->
type->
name, c) == 0) {
568 if (iter == ty->
cast)
594 if (iter->
type == from) {
595 if (iter == ty->
cast)
627 if (!ty || !ty->
dcast)
return ty;
628 while (ty && (ty->
dcast)) {
629 ty = (*ty->
dcast)(ptr);
655 const char *last_name =
type->str;
658 if (*
s ==
'|') last_name =
s+1;
706 size_t r = iter->
size - 1;
709 size_t i = (l + r) >> 1;
710 const char *iname = iter->
types[i]->
name;
712 int compare = strcmp(name, iname);
714 return iter->
types[i];
730 }
while (iter != end);
757 for (; i < iter->
size; ++i) {
759 return iter->
types[i];
762 }
while (iter != end);
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];
790 unsigned char *u = (
unsigned char *) ptr;
791 const unsigned char *eu = u + sz;
792 for (; u != eu; ++u) {
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);
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));
819 if ((2*
sizeof(
void *) + 2) > bsz)
return 0;
822 if (strlen(name) + 1 > (bsz - (r - buff)))
return 0;
830 if (strcmp(c,
"NULL") == 0) {
843 size_t lname = (name ? strlen(name) : 0);
844 if ((2*sz + 2 + lname) > bsz)
return 0;
848 strncpy(r,name,lname+1);
858 if (strcmp(c,
"NULL") == 0) {
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
889#pragma GCC diagnostic push
890#if defined(__cplusplus)
891#pragma GCC diagnostic ignored "-Wregister"
893#pragma GCC diagnostic ignored "-Wvolatile"
895#pragma GCC diagnostic ignored "-Wdeprecated-enum-enum-conversion"
902#include <ruby/version.h>
905#pragma GCC diagnostic pop
937#define NUM2LL(x) NUM2LONG((x))
940#define LL2NUM(x) INT2NUM((long) (x))
943#define ULL2NUM(x) UINT2NUM((unsigned long) (x))
949#define NUM2ULL(x) rb_num2ull((x))
951#define NUM2ULL(x) NUM2ULONG(x)
958# define RSTRING_LEN(x) RSTRING(x)->len
961# define RSTRING_PTR(x) RSTRING(x)->ptr
964# define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x))
967# define RARRAY_LEN(x) RARRAY(x)->len
970# define RARRAY_PTR(x) RARRAY(x)->ptr
973# define RFLOAT_VALUE(x) RFLOAT(x)->value
976# define DOUBLE2NUM(x) rb_float_new(x)
979# define RHASH_TBL(x) (RHASH(x)->tbl)
981#ifndef RHASH_ITER_LEV
982# define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev)
985# define RHASH_IFNONE(x) (RHASH(x)->ifnone)
988# define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries)
991# define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0)
994# define RSTRUCT_LEN(x) RSTRUCT(x)->len
997# define RSTRUCT_PTR(x) RSTRUCT(x)->ptr
1000# define RTYPEDDATA_P(x) (TYPE(x) != T_DATA)
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))
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)
1049#ifndef RB_STRING_VALUE
1050#define RB_STRING_VALUE(s) (TYPE(s) == T_STRING ? (s) : (*(volatile VALUE *)&(s) = rb_str_to_str(s)))
1053#define StringValue(s) RB_STRING_VALUE(s)
1055#ifndef StringValuePtr
1056#define StringValuePtr(s) RSTRING_PTR(RB_STRING_VALUE(s))
1058#ifndef StringValueLen
1059#define StringValueLen(s) RSTRING_LEN(RB_STRING_VALUE(s))
1061#ifndef SafeStringValue
1062#define SafeStringValue(v) do {\
1064 rb_check_safe_str(v);\
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")
1081#define SWIG_ObjectPreviouslyDeletedError -100
1090 static int init = 0;
1091 static VALUE rb_eNullReferenceError ;
1094 rb_eNullReferenceError = rb_define_class(
"NullReferenceError", rb_eRuntimeError);
1096 return rb_eNullReferenceError;
1101 static int init = 0;
1102 static VALUE rb_eObjectPreviouslyDeleted ;
1105 rb_eObjectPreviouslyDeleted = rb_define_class(
"ObjectPreviouslyDeleted", rb_eRuntimeError);
1107 return rb_eObjectPreviouslyDeleted;
1114 switch (SWIG_code) {
1116 type = rb_eNoMemError;
1122 type = rb_eRuntimeError;
1125 type = rb_eIndexError;
1128 type = rb_eTypeError;
1131 type = rb_eZeroDivError;
1134 type = rb_eRangeError;
1137 type = rb_eSyntaxError;
1140 type = rb_eArgError;
1146 type = rb_eRuntimeError;
1155 type = rb_eRuntimeError;
1158 type = rb_eRuntimeError;
1179 str = rb_str_new2(msg);
1186 str = rb_str_cat2(
str,
"Expected argument " );
1188 str = rb_str_cat2(
str, buf );
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);
1197 str = rb_str_cat2(
str,
"..." );
1201 str = rb_str_append(
str, asStr );
1206 str = rb_str_cat2(
str,
"\n\tin SWIG method '" );
1207 str = rb_str_cat2(
str, name );
1208 str = rb_str_cat2(
str,
"'" );
1220 const char* prototypes
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);
1243#if !defined(ST_DATA_T_DEFINED)
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)
1256# error sizeof(void*) is not the same as long or long long
1280 VALUE trackings_value = Qnil;
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);
1293 if (trackings_value == Qnil) {
1301 rb_define_virtual_variable(
"SWIG_TRACKINGS_COUNT",
1339 if (
object != Qnil) {
1343 DATA_PTR(
object) = 0;
1353 ((void (*) (
void *, VALUE))meth)((
void *)ptr, (VALUE)obj);
1377 if (NIL_P(target)) {
1380 if (
TYPE(target) != T_ARRAY) {
1382 target = rb_ary_new();
1383 rb_ary_push(target, o2);
1385 rb_ary_push(target, o);
1391#ifndef RUBY_INIT_STACK
1393# define RUBY_INIT_STACK \
1394 VALUE variable_in_this_stack_frame; \
1395 Init_stack(&variable_in_this_stack_frame);
1413#define SWIG_POINTER_EXCEPTION 0
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
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)
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)
1431#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0)
1432#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0)
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)
1441#define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule(clientdata)
1442#define SWIG_SetModule(clientdata, pointer) SWIG_Ruby_SetModule(pointer)
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
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)
1474 void (*destroy)(
void *);
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;
1506 static unsigned int swig_virtual_calls = 0;
1510# define SWIG_INIT_STACK
1511# define SWIG_RELEASE_STACK
1512# define Ruby_DirectorTypeMismatchException(x) \
1513 throw Swig::DirectorTypeMismatchException( x );
1520 static int init = 0;
1521 static VALUE rubyExceptionClass ;
1524 rubyExceptionClass = rb_const_get(
_mSWIG, rb_intern(
"Exception"));
1526 return rubyExceptionClass;
1536 if (rb_obj_is_kind_of(obj, exceptionClass)) {
1539 return rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(obj));
1548 _mSWIG = rb_define_module(
"SWIG");
1559 size_t klass_len = 4 + strlen(
type->name) + 1;
1560 char *klass_name = (
char *)
malloc(klass_len);
1567 free((
void *) klass_name);
1585 if (
type->clientdata) {
1597 VALUE value = rb_iv_get(obj,
"@__swigtype__");
1600 if (strcmp(
type->name, type_name) == 0) {
1617 size_t klass_len = 4 + strlen(
type->name) + 1;
1618 klass_name = (
char *)
malloc(klass_len);
1620 klass = rb_const_get(
_mSWIG, rb_intern(klass_name));
1621 free((
void *) klass_name);
1622 obj = Data_Wrap_Struct(klass, 0, 0, ptr);
1624 rb_iv_set(obj,
"@__swigtype__", rb_str_new2(
type->name));
1636 rb_iv_set(obj,
"@__swigtype__", rb_str_new2(
type->name));
1644 VALUE stype = rb_iv_get(obj,
"@__swigtype__");
1652 void (*datafree)(
void *);
1683 Data_Get_Struct(obj,
void, vptr);
1692 if (!
RDATA(obj)->dfree)
1717 RDATA(obj)->dfree = 0;
1743 if (tc->
type == ty) {
1777 if ((2*sz + 1 + strlen(
type->name)) > 1000)
return 0;
1780 strcpy(r,
type->name);
1781 return rb_str_new2(result);
1790 if (
TYPE(obj) != T_STRING)
goto type_error;
1793 if (*c !=
'_')
goto type_error;
1798 if (!tc)
goto type_error;
1811 VALUE
verbose = rb_gv_get(
"VERBOSE");
1814 rb_gv_set(
"VERBOSE", Qfalse);
1818 if (pointer != Qnil) {
1823 rb_gv_set(
"VERBOSE",
verbose);
1831 VALUE cl = rb_define_class(
"swig_runtime_data", rb_cObject);
1864 int arity = NUM2INT(num);
1865 if ( arity < 0 && (arity+1) < -minimal )
return 1;
1866 if ( arity == minimal )
return 1;
1879#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
1881#define SWIG_contract_assert(expr, msg) do { if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } } while (0)
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]
1895#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1896#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1900#define SWIG_init Init_gv
1901#define SWIG_name "Gv"
1908template<
typename T>
class SwigValueWrapper {
1909 struct SwigSmartPointer {
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; }
1916 SwigValueWrapper& operator=(
const SwigValueWrapper<T>& rhs);
1917 SwigValueWrapper(
const SwigValueWrapper<T>& rhs);
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); }
1925 operator T&()
const {
return *pointer.ptr; }
1927 T *operator&()
const {
return pointer.ptr; }
1928 static void reset(SwigValueWrapper& t,
T *p) { t.pointer.reset(p); }
1940template <
typename T>
T SwigValueInit() {
1944#if __cplusplus >=201103L
1945# define SWIG_STD_MOVE(OBJ) std::move(OBJ)
1947# define SWIG_STD_MOVE(OBJ) OBJ
1953#define SWIG_RUBY_THREAD_BEGIN_BLOCK
1954#define SWIG_RUBY_THREAD_END_BLOCK
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))
2152 static int init = 0;
2165 if (
TYPE(obj) == T_STRING) {
2171 *cptr =
reinterpret_cast< char*
>(memcpy(
new char[size], cstr,
sizeof(
char)*(size)));
2178 if (psize) *psize = size;
2182 if (pchar_descriptor) {
2185 if (cptr) *cptr = (
char *)vptr;
2186 if (psize) *psize = vptr ? (strlen((
char*)vptr) + 1) : 0;
2203 if (size > LONG_MAX) {
2205 return pchar_descriptor ?
2208 return rb_str_new(carray,
static_cast< long >(size));
2226 return value ? Qtrue : Qfalse;
2231 char *arg1 = (
char *) 0 ;
2236 VALUE vresult = Qnil;
2238 if ((argc < 1) || (argc > 1)) {
2239 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
2245 arg1 =
reinterpret_cast< char *
>(buf1);
2258 char *arg1 = (
char *) 0 ;
2263 VALUE vresult = Qnil;
2265 if ((argc < 1) || (argc > 1)) {
2266 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
2272 arg1 =
reinterpret_cast< char *
>(buf1);
2285 char *arg1 = (
char *) 0 ;
2290 VALUE vresult = Qnil;
2292 if ((argc < 1) || (argc > 1)) {
2293 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
2299 arg1 =
reinterpret_cast< char *
>(buf1);
2312 char *arg1 = (
char *) 0 ;
2317 VALUE vresult = Qnil;
2319 if ((argc < 1) || (argc > 1)) {
2320 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
2326 arg1 =
reinterpret_cast< char *
>(buf1);
2339 char *arg1 = (
char *) 0 ;
2344 VALUE vresult = Qnil;
2346 if ((argc < 1) || (argc > 1)) {
2347 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
2353 arg1 =
reinterpret_cast< char *
>(buf1);
2366 char *arg1 = (
char *) 0 ;
2371 VALUE vresult = Qnil;
2373 if ((argc < 1) || (argc > 1)) {
2374 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
2380 arg1 =
reinterpret_cast< char *
>(buf1);
2393 FILE *arg1 = (FILE *) 0 ;
2397 VALUE vresult = Qnil;
2399 if ((argc < 1) || (argc > 1)) {
2400 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
2406 arg1 =
reinterpret_cast< FILE *
>(argp1);
2422 for (ii = 0; (ii < argc); ++ii) {
2423 argv[ii] = args[ii];
2445 " Agraph_t read(char const *filename)\n"
2446 " Agraph_t * read(FILE *f)\n");
2455 char *arg2 = (
char *) 0 ;
2462 VALUE vresult = Qnil;
2464 if ((argc < 2) || (argc > 2)) {
2465 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
2471 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
2476 arg2 =
reinterpret_cast< char *
>(buf2);
2494 for (ii = 0; (ii < argc); ++ii) {
2495 argv[ii] = args[ii];
2521 " Agraph_t graph(char *name)\n"
2522 " Agraph_t * graph(Agraph_t *g, char *name)\n");
2531 char *arg2 = (
char *) 0 ;
2538 VALUE vresult = Qnil;
2540 if ((argc < 2) || (argc > 2)) {
2541 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
2547 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
2552 arg2 =
reinterpret_cast< char *
>(buf2);
2572 VALUE vresult = Qnil;
2574 if ((argc < 2) || (argc > 2)) {
2575 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
2581 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
2586 arg2 =
reinterpret_cast< Agnode_t *
>(argp2);
2598 char *arg2 = (
char *) 0 ;
2605 VALUE vresult = Qnil;
2607 if ((argc < 2) || (argc > 2)) {
2608 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
2614 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
2619 arg2 =
reinterpret_cast< char *
>(buf2);
2632 char *arg1 = (
char *) 0 ;
2640 VALUE vresult = Qnil;
2642 if ((argc < 2) || (argc > 2)) {
2643 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
2649 arg1 =
reinterpret_cast< char *
>(buf1);
2654 arg2 =
reinterpret_cast< Agnode_t *
>(argp2);
2668 char *arg2 = (
char *) 0 ;
2669 char *arg3 = (
char *) 0 ;
2679 VALUE vresult = Qnil;
2681 if ((argc < 3) || (argc > 3)) {
2682 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 3)",argc);
SWIG_fail;
2688 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
2693 arg2 =
reinterpret_cast< char *
>(buf2);
2698 arg3 =
reinterpret_cast< char *
>(buf3);
2718 for (ii = 0; (ii < argc); ++ii) {
2719 argv[ii] = args[ii];
2781 " Agedge_t edge(Agnode_t *t, Agnode_t *h)\n"
2782 " Agedge_t edge(Agnode_t *t, char *hname)\n"
2783 " Agedge_t edge(char *tname, Agnode_t *h)\n"
2784 " Agedge_t * edge(Agraph_t *g, char *tname, char *hname)\n");
2793 char *arg2 = (
char *) 0 ;
2794 char *arg3 = (
char *) 0 ;
2804 VALUE vresult = Qnil;
2806 if ((argc < 3) || (argc > 3)) {
2807 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 3)",argc);
SWIG_fail;
2813 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
2818 arg2 =
reinterpret_cast< char *
>(buf2);
2823 arg3 =
reinterpret_cast< char *
>(buf3);
2824 result = (
char *)
setv(arg1,arg2,arg3);
2839 char *arg2 = (
char *) 0 ;
2840 char *arg3 = (
char *) 0 ;
2850 VALUE vresult = Qnil;
2852 if ((argc < 3) || (argc > 3)) {
2853 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 3)",argc);
SWIG_fail;
2859 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
2864 arg2 =
reinterpret_cast< char *
>(buf2);
2869 arg3 =
reinterpret_cast< char *
>(buf3);
2870 result = (
char *)
setv(arg1,arg2,arg3);
2885 char *arg2 = (
char *) 0 ;
2886 char *arg3 = (
char *) 0 ;
2896 VALUE vresult = Qnil;
2898 if ((argc < 3) || (argc > 3)) {
2899 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 3)",argc);
SWIG_fail;
2905 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
2910 arg2 =
reinterpret_cast< char *
>(buf2);
2915 arg3 =
reinterpret_cast< char *
>(buf3);
2916 result = (
char *)
setv(arg1,arg2,arg3);
2932 char *arg3 = (
char *) 0 ;
2941 VALUE vresult = Qnil;
2943 if ((argc < 3) || (argc > 3)) {
2944 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 3)",argc);
SWIG_fail;
2950 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
2955 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
2960 arg3 =
reinterpret_cast< char *
>(buf3);
2961 result = (
char *)
setv(arg1,arg2,arg3);
2975 char *arg3 = (
char *) 0 ;
2984 VALUE vresult = Qnil;
2986 if ((argc < 3) || (argc > 3)) {
2987 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 3)",argc);
SWIG_fail;
2993 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
2998 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
3003 arg3 =
reinterpret_cast< char *
>(buf3);
3004 result = (
char *)
setv(arg1,arg2,arg3);
3018 char *arg3 = (
char *) 0 ;
3027 VALUE vresult = Qnil;
3029 if ((argc < 3) || (argc > 3)) {
3030 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 3)",argc);
SWIG_fail;
3036 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
3041 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
3046 arg3 =
reinterpret_cast< char *
>(buf3);
3047 result = (
char *)
setv(arg1,arg2,arg3);
3064 for (ii = 0; (ii < argc); ++ii) {
3065 argv[ii] = args[ii];
3175 " char setv(Agraph_t *g, char *attr, char *val)\n"
3176 " char setv(Agnode_t *n, char *attr, char *val)\n"
3177 " char setv(Agedge_t *e, char *attr, char *val)\n"
3178 " char setv(Agraph_t *g, Agsym_t *a, char *val)\n"
3179 " char setv(Agnode_t *n, Agsym_t *a, char *val)\n"
3180 " char * setv(Agedge_t *e, Agsym_t *a, char *val)\n");
3189 char *arg2 = (
char *) 0 ;
3196 VALUE vresult = Qnil;
3198 if ((argc < 2) || (argc > 2)) {
3199 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3205 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
3210 arg2 =
reinterpret_cast< char *
>(buf2);
3211 result = (
char *)
getv(arg1,arg2);
3224 char *arg2 = (
char *) 0 ;
3231 VALUE vresult = Qnil;
3233 if ((argc < 2) || (argc > 2)) {
3234 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3240 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
3245 arg2 =
reinterpret_cast< char *
>(buf2);
3246 result = (
char *)
getv(arg1,arg2);
3259 char *arg2 = (
char *) 0 ;
3266 VALUE vresult = Qnil;
3268 if ((argc < 2) || (argc > 2)) {
3269 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3275 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
3280 arg2 =
reinterpret_cast< char *
>(buf2);
3281 result = (
char *)
getv(arg1,arg2);
3300 VALUE vresult = Qnil;
3302 if ((argc < 2) || (argc > 2)) {
3303 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3309 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
3314 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
3315 result = (
char *)
getv(arg1,arg2);
3332 VALUE vresult = Qnil;
3334 if ((argc < 2) || (argc > 2)) {
3335 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3341 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
3346 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
3347 result = (
char *)
getv(arg1,arg2);
3364 VALUE vresult = Qnil;
3366 if ((argc < 2) || (argc > 2)) {
3367 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3373 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
3378 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
3379 result = (
char *)
getv(arg1,arg2);
3394 for (ii = 0; (ii < argc); ++ii) {
3395 argv[ii] = args[ii];
3481 " char getv(Agraph_t *g, char *attr)\n"
3482 " char getv(Agnode_t *n, char *attr)\n"
3483 " char getv(Agedge_t *e, char *attr)\n"
3484 " char getv(Agraph_t *g, Agsym_t *a)\n"
3485 " char getv(Agnode_t *n, Agsym_t *a)\n"
3486 " char * getv(Agedge_t *e, Agsym_t *a)\n");
3498 VALUE vresult = Qnil;
3500 if ((argc < 1) || (argc > 1)) {
3501 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
3507 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
3508 result = (
char *)
nameof(arg1);
3522 VALUE vresult = Qnil;
3524 if ((argc < 1) || (argc > 1)) {
3525 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
3531 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
3532 result = (
char *)
nameof(arg1);
3546 VALUE vresult = Qnil;
3548 if ((argc < 1) || (argc > 1)) {
3549 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
3555 arg1 =
reinterpret_cast< Agsym_t *
>(argp1);
3556 result = (
char *)
nameof(arg1);
3571 for (ii = 0; (ii < argc); ++ii) {
3572 argv[ii] = args[ii];
3604 " char nameof(Agraph_t *g)\n"
3605 " char nameof(Agnode_t *n)\n"
3606 " char * nameof(Agsym_t *a)\n");
3615 char *arg2 = (
char *) 0 ;
3622 VALUE vresult = Qnil;
3624 if ((argc < 2) || (argc > 2)) {
3625 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3631 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
3636 arg2 =
reinterpret_cast< char *
>(buf2);
3650 char *arg2 = (
char *) 0 ;
3657 VALUE vresult = Qnil;
3659 if ((argc < 2) || (argc > 2)) {
3660 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3666 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
3671 arg2 =
reinterpret_cast< char *
>(buf2);
3691 VALUE vresult = Qnil;
3693 if ((argc < 2) || (argc > 2)) {
3694 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3700 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
3705 arg2 =
reinterpret_cast< Agnode_t *
>(argp2);
3717 char *arg2 = (
char *) 0 ;
3724 VALUE vresult = Qnil;
3726 if ((argc < 2) || (argc > 2)) {
3727 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3733 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
3738 arg2 =
reinterpret_cast< char *
>(buf2);
3752 char *arg2 = (
char *) 0 ;
3759 VALUE vresult = Qnil;
3761 if ((argc < 2) || (argc > 2)) {
3762 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3768 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
3773 arg2 =
reinterpret_cast< char *
>(buf2);
3787 char *arg2 = (
char *) 0 ;
3794 VALUE vresult = Qnil;
3796 if ((argc < 2) || (argc > 2)) {
3797 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3803 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
3808 arg2 =
reinterpret_cast< char *
>(buf2);
3826 for (ii = 0; (ii < argc); ++ii) {
3827 argv[ii] = args[ii];
3871 " Agsym_t findattr(Agraph_t *g, char *name)\n"
3872 " Agsym_t findattr(Agnode_t *n, char *name)\n"
3873 " Agsym_t * findattr(Agedge_t *e, char *name)\n");
3885 VALUE vresult = Qnil;
3887 if ((argc < 1) || (argc > 1)) {
3888 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
3894 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
3909 VALUE vresult = Qnil;
3911 if ((argc < 1) || (argc > 1)) {
3912 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
3918 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
3933 VALUE vresult = Qnil;
3935 if ((argc < 1) || (argc > 1)) {
3936 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
3942 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
3957 VALUE vresult = Qnil;
3959 if ((argc < 1) || (argc > 1)) {
3960 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
3966 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
3981 VALUE vresult = Qnil;
3983 if ((argc < 1) || (argc > 1)) {
3984 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
3990 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4006 for (ii = 0; (ii < argc); ++ii) {
4007 argv[ii] = args[ii];
4039 " Agraph_t graphof(Agraph_t *g)\n"
4040 " Agraph_t graphof(Agedge_t *e)\n"
4041 " Agraph_t * graphof(Agnode_t *n)\n");
4053 VALUE vresult = Qnil;
4055 if ((argc < 1) || (argc > 1)) {
4056 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4062 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4077 VALUE vresult = Qnil;
4079 if ((argc < 1) || (argc > 1)) {
4080 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4086 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4101 VALUE vresult = Qnil;
4103 if ((argc < 1) || (argc > 1)) {
4104 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4110 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4125 VALUE vresult = Qnil;
4127 if ((argc < 1) || (argc > 1)) {
4128 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4134 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4135 result = (bool)
ok(arg1);
4149 VALUE vresult = Qnil;
4151 if ((argc < 1) || (argc > 1)) {
4152 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4158 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4159 result = (bool)
ok(arg1);
4173 VALUE vresult = Qnil;
4175 if ((argc < 1) || (argc > 1)) {
4176 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4182 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
4183 result = (bool)
ok(arg1);
4197 VALUE vresult = Qnil;
4199 if ((argc < 1) || (argc > 1)) {
4200 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4206 arg1 =
reinterpret_cast< Agsym_t *
>(argp1);
4207 result = (bool)
ok(arg1);
4222 for (ii = 0; (ii < argc); ++ii) {
4223 argv[ii] = args[ii];
4264 " bool ok(Agraph_t *g)\n"
4265 " bool ok(Agnode_t *n)\n"
4266 " bool ok(Agedge_t *e)\n"
4267 " bool ok(Agsym_t *a)\n");
4279 VALUE vresult = Qnil;
4281 if ((argc < 1) || (argc > 1)) {
4282 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4288 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4306 VALUE vresult = Qnil;
4308 if ((argc < 2) || (argc > 2)) {
4309 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
4315 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4320 arg2 =
reinterpret_cast< Agraph_t *
>(argp2);
4335 VALUE vresult = Qnil;
4337 if ((argc < 1) || (argc > 1)) {
4338 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4344 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4362 VALUE vresult = Qnil;
4364 if ((argc < 2) || (argc > 2)) {
4365 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
4371 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4376 arg2 =
reinterpret_cast< Agraph_t *
>(argp2);
4391 VALUE vresult = Qnil;
4393 if ((argc < 1) || (argc > 1)) {
4394 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4400 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4418 VALUE vresult = Qnil;
4420 if ((argc < 2) || (argc > 2)) {
4421 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
4427 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4432 arg2 =
reinterpret_cast< Agedge_t *
>(argp2);
4447 VALUE vresult = Qnil;
4449 if ((argc < 1) || (argc > 1)) {
4450 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4456 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4474 VALUE vresult = Qnil;
4476 if ((argc < 2) || (argc > 2)) {
4477 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
4483 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4488 arg2 =
reinterpret_cast< Agedge_t *
>(argp2);
4503 VALUE vresult = Qnil;
4505 if ((argc < 1) || (argc > 1)) {
4506 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4512 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4528 for (ii = 0; (ii < argc); ++ii) {
4529 argv[ii] = args[ii];
4552 " Agedge_t firstedge(Agraph_t *g)\n"
4553 " Agedge_t * firstedge(Agnode_t *n)\n");
4568 VALUE vresult = Qnil;
4570 if ((argc < 2) || (argc > 2)) {
4571 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
4577 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4582 arg2 =
reinterpret_cast< Agedge_t *
>(argp2);
4598 for (ii = 0; (ii < argc); ++ii) {
4599 argv[ii] = args[ii];
4632 " Agedge_t nextedge(Agraph_t *g, Agedge_t *e)\n"
4633 " Agedge_t * nextedge(Agnode_t *n, Agedge_t *e)\n");
4645 VALUE vresult = Qnil;
4647 if ((argc < 1) || (argc > 1)) {
4648 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4654 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4670 for (ii = 0; (ii < argc); ++ii) {
4671 argv[ii] = args[ii];
4694 " Agedge_t firstout(Agraph_t *g)\n"
4695 " Agedge_t * firstout(Agnode_t *n)\n");
4710 VALUE vresult = Qnil;
4712 if ((argc < 2) || (argc > 2)) {
4713 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
4719 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4724 arg2 =
reinterpret_cast< Agedge_t *
>(argp2);
4740 for (ii = 0; (ii < argc); ++ii) {
4741 argv[ii] = args[ii];
4774 " Agedge_t nextout(Agraph_t *g, Agedge_t *e)\n"
4775 " Agedge_t * nextout(Agnode_t *n, Agedge_t *e)\n");
4787 VALUE vresult = Qnil;
4789 if ((argc < 1) || (argc > 1)) {
4790 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4796 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4814 VALUE vresult = Qnil;
4816 if ((argc < 2) || (argc > 2)) {
4817 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
4823 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4828 arg2 =
reinterpret_cast< Agnode_t *
>(argp2);
4843 VALUE vresult = Qnil;
4845 if ((argc < 1) || (argc > 1)) {
4846 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4852 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4870 VALUE vresult = Qnil;
4872 if ((argc < 2) || (argc > 2)) {
4873 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
4879 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4884 arg2 =
reinterpret_cast< Agedge_t *
>(argp2);
4899 VALUE vresult = Qnil;
4901 if ((argc < 1) || (argc > 1)) {
4902 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4908 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4924 for (ii = 0; (ii < argc); ++ii) {
4925 argv[ii] = args[ii];
4948 " Agedge_t firstin(Agraph_t *g)\n"
4949 " Agedge_t * firstin(Agnode_t *n)\n");
4964 VALUE vresult = Qnil;
4966 if ((argc < 2) || (argc > 2)) {
4967 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
4973 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4978 arg2 =
reinterpret_cast< Agedge_t *
>(argp2);
4994 for (ii = 0; (ii < argc); ++ii) {
4995 argv[ii] = args[ii];
5028 " Agedge_t nextin(Agnode_t *n, Agedge_t *e)\n"
5029 " Agedge_t * nextin(Agraph_t *g, Agedge_t *e)\n");
5041 VALUE vresult = Qnil;
5043 if ((argc < 1) || (argc > 1)) {
5044 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
5050 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
5068 VALUE vresult = Qnil;
5070 if ((argc < 2) || (argc > 2)) {
5071 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
5077 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
5082 arg2 =
reinterpret_cast< Agnode_t *
>(argp2);
5097 VALUE vresult = Qnil;
5099 if ((argc < 1) || (argc > 1)) {
5100 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
5106 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5124 VALUE vresult = Qnil;
5126 if ((argc < 2) || (argc > 2)) {
5127 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
5133 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5138 arg2 =
reinterpret_cast< Agnode_t *
>(argp2);
5153 VALUE vresult = Qnil;
5155 if ((argc < 1) || (argc > 1)) {
5156 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
5162 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
5178 for (ii = 0; (ii < argc); ++ii) {
5179 argv[ii] = args[ii];
5202 " Agnode_t firstnode(Agraph_t *g)\n"
5203 " Agnode_t * firstnode(Agedge_t *e)\n");
5218 VALUE vresult = Qnil;
5220 if ((argc < 2) || (argc > 2)) {
5221 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
5227 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
5232 arg2 =
reinterpret_cast< Agnode_t *
>(argp2);
5248 for (ii = 0; (ii < argc); ++ii) {
5249 argv[ii] = args[ii];
5282 " Agnode_t nextnode(Agraph_t *g, Agnode_t *n)\n"
5283 " Agnode_t * nextnode(Agedge_t *e, Agnode_t *n)\n");
5295 VALUE vresult = Qnil;
5297 if ((argc < 1) || (argc > 1)) {
5298 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
5304 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5322 VALUE vresult = Qnil;
5324 if ((argc < 2) || (argc > 2)) {
5325 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
5331 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5336 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
5351 VALUE vresult = Qnil;
5353 if ((argc < 1) || (argc > 1)) {
5354 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
5360 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
5378 VALUE vresult = Qnil;
5380 if ((argc < 2) || (argc > 2)) {
5381 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
5387 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
5392 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
5407 VALUE vresult = Qnil;
5409 if ((argc < 1) || (argc > 1)) {
5410 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
5416 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
5432 for (ii = 0; (ii < argc); ++ii) {
5433 argv[ii] = args[ii];
5465 " Agsym_t firstattr(Agraph_t *g)\n"
5466 " Agsym_t firstattr(Agedge_t *e)\n"
5467 " Agsym_t * firstattr(Agnode_t *n)\n");
5482 VALUE vresult = Qnil;
5484 if ((argc < 2) || (argc > 2)) {
5485 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
5491 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
5496 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
5512 for (ii = 0; (ii < argc); ++ii) {
5513 argv[ii] = args[ii];
5560 " Agsym_t nextattr(Agraph_t *g, Agsym_t *a)\n"
5561 " Agsym_t nextattr(Agedge_t *e, Agsym_t *a)\n"
5562 " Agsym_t * nextattr(Agnode_t *n, Agsym_t *a)\n");
5574 VALUE vresult = Qnil;
5576 if ((argc < 1) || (argc > 1)) {
5577 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
5583 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5584 result = (bool)
rm(arg1);
5598 VALUE vresult = Qnil;
5600 if ((argc < 1) || (argc > 1)) {
5601 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
5607 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
5608 result = (bool)
rm(arg1);
5622 VALUE vresult = Qnil;
5624 if ((argc < 1) || (argc > 1)) {
5625 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
5631 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
5632 result = (bool)
rm(arg1);
5647 for (ii = 0; (ii < argc); ++ii) {
5648 argv[ii] = args[ii];
5680 " bool rm(Agraph_t *g)\n"
5681 " bool rm(Agnode_t *n)\n"
5682 " bool rm(Agedge_t *e)\n");
5691 char *arg2 = (
char *) 0 ;
5698 VALUE vresult = Qnil;
5700 if ((argc < 2) || (argc > 2)) {
5701 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
5707 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5712 arg2 =
reinterpret_cast< char *
>(buf2);
5713 result = (bool)
layout(arg1,(
char const *)arg2);
5729 VALUE vresult = Qnil;
5731 if ((argc < 1) || (argc > 1)) {
5732 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
5738 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5739 result = (bool)
render(arg1);
5750 char *arg2 = (
char *) 0 ;
5757 VALUE vresult = Qnil;
5759 if ((argc < 2) || (argc > 2)) {
5760 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
5766 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5771 arg2 =
reinterpret_cast< char *
>(buf2);
5772 result = (bool)
render(arg1,(
char const *)arg2);
5785 char *arg2 = (
char *) 0 ;
5786 FILE *arg3 = (FILE *) 0 ;
5795 VALUE vresult = Qnil;
5797 if ((argc < 3) || (argc > 3)) {
5798 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 3)",argc);
SWIG_fail;
5804 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5809 arg2 =
reinterpret_cast< char *
>(buf2);
5814 arg3 =
reinterpret_cast< FILE *
>(argp3);
5815 result = (bool)
render(arg1,(
char const *)arg2,arg3);
5828 char *arg2 = (
char *) 0 ;
5829 char *arg3 = (
char *) 0 ;
5839 VALUE vresult = Qnil;
5841 if ((argc < 3) || (argc > 3)) {
5842 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 3)",argc);
SWIG_fail;
5848 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5853 arg2 =
reinterpret_cast< char *
>(buf2);
5858 arg3 =
reinterpret_cast< char *
>(buf3);
5859 result = (bool)
render(arg1,(
char const *)arg2,(
char const *)arg3);
5878 for (ii = 0; (ii < argc); ++ii) {
5879 argv[ii] = args[ii];
5941 " bool render(Agraph_t *g)\n"
5942 " bool render(Agraph_t *g, char const *format)\n"
5943 " bool render(Agraph_t *g, char const *format, FILE *fout)\n"
5944 " bool render(Agraph_t *g, char const *format, char const *filename)\n");
5953 char *arg2 = (
char *) 0 ;
5954 char *arg3 = (
char *) 0 ;
5964 if ((argc < 3) || (argc > 3)) {
5965 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 3)",argc);
SWIG_fail;
5971 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5976 arg2 =
reinterpret_cast< char *
>(buf2);
5981 arg3 =
reinterpret_cast< char *
>(buf3);
5996 char *arg2 = (
char *) 0 ;
5997 char *arg3 = (
char *) 0 ;
6007 VALUE vresult = Qnil;
6009 if ((argc < 3) || (argc > 3)) {
6010 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 3)",argc);
SWIG_fail;
6016 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
6021 arg2 =
reinterpret_cast< char *
>(buf2);
6026 arg3 =
reinterpret_cast< char *
>(buf3);
6027 result = (bool)
renderchannel(arg1,(
char const *)arg2,(
char const *)arg3);
6042 char *arg2 = (
char *) 0 ;
6049 VALUE vresult = Qnil;
6051 if ((argc < 2) || (argc > 2)) {
6052 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
6058 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
6063 arg2 =
reinterpret_cast< char *
>(buf2);
6064 result = (
char *)
renderdata(arg1,(
char const *)arg2);
6077 char *arg2 = (
char *) 0 ;
6084 VALUE vresult = Qnil;
6086 if ((argc < 2) || (argc > 2)) {
6087 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
6093 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
6098 arg2 =
reinterpret_cast< char *
>(buf2);
6099 result = (bool)
write(arg1,(
char const *)arg2);
6112 FILE *arg2 = (FILE *) 0 ;
6118 VALUE vresult = Qnil;
6120 if ((argc < 2) || (argc > 2)) {
6121 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
6127 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
6132 arg2 =
reinterpret_cast< FILE *
>(argp2);
6133 result = (bool)
write(arg1,arg2);
6148 for (ii = 0; (ii < argc); ++ii) {
6149 argv[ii] = args[ii];
6181 " bool write(Agraph_t *g, char const *filename)\n"
6182 " bool write(Agraph_t *g, FILE *f)\n");
6194 VALUE vresult = Qnil;
6196 if ((argc < 1) || (argc > 1)) {
6197 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
6203 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
6204 result = (bool)
tred(arg1);
6299#define SWIGRUNTIME_DEBUG
6302#ifndef SWIG_INIT_CLIENT_DATA_TYPE
6303#define SWIG_INIT_CLIENT_DATA_TYPE void *
6338 }
while (iter!= module_head);
6349 if (
init == 0)
return;
6352#ifdef SWIGRUNTIME_DEBUG
6353 printf(
"SWIG_InitializeModule: size %lu\n", (
unsigned long)
swig_module.
size);
6360#ifdef SWIGRUNTIME_DEBUG
6370#ifdef SWIGRUNTIME_DEBUG
6371 printf(
"SWIG_InitializeModule: found type %s\n",
type->name);
6375#ifdef SWIGRUNTIME_DEBUG
6376 printf(
"SWIG_InitializeModule: found and overwrite type %s \n",
type->name);
6385 while (cast->
type) {
6389#ifdef SWIGRUNTIME_DEBUG
6390 printf(
"SWIG_InitializeModule: look cast %s\n", cast->
type->
name);
6394#ifdef SWIGRUNTIME_DEBUG
6395 if (ret) printf(
"SWIG_InitializeModule: found cast %s\n", ret->
name);
6400#ifdef SWIGRUNTIME_DEBUG
6401 printf(
"SWIG_InitializeModule: skip old type %s\n", ret->
name);
6408#ifdef SWIGRUNTIME_DEBUG
6409 if (ocast) printf(
"SWIG_InitializeModule: skip old cast %s\n", ret->
name);
6411 if (!ocast) ret = 0;
6416#ifdef SWIGRUNTIME_DEBUG
6417 printf(
"SWIG_InitializeModule: adding cast %s\n", cast->
type->
name);
6420 type->cast->prev = cast;
6432#ifdef SWIGRUNTIME_DEBUG
6433 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
6438 while (cast->
type) {
6439 printf(
"SWIG_InitializeModule: cast type %s\n", cast->
type->
name);
6443 printf(
"---- Total casts: %d\n",j);
6445 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
6458 static int init_run = 0;
6460 if (init_run)
return;
6471 equiv = equiv->
next;
6494 mGv = rb_define_module(
"Gv");
int compare(Agobj_t *l, Agobj_t *r)
static void init(int argc, char *argv[], double *angle, double *accuracy, int *check_edges_with_same_endpoint, int *seed, const char **color_scheme, int *lightness)
SWIGINTERN VALUE _wrap_getv__SWIG_4(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_setv__SWIG_4(int argc, VALUE *argv, VALUE self)
SWIGRUNTIME void SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata)
static swig_type_info _swigt__p_Agsym_t
SWIGINTERN VALUE getObjectPreviouslyDeletedError(void)
static swig_cast_info _swigc__p_Agraph_t[]
SWIGINTERN VALUE _wrap_rm__SWIG_2(int argc, VALUE *argv, VALUE self)
SWIGRUNTIME VALUE getExceptionClass(void)
SWIGINTERN VALUE _wrap_firstnode__SWIG_1(int argc, VALUE *argv, VALUE self)
static swig_cast_info * swig_cast_initial[]
Agraph_t * firstsubg(Agraph_t *g)
SWIGINTERN VALUE _wrap_getv__SWIG_3(int argc, VALUE *argv, VALUE self)
Agraph_t * read(const char *filename)
Agraph_t * nextsubg(Agraph_t *g, Agraph_t *sg)
Agraph_t * readstring(char *string)
SWIGRUNTIMEINLINE int SWIG_Ruby_CheckConvert(VALUE obj, swig_type_info *ty)
SWIGINTERN VALUE _wrap_setv__SWIG_1(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_nextnode__SWIG_0(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_graphof__SWIG_2(int argc, VALUE *argv, VALUE self)
char * getv(Agraph_t *g, char *attr)
SWIGINTERN VALUE _wrap_protoedge(int argc, VALUE *argv, VALUE self)
Agraph_t * findsubg(Agraph_t *g, char *name)
#define SWIG_TypeQuery(name)
SWIGINTERN VALUE _wrap_read__SWIG_0(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_firstnode(int nargs, VALUE *args, VALUE self)
SWIGINTERN VALUE _wrap_firstsupg(int argc, VALUE *argv, VALUE self)
void renderresult(Agraph_t *g, const char *format, char *outdata)
SWIGINTERN VALUE _wrap_nextsupg(int argc, VALUE *argv, VALUE self)
#define SWIG_CheckState(r)
SWIGINTERN VALUE _wrap_tailof(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_render(int nargs, VALUE *args, VALUE self)
static swig_cast_info _swigc__p_FILE[]
SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb)
SWIGINTERN VALUE _wrap_nexttail(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_setv__SWIG_0(int argc, VALUE *argv, VALUE self)
#define SWIG_RUBY_INT_ANYARGS_FUNC(f)
RUBY_EXTERN void Init_stack(VALUE *addr)
static VALUE swig_runtime_data_type_pointer
#define SWIGTYPE_p_Agnode_t
SWIGINTERN VALUE _wrap_nextout__SWIG_1(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_nextattr__SWIG_1(int argc, VALUE *argv, VALUE self)
struct swig_cast_info swig_cast_info
SWIGINTERN VALUE _wrap_firstattr__SWIG_2(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_getv(int nargs, VALUE *args, VALUE self)
SWIGRUNTIME void SWIG_RubyAddTracking(void *ptr, VALUE object)
SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2)
Agraph_t * strictgraph(char *name)
SWIGINTERN VALUE _wrap_render__SWIG_1(int argc, VALUE *argv, VALUE self)
static VALUE swig_ruby_trackings_count(ID id, VALUE *var)
SWIGINTERN VALUE _wrap_protonode(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_ok__SWIG_2(int argc, VALUE *argv, VALUE self)
char * setv(Agraph_t *g, char *attr, char *val)
#define SWIG_RuntimeError
Agedge_t * nextout(Agraph_t *g, Agedge_t *e)
SWIGINTERN VALUE _wrap_graphof__SWIG_0(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_nextnode(int nargs, VALUE *args, VALUE self)
#define SWIG_RUBY_VOID_ANYARGS_FUNC(f)
Agraph_t * rootof(Agraph_t *g)
static swig_cast_info _swigc__p_Agnode_t[]
SWIGINTERN VALUE _wrap_firstattr(int nargs, VALUE *args, VALUE self)
SWIGINTERN VALUE _wrap_render__SWIG_0(int argc, VALUE *argv, VALUE self)
Agnode_t * headof(Agedge_t *e)
SWIGINTERNINLINE VALUE SWIG_FromCharPtrAndSize(const char *carray, size_t size)
SWIGINTERN VALUE _wrap_firstedge__SWIG_0(int argc, VALUE *argv, VALUE self)
#define SWIGTYPE_p_Agraph_t
#define SWIG_UnknownError
Agnode_t * firsttail(Agnode_t *n)
SWIGINTERN VALUE _wrap_ok__SWIG_1(int argc, VALUE *argv, VALUE self)
#define SWIG_RUNTIME_VERSION
#define SWIGTYPE_p_Agsym_t
SWIGINTERN VALUE _wrap_read__SWIG_1(int argc, VALUE *argv, VALUE self)
Agraph_t * strictdigraph(char *name)
SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata)
SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
SWIGINTERN VALUE _wrap_edge__SWIG_0(int argc, VALUE *argv, VALUE self)
bool renderchannel(Agraph_t *g, const char *format, const char *channelname)
Agraph_t * nextsupg(Agraph_t *g, Agraph_t *sg)
SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz)
SWIGINTERN VALUE _wrap_setv__SWIG_3(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_nameof__SWIG_2(int argc, VALUE *argv, VALUE self)
#define SWIG_exception_fail(code, msg)
SWIGRUNTIME void SWIG_Ruby_SetModule(swig_module_info *pointer)
#define StringValuePtr(s)
SWIGINTERN VALUE _wrap_digraph(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_ok__SWIG_0(int argc, VALUE *argv, VALUE self)
Agedge_t * firstedge(Agraph_t *g)
SWIGEXPORT void Init_gv(void)
SWIGINTERN VALUE _wrap_edge__SWIG_1(int argc, VALUE *argv, VALUE self)
#define SWIG_InitRuntime()
#define SWIG_AttributeError
#define rb_undef_alloc_func(klass)
Agraph_t * graphof(Agraph_t *g)
SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name)
SWIGINTERN VALUE _wrap_nextattr(int nargs, VALUE *args, VALUE self)
static swig_module_info swig_module
SWIGINTERN VALUE _wrap_graph__SWIG_1(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_graphof(int nargs, VALUE *args, VALUE self)
SWIGINTERN VALUE _wrap_nextedge__SWIG_0(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_firstattr__SWIG_1(int argc, VALUE *argv, VALUE self)
char * nameof(Agraph_t *g)
SWIGINTERN VALUE _wrap_firstin__SWIG_0(int argc, VALUE *argv, VALUE self)
#define SWIG_SetModule(clientdata, pointer)
#define SWIG_define_class(ty)
SWIGRUNTIME void SWIG_RubyRemoveTracking(void *ptr)
Agnode_t * firstnode(Agraph_t *g)
#define SWIG_INIT_CLIENT_DATA_TYPE
#define SWIGUNUSEDPARM(p)
Agedge_t * firstout(Agraph_t *g)
SWIGINTERN VALUE _wrap_nextin__SWIG_0(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_getv__SWIG_1(int argc, VALUE *argv, VALUE self)
#define SWIG_POINTER_RELEASE
SWIGINTERN VALUE _wrap_firstedge(int nargs, VALUE *args, VALUE self)
SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
#define SWIG_as_voidptr(a)
SWIGINTERN swig_type_info * SWIG_pchar_descriptor(void)
SWIGINTERN VALUE _wrap_firstsubg(int argc, VALUE *argv, VALUE self)
SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata)
SWIGRUNTIME void SWIG_RubyInitializeTrackings(void)
SWIGINTERN VALUE _wrap_firstout(int nargs, VALUE *args, VALUE self)
#define SWIG_POINTER_CLEAR
#define SWIG_ConvertPtr(obj, pptr, type, flags)
SWIGRUNTIME int SWIG_TypeCmp(const char *nb, const char *tb)
SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz)
SWIGINTERN VALUE _wrap_headof(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_firstin__SWIG_1(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_nextin__SWIG_1(int argc, VALUE *argv, VALUE self)
SWIGINTERNINLINE VALUE SWIG_FromCharPtr(const char *cptr)
SWIGINTERN VALUE _wrap_firstout__SWIG_1(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_firstin(int nargs, VALUE *args, VALUE self)
SWIGRUNTIMEINLINE char * SWIG_Ruby_MangleStr(VALUE obj)
SWIGINTERN VALUE _wrap_rootof(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_write__SWIG_0(int argc, VALUE *argv, VALUE self)
static swig_type_info * swig_types[7]
SWIGINTERN VALUE _wrap_setv__SWIG_5(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_readstring(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_ok(int nargs, VALUE *args, VALUE self)
SWIGINTERN VALUE _wrap_strictgraph(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE getNullReferenceError(void)
SWIGINTERN VALUE SWIG_Ruby_AppendOutput(VALUE target, VALUE o)
SWIGRUNTIME void SWIG_RubyIterateTrackings(void(*meth)(void *ptr, VALUE obj))
static swig_cast_info _swigc__p_char[]
SWIGINTERN VALUE _wrap_strictdigraph(int argc, VALUE *argv, VALUE self)
SWIGINTERN int SWIG_Ruby_arity(VALUE proc, int minimal)
static st_table * swig_ruby_trackings
bool layout(Agraph_t *g, const char *engine)
static swig_type_info _swigt__p_Agraph_t
SWIGRUNTIME int SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, swig_ruby_owntype *own)
SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
SWIGINTERN VALUE _wrap_layout(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_ok__SWIG_3(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_findattr__SWIG_2(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_nextedge__SWIG_1(int argc, VALUE *argv, VALUE self)
SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name)
SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void *ptr)
#define SWIG_NewPointerObj(ptr, type, flags)
SWIGINTERN VALUE _wrap_renderresult(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_findsubg(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_setv__SWIG_2(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_getv__SWIG_2(int argc, VALUE *argv, VALUE self)
Agsym_t * nextattr(Agraph_t *g, Agsym_t *a)
#define SWIG_POINTER_NO_NULL
Agnode_t * tailof(Agedge_t *e)
bool write(Agraph_t *g, const char *filename)
char * renderdata(Agraph_t *g, const char *format)
SWIGINTERN VALUE _wrap_tred(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_nextattr__SWIG_2(int argc, VALUE *argv, VALUE self)
#define SWIG_NullReferenceError
SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty)
SWIGINTERN VALUE _wrap_firstattr__SWIG_0(int argc, VALUE *argv, VALUE self)
#define SWIG_POINTER_DISOWN
struct swig_type_info swig_type_info
SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz)
Agnode_t * protonode(Agraph_t *g)
static ID swig_lowerthan_id
SWIGINTERN VALUE _wrap_getv__SWIG_0(int argc, VALUE *argv, VALUE self)
SWIGRUNTIME VALUE SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type)
static swig_cast_info _swigc__p_Agedge_t[]
SWIGINTERN int SWIG_AsCharPtrAndSize(VALUE obj, char **cptr, size_t *psize, int *alloc)
SWIGINTERN VALUE _wrap_renderchannel(int argc, VALUE *argv, VALUE self)
SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz)
SWIGINTERN VALUE _wrap_rm(int nargs, VALUE *args, VALUE self)
SWIGINTERN VALUE _wrap_nameof__SWIG_0(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_render__SWIG_2(int argc, VALUE *argv, VALUE self)
static VALUE _cSWIG_Pointer
Agnode_t * findnode(Agraph_t *g, char *name)
#define SWIGTYPE_p_Agedge_t
SWIGINTERN VALUE _wrap_graphof__SWIG_1(int argc, VALUE *argv, VALUE self)
Agnode_t * nexttail(Agnode_t *n, Agnode_t *t)
#define SWIG_MangleStr(value)
SWIGRUNTIME void SWIG_RubyUnlinkObjects(void *ptr)
SWIGINTERN VALUE _wrap_rm__SWIG_0(int argc, VALUE *argv, VALUE self)
Agraph_t * firstsupg(Agraph_t *g)
SWIGRUNTIME void SWIG_Ruby_InitRuntime(void)
#define SWIG_GetModule(clientdata)
Agsym_t * findattr(Agraph_t *g, char *name)
SWIGINTERN VALUE _wrap_nexthead(int argc, VALUE *argv, VALUE self)
SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty)
SWIGRUNTIME void SWIG_PropagateClientData(void)
SWIGINTERN VALUE _wrap_findattr__SWIG_1(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_firstout__SWIG_0(int argc, VALUE *argv, VALUE self)
Agraph_t * digraph(char *name)
SWIGINTERN VALUE _wrap_nameof(int nargs, VALUE *args, VALUE self)
SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type)
Agedge_t * firstin(Agraph_t *g)
SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty)
SWIGINTERN const char * Ruby_Format_TypeError(const char *msg, const char *type, const char *name, const int argn, VALUE input)
SWIGINTERN VALUE _wrap_firstedge__SWIG_1(int argc, VALUE *argv, VALUE self)
#define SWIG_ERROR_RELEASE_NOT_OWNED
SWIGINTERN VALUE _wrap_renderdata(int argc, VALUE *argv, VALUE self)
Agnode_t * nextnode(Agraph_t *g, Agnode_t *n)
#define SWIG_TYPE_TABLE_NAME
SWIGINTERN VALUE _wrap_nextout(int nargs, VALUE *args, VALUE self)
#define SWIG_CAST_NEW_MEMORY
SWIGINTERN VALUE _wrap_graph(int nargs, VALUE *args, VALUE self)
static swig_type_info _swigt__p_FILE
Agedge_t * nextin(Agnode_t *n, Agedge_t *e)
Agraph_t * graph(char *name)
SWIGRUNTIME VALUE SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
SWIGINTERN VALUE _wrap_getv__SWIG_5(int argc, VALUE *argv, VALUE self)
struct swig_module_info swig_module_info
SWIGINTERN VALUE _wrap_rm__SWIG_1(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_nextout__SWIG_0(int argc, VALUE *argv, VALUE self)
Agsym_t * firstattr(Agraph_t *g)
SWIGRUNTIME VALUE SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj)
SWIGINTERN VALUE _wrap_edge(int nargs, VALUE *args, VALUE self)
SWIGINTERN VALUE _wrap_render__SWIG_3(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_setv(int nargs, VALUE *args, VALUE self)
SWIGINTERN VALUE _wrap_nextattr__SWIG_0(int argc, VALUE *argv, VALUE self)
SWIGRUNTIME swig_module_info * SWIG_Ruby_GetModule(void *SWIGUNUSEDPARM(clientdata))
static swig_type_info * swig_type_initial[]
SWIGINTERN VALUE _wrap_edge__SWIG_3(int argc, VALUE *argv, VALUE self)
SWIGRUNTIME void SWIG_Ruby_define_class(swig_type_info *type)
static int swig_ruby_internal_iterate_callback(st_data_t ptr, st_data_t obj, st_data_t meth)
SWIGINTERN VALUE _wrap_findattr(int nargs, VALUE *args, VALUE self)
SWIGINTERN int SWIG_Ruby_isCallable(VALUE proc)
SWIGRUNTIME swig_ruby_owntype SWIG_Ruby_AcquirePtr(VALUE obj, swig_ruby_owntype own)
static swig_cast_info _swigc__p_Agsym_t[]
SWIGINTERN VALUE SWIG_Ruby_ErrorType(int SWIG_code)
Agedge_t * nextedge(Agraph_t *g, Agedge_t *e)
SWIGINTERN VALUE _wrap_findattr__SWIG_0(int argc, VALUE *argv, VALUE self)
Agedge_t * findedge(Agnode_t *t, Agnode_t *h)
SWIGINTERN VALUE _wrap_node(int argc, VALUE *argv, VALUE self)
#define SWIG_DivisionByZero
SWIGINTERN VALUE _wrap_write(int nargs, VALUE *args, VALUE self)
SWIGINTERN VALUE _wrap_edge__SWIG_2(int argc, VALUE *argv, VALUE self)
static swig_type_info _swigt__p_char
#define SWIG_OverflowError
SWIGINTERN VALUE _wrap_firsttail(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_nextedge(int nargs, VALUE *args, VALUE self)
SWIGINTERN VALUE _wrap_nextin(int nargs, VALUE *args, VALUE self)
SWIGINTERN VALUE _wrap_findedge(int argc, VALUE *argv, VALUE self)
SWIGRUNTIME VALUE SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type)
SWIGINTERN VALUE _wrap_firstnode__SWIG_0(int argc, VALUE *argv, VALUE self)
SWIGRUNTIME int SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty)
Agnode_t * firsthead(Agnode_t *n)
static swig_type_info _swigt__p_Agnode_t
SWIGINTERN VALUE _wrap_graph__SWIG_0(int argc, VALUE *argv, VALUE self)
static swig_type_info _swigt__p_Agedge_t
SWIGINTERN VALUE _wrap_write__SWIG_1(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_firsthead(int argc, VALUE *argv, VALUE self)
#define SWIG_snprintf(O, S, F, A)
SWIGINTERN VALUE _wrap_nameof__SWIG_1(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_nextnode__SWIG_1(int argc, VALUE *argv, VALUE self)
Agnode_t * nexthead(Agnode_t *n, Agnode_t *h)
#define SWIG_ObjectPreviouslyDeletedError
SWIGINTERN VALUE _wrap_nextsubg(int argc, VALUE *argv, VALUE self)
SWIGINTERN VALUE _wrap_read(int nargs, VALUE *args, VALUE self)
Agedge_t * protoedge(Agraph_t *g)
SWIGINTERN VALUE _wrap_findnode(int argc, VALUE *argv, VALUE self)
#define SWIGRUNTIMEINLINE
SWIGINTERN void Ruby_Format_OverloadedError(const int argc, const int maxargs, const char *method, const char *prototypes)
SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory)
Graphviz context library.
GVIO_API const char * format
static gvloadimage_engine_t engine
textitem scanner parser str
static void mark(const stk_t *stk, Agnode_t *n)
set a mark on n
void *(* swig_converter_func)(void *, int *)
struct swig_type_info *(* swig_dycast_func)(void **)
struct swig_cast_info * prev
struct swig_cast_info * next
swig_converter_func converter
swig_cast_info ** cast_initial
swig_type_info ** type_initial
struct swig_module_info * next
struct swig_cast_info * cast