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))
1965#undef PACKAGE_BUGREPORT
1966#undef PACKAGE_STRING
1967#undef PACKAGE_TARNAME
1968#undef PACKAGE_VERSION
2160 static int init = 0;
2173 if (
TYPE(obj) == T_STRING) {
2179 *cptr =
reinterpret_cast< char*
>(memcpy(
new char[size], cstr,
sizeof(
char)*(size)));
2186 if (psize) *psize = size;
2190 if (pchar_descriptor) {
2193 if (cptr) *cptr = (
char *)vptr;
2194 if (psize) *psize = vptr ? (strlen((
char*)vptr) + 1) : 0;
2211 if (size > LONG_MAX) {
2213 return pchar_descriptor ?
2216 return rb_str_new(carray,
static_cast< long >(size));
2234 return value ? Qtrue : Qfalse;
2239 char *arg1 = (
char *) 0 ;
2244 VALUE vresult = Qnil;
2246 if ((argc < 1) || (argc > 1)) {
2247 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
2253 arg1 =
reinterpret_cast< char *
>(buf1);
2266 char *arg1 = (
char *) 0 ;
2271 VALUE vresult = Qnil;
2273 if ((argc < 1) || (argc > 1)) {
2274 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
2280 arg1 =
reinterpret_cast< char *
>(buf1);
2293 char *arg1 = (
char *) 0 ;
2298 VALUE vresult = Qnil;
2300 if ((argc < 1) || (argc > 1)) {
2301 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
2307 arg1 =
reinterpret_cast< char *
>(buf1);
2320 char *arg1 = (
char *) 0 ;
2325 VALUE vresult = Qnil;
2327 if ((argc < 1) || (argc > 1)) {
2328 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
2334 arg1 =
reinterpret_cast< char *
>(buf1);
2347 char *arg1 = (
char *) 0 ;
2352 VALUE vresult = Qnil;
2354 if ((argc < 1) || (argc > 1)) {
2355 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
2361 arg1 =
reinterpret_cast< char *
>(buf1);
2374 char *arg1 = (
char *) 0 ;
2379 VALUE vresult = Qnil;
2381 if ((argc < 1) || (argc > 1)) {
2382 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
2388 arg1 =
reinterpret_cast< char *
>(buf1);
2401 FILE *arg1 = (FILE *) 0 ;
2405 VALUE vresult = Qnil;
2407 if ((argc < 1) || (argc > 1)) {
2408 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
2414 arg1 =
reinterpret_cast< FILE *
>(argp1);
2430 for (ii = 0; (ii < argc); ++ii) {
2431 argv[ii] = args[ii];
2453 " Agraph_t read(char const *filename)\n"
2454 " Agraph_t * read(FILE *f)\n");
2463 char *arg2 = (
char *) 0 ;
2470 VALUE vresult = Qnil;
2472 if ((argc < 2) || (argc > 2)) {
2473 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
2479 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
2484 arg2 =
reinterpret_cast< char *
>(buf2);
2502 for (ii = 0; (ii < argc); ++ii) {
2503 argv[ii] = args[ii];
2529 " Agraph_t graph(char *name)\n"
2530 " Agraph_t * graph(Agraph_t *g, char *name)\n");
2539 char *arg2 = (
char *) 0 ;
2546 VALUE vresult = Qnil;
2548 if ((argc < 2) || (argc > 2)) {
2549 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
2555 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
2560 arg2 =
reinterpret_cast< char *
>(buf2);
2580 VALUE vresult = Qnil;
2582 if ((argc < 2) || (argc > 2)) {
2583 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
2589 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
2594 arg2 =
reinterpret_cast< Agnode_t *
>(argp2);
2606 char *arg2 = (
char *) 0 ;
2613 VALUE vresult = Qnil;
2615 if ((argc < 2) || (argc > 2)) {
2616 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
2622 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
2627 arg2 =
reinterpret_cast< char *
>(buf2);
2640 char *arg1 = (
char *) 0 ;
2648 VALUE vresult = Qnil;
2650 if ((argc < 2) || (argc > 2)) {
2651 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
2657 arg1 =
reinterpret_cast< char *
>(buf1);
2662 arg2 =
reinterpret_cast< Agnode_t *
>(argp2);
2676 char *arg2 = (
char *) 0 ;
2677 char *arg3 = (
char *) 0 ;
2687 VALUE vresult = Qnil;
2689 if ((argc < 3) || (argc > 3)) {
2690 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 3)",argc);
SWIG_fail;
2696 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
2701 arg2 =
reinterpret_cast< char *
>(buf2);
2706 arg3 =
reinterpret_cast< char *
>(buf3);
2726 for (ii = 0; (ii < argc); ++ii) {
2727 argv[ii] = args[ii];
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");
2801 char *arg2 = (
char *) 0 ;
2802 char *arg3 = (
char *) 0 ;
2812 VALUE vresult = Qnil;
2814 if ((argc < 3) || (argc > 3)) {
2815 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 3)",argc);
SWIG_fail;
2821 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
2826 arg2 =
reinterpret_cast< char *
>(buf2);
2831 arg3 =
reinterpret_cast< char *
>(buf3);
2832 result = (
char *)
setv(arg1,arg2,arg3);
2847 char *arg2 = (
char *) 0 ;
2848 char *arg3 = (
char *) 0 ;
2858 VALUE vresult = Qnil;
2860 if ((argc < 3) || (argc > 3)) {
2861 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 3)",argc);
SWIG_fail;
2867 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
2872 arg2 =
reinterpret_cast< char *
>(buf2);
2877 arg3 =
reinterpret_cast< char *
>(buf3);
2878 result = (
char *)
setv(arg1,arg2,arg3);
2893 char *arg2 = (
char *) 0 ;
2894 char *arg3 = (
char *) 0 ;
2904 VALUE vresult = Qnil;
2906 if ((argc < 3) || (argc > 3)) {
2907 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 3)",argc);
SWIG_fail;
2913 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
2918 arg2 =
reinterpret_cast< char *
>(buf2);
2923 arg3 =
reinterpret_cast< char *
>(buf3);
2924 result = (
char *)
setv(arg1,arg2,arg3);
2940 char *arg3 = (
char *) 0 ;
2949 VALUE vresult = Qnil;
2951 if ((argc < 3) || (argc > 3)) {
2952 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 3)",argc);
SWIG_fail;
2958 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
2963 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
2968 arg3 =
reinterpret_cast< char *
>(buf3);
2969 result = (
char *)
setv(arg1,arg2,arg3);
2983 char *arg3 = (
char *) 0 ;
2992 VALUE vresult = Qnil;
2994 if ((argc < 3) || (argc > 3)) {
2995 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 3)",argc);
SWIG_fail;
3001 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
3006 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
3011 arg3 =
reinterpret_cast< char *
>(buf3);
3012 result = (
char *)
setv(arg1,arg2,arg3);
3026 char *arg3 = (
char *) 0 ;
3035 VALUE vresult = Qnil;
3037 if ((argc < 3) || (argc > 3)) {
3038 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 3)",argc);
SWIG_fail;
3044 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
3049 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
3054 arg3 =
reinterpret_cast< char *
>(buf3);
3055 result = (
char *)
setv(arg1,arg2,arg3);
3072 for (ii = 0; (ii < argc); ++ii) {
3073 argv[ii] = args[ii];
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");
3197 char *arg2 = (
char *) 0 ;
3204 VALUE vresult = Qnil;
3206 if ((argc < 2) || (argc > 2)) {
3207 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3213 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
3218 arg2 =
reinterpret_cast< char *
>(buf2);
3219 result = (
char *)
getv(arg1,arg2);
3232 char *arg2 = (
char *) 0 ;
3239 VALUE vresult = Qnil;
3241 if ((argc < 2) || (argc > 2)) {
3242 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3248 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
3253 arg2 =
reinterpret_cast< char *
>(buf2);
3254 result = (
char *)
getv(arg1,arg2);
3267 char *arg2 = (
char *) 0 ;
3274 VALUE vresult = Qnil;
3276 if ((argc < 2) || (argc > 2)) {
3277 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3283 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
3288 arg2 =
reinterpret_cast< char *
>(buf2);
3289 result = (
char *)
getv(arg1,arg2);
3308 VALUE vresult = Qnil;
3310 if ((argc < 2) || (argc > 2)) {
3311 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3317 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
3322 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
3323 result = (
char *)
getv(arg1,arg2);
3340 VALUE vresult = Qnil;
3342 if ((argc < 2) || (argc > 2)) {
3343 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3349 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
3354 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
3355 result = (
char *)
getv(arg1,arg2);
3372 VALUE vresult = Qnil;
3374 if ((argc < 2) || (argc > 2)) {
3375 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3381 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
3386 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
3387 result = (
char *)
getv(arg1,arg2);
3402 for (ii = 0; (ii < argc); ++ii) {
3403 argv[ii] = args[ii];
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");
3506 VALUE vresult = Qnil;
3508 if ((argc < 1) || (argc > 1)) {
3509 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
3515 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
3516 result = (
char *)
nameof(arg1);
3530 VALUE vresult = Qnil;
3532 if ((argc < 1) || (argc > 1)) {
3533 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
3539 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
3540 result = (
char *)
nameof(arg1);
3554 VALUE vresult = Qnil;
3556 if ((argc < 1) || (argc > 1)) {
3557 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
3563 arg1 =
reinterpret_cast< Agsym_t *
>(argp1);
3564 result = (
char *)
nameof(arg1);
3579 for (ii = 0; (ii < argc); ++ii) {
3580 argv[ii] = args[ii];
3612 " char nameof(Agraph_t *g)\n"
3613 " char nameof(Agnode_t *n)\n"
3614 " char * nameof(Agsym_t *a)\n");
3623 char *arg2 = (
char *) 0 ;
3630 VALUE vresult = Qnil;
3632 if ((argc < 2) || (argc > 2)) {
3633 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3639 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
3644 arg2 =
reinterpret_cast< char *
>(buf2);
3658 char *arg2 = (
char *) 0 ;
3665 VALUE vresult = Qnil;
3667 if ((argc < 2) || (argc > 2)) {
3668 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3674 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
3679 arg2 =
reinterpret_cast< char *
>(buf2);
3699 VALUE vresult = Qnil;
3701 if ((argc < 2) || (argc > 2)) {
3702 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3708 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
3713 arg2 =
reinterpret_cast< Agnode_t *
>(argp2);
3725 char *arg2 = (
char *) 0 ;
3732 VALUE vresult = Qnil;
3734 if ((argc < 2) || (argc > 2)) {
3735 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3741 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
3746 arg2 =
reinterpret_cast< char *
>(buf2);
3760 char *arg2 = (
char *) 0 ;
3767 VALUE vresult = Qnil;
3769 if ((argc < 2) || (argc > 2)) {
3770 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3776 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
3781 arg2 =
reinterpret_cast< char *
>(buf2);
3795 char *arg2 = (
char *) 0 ;
3802 VALUE vresult = Qnil;
3804 if ((argc < 2) || (argc > 2)) {
3805 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
3811 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
3816 arg2 =
reinterpret_cast< char *
>(buf2);
3834 for (ii = 0; (ii < argc); ++ii) {
3835 argv[ii] = args[ii];
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");
3893 VALUE vresult = Qnil;
3895 if ((argc < 1) || (argc > 1)) {
3896 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
3902 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
3917 VALUE vresult = Qnil;
3919 if ((argc < 1) || (argc > 1)) {
3920 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
3926 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
3941 VALUE vresult = Qnil;
3943 if ((argc < 1) || (argc > 1)) {
3944 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
3950 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
3965 VALUE vresult = Qnil;
3967 if ((argc < 1) || (argc > 1)) {
3968 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
3974 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
3989 VALUE vresult = Qnil;
3991 if ((argc < 1) || (argc > 1)) {
3992 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
3998 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4014 for (ii = 0; (ii < argc); ++ii) {
4015 argv[ii] = args[ii];
4047 " Agraph_t graphof(Agraph_t *g)\n"
4048 " Agraph_t graphof(Agedge_t *e)\n"
4049 " Agraph_t * graphof(Agnode_t *n)\n");
4061 VALUE vresult = Qnil;
4063 if ((argc < 1) || (argc > 1)) {
4064 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4070 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4085 VALUE vresult = Qnil;
4087 if ((argc < 1) || (argc > 1)) {
4088 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4094 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4109 VALUE vresult = Qnil;
4111 if ((argc < 1) || (argc > 1)) {
4112 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4118 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4133 VALUE vresult = Qnil;
4135 if ((argc < 1) || (argc > 1)) {
4136 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4142 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4143 result = (bool)
ok(arg1);
4157 VALUE vresult = Qnil;
4159 if ((argc < 1) || (argc > 1)) {
4160 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4166 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4167 result = (bool)
ok(arg1);
4181 VALUE vresult = Qnil;
4183 if ((argc < 1) || (argc > 1)) {
4184 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4190 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
4191 result = (bool)
ok(arg1);
4205 VALUE vresult = Qnil;
4207 if ((argc < 1) || (argc > 1)) {
4208 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4214 arg1 =
reinterpret_cast< Agsym_t *
>(argp1);
4215 result = (bool)
ok(arg1);
4230 for (ii = 0; (ii < argc); ++ii) {
4231 argv[ii] = args[ii];
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");
4287 VALUE vresult = Qnil;
4289 if ((argc < 1) || (argc > 1)) {
4290 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4296 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4314 VALUE vresult = Qnil;
4316 if ((argc < 2) || (argc > 2)) {
4317 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
4323 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4328 arg2 =
reinterpret_cast< Agraph_t *
>(argp2);
4343 VALUE vresult = Qnil;
4345 if ((argc < 1) || (argc > 1)) {
4346 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4352 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4370 VALUE vresult = Qnil;
4372 if ((argc < 2) || (argc > 2)) {
4373 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
4379 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4384 arg2 =
reinterpret_cast< Agraph_t *
>(argp2);
4399 VALUE vresult = Qnil;
4401 if ((argc < 1) || (argc > 1)) {
4402 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4408 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4426 VALUE vresult = Qnil;
4428 if ((argc < 2) || (argc > 2)) {
4429 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
4435 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4440 arg2 =
reinterpret_cast< Agedge_t *
>(argp2);
4455 VALUE vresult = Qnil;
4457 if ((argc < 1) || (argc > 1)) {
4458 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4464 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4482 VALUE vresult = Qnil;
4484 if ((argc < 2) || (argc > 2)) {
4485 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
4491 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4496 arg2 =
reinterpret_cast< Agedge_t *
>(argp2);
4511 VALUE vresult = Qnil;
4513 if ((argc < 1) || (argc > 1)) {
4514 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4520 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4536 for (ii = 0; (ii < argc); ++ii) {
4537 argv[ii] = args[ii];
4560 " Agedge_t firstedge(Agraph_t *g)\n"
4561 " Agedge_t * firstedge(Agnode_t *n)\n");
4576 VALUE vresult = Qnil;
4578 if ((argc < 2) || (argc > 2)) {
4579 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
4585 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4590 arg2 =
reinterpret_cast< Agedge_t *
>(argp2);
4606 for (ii = 0; (ii < argc); ++ii) {
4607 argv[ii] = args[ii];
4640 " Agedge_t nextedge(Agraph_t *g, Agedge_t *e)\n"
4641 " Agedge_t * nextedge(Agnode_t *n, Agedge_t *e)\n");
4653 VALUE vresult = Qnil;
4655 if ((argc < 1) || (argc > 1)) {
4656 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4662 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4678 for (ii = 0; (ii < argc); ++ii) {
4679 argv[ii] = args[ii];
4702 " Agedge_t firstout(Agraph_t *g)\n"
4703 " Agedge_t * firstout(Agnode_t *n)\n");
4718 VALUE vresult = Qnil;
4720 if ((argc < 2) || (argc > 2)) {
4721 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
4727 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4732 arg2 =
reinterpret_cast< Agedge_t *
>(argp2);
4748 for (ii = 0; (ii < argc); ++ii) {
4749 argv[ii] = args[ii];
4782 " Agedge_t nextout(Agraph_t *g, Agedge_t *e)\n"
4783 " Agedge_t * nextout(Agnode_t *n, Agedge_t *e)\n");
4795 VALUE vresult = Qnil;
4797 if ((argc < 1) || (argc > 1)) {
4798 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4804 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4822 VALUE vresult = Qnil;
4824 if ((argc < 2) || (argc > 2)) {
4825 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
4831 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4836 arg2 =
reinterpret_cast< Agnode_t *
>(argp2);
4851 VALUE vresult = Qnil;
4853 if ((argc < 1) || (argc > 1)) {
4854 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4860 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4878 VALUE vresult = Qnil;
4880 if ((argc < 2) || (argc > 2)) {
4881 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
4887 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4892 arg2 =
reinterpret_cast< Agedge_t *
>(argp2);
4907 VALUE vresult = Qnil;
4909 if ((argc < 1) || (argc > 1)) {
4910 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
4916 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
4932 for (ii = 0; (ii < argc); ++ii) {
4933 argv[ii] = args[ii];
4956 " Agedge_t firstin(Agraph_t *g)\n"
4957 " Agedge_t * firstin(Agnode_t *n)\n");
4972 VALUE vresult = Qnil;
4974 if ((argc < 2) || (argc > 2)) {
4975 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
4981 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
4986 arg2 =
reinterpret_cast< Agedge_t *
>(argp2);
5002 for (ii = 0; (ii < argc); ++ii) {
5003 argv[ii] = args[ii];
5036 " Agedge_t nextin(Agnode_t *n, Agedge_t *e)\n"
5037 " Agedge_t * nextin(Agraph_t *g, Agedge_t *e)\n");
5049 VALUE vresult = Qnil;
5051 if ((argc < 1) || (argc > 1)) {
5052 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
5058 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
5076 VALUE vresult = Qnil;
5078 if ((argc < 2) || (argc > 2)) {
5079 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
5085 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
5090 arg2 =
reinterpret_cast< Agnode_t *
>(argp2);
5105 VALUE vresult = Qnil;
5107 if ((argc < 1) || (argc > 1)) {
5108 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
5114 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5132 VALUE vresult = Qnil;
5134 if ((argc < 2) || (argc > 2)) {
5135 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
5141 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5146 arg2 =
reinterpret_cast< Agnode_t *
>(argp2);
5161 VALUE vresult = Qnil;
5163 if ((argc < 1) || (argc > 1)) {
5164 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
5170 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
5186 for (ii = 0; (ii < argc); ++ii) {
5187 argv[ii] = args[ii];
5210 " Agnode_t firstnode(Agraph_t *g)\n"
5211 " Agnode_t * firstnode(Agedge_t *e)\n");
5226 VALUE vresult = Qnil;
5228 if ((argc < 2) || (argc > 2)) {
5229 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
5235 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
5240 arg2 =
reinterpret_cast< Agnode_t *
>(argp2);
5256 for (ii = 0; (ii < argc); ++ii) {
5257 argv[ii] = args[ii];
5290 " Agnode_t nextnode(Agraph_t *g, Agnode_t *n)\n"
5291 " Agnode_t * nextnode(Agedge_t *e, Agnode_t *n)\n");
5303 VALUE vresult = Qnil;
5305 if ((argc < 1) || (argc > 1)) {
5306 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
5312 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5330 VALUE vresult = Qnil;
5332 if ((argc < 2) || (argc > 2)) {
5333 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
5339 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5344 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
5359 VALUE vresult = Qnil;
5361 if ((argc < 1) || (argc > 1)) {
5362 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
5368 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
5386 VALUE vresult = Qnil;
5388 if ((argc < 2) || (argc > 2)) {
5389 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
5395 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
5400 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
5415 VALUE vresult = Qnil;
5417 if ((argc < 1) || (argc > 1)) {
5418 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
5424 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
5440 for (ii = 0; (ii < argc); ++ii) {
5441 argv[ii] = args[ii];
5473 " Agsym_t firstattr(Agraph_t *g)\n"
5474 " Agsym_t firstattr(Agedge_t *e)\n"
5475 " Agsym_t * firstattr(Agnode_t *n)\n");
5490 VALUE vresult = Qnil;
5492 if ((argc < 2) || (argc > 2)) {
5493 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
5499 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
5504 arg2 =
reinterpret_cast< Agsym_t *
>(argp2);
5520 for (ii = 0; (ii < argc); ++ii) {
5521 argv[ii] = args[ii];
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");
5582 VALUE vresult = Qnil;
5584 if ((argc < 1) || (argc > 1)) {
5585 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
5591 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5592 result = (bool)
rm(arg1);
5606 VALUE vresult = Qnil;
5608 if ((argc < 1) || (argc > 1)) {
5609 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
5615 arg1 =
reinterpret_cast< Agnode_t *
>(argp1);
5616 result = (bool)
rm(arg1);
5630 VALUE vresult = Qnil;
5632 if ((argc < 1) || (argc > 1)) {
5633 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
5639 arg1 =
reinterpret_cast< Agedge_t *
>(argp1);
5640 result = (bool)
rm(arg1);
5655 for (ii = 0; (ii < argc); ++ii) {
5656 argv[ii] = args[ii];
5688 " bool rm(Agraph_t *g)\n"
5689 " bool rm(Agnode_t *n)\n"
5690 " bool rm(Agedge_t *e)\n");
5699 char *arg2 = (
char *) 0 ;
5706 VALUE vresult = Qnil;
5708 if ((argc < 2) || (argc > 2)) {
5709 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
5715 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5720 arg2 =
reinterpret_cast< char *
>(buf2);
5721 result = (bool)
layout(arg1,(
char const *)arg2);
5737 VALUE vresult = Qnil;
5739 if ((argc < 1) || (argc > 1)) {
5740 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
5746 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5747 result = (bool)
render(arg1);
5758 char *arg2 = (
char *) 0 ;
5765 VALUE vresult = Qnil;
5767 if ((argc < 2) || (argc > 2)) {
5768 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
5774 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5779 arg2 =
reinterpret_cast< char *
>(buf2);
5780 result = (bool)
render(arg1,(
char const *)arg2);
5793 char *arg2 = (
char *) 0 ;
5794 FILE *arg3 = (FILE *) 0 ;
5803 VALUE vresult = Qnil;
5805 if ((argc < 3) || (argc > 3)) {
5806 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 3)",argc);
SWIG_fail;
5812 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5817 arg2 =
reinterpret_cast< char *
>(buf2);
5822 arg3 =
reinterpret_cast< FILE *
>(argp3);
5823 result = (bool)
render(arg1,(
char const *)arg2,arg3);
5836 char *arg2 = (
char *) 0 ;
5837 char *arg3 = (
char *) 0 ;
5847 VALUE vresult = Qnil;
5849 if ((argc < 3) || (argc > 3)) {
5850 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 3)",argc);
SWIG_fail;
5856 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5861 arg2 =
reinterpret_cast< char *
>(buf2);
5866 arg3 =
reinterpret_cast< char *
>(buf3);
5867 result = (bool)
render(arg1,(
char const *)arg2,(
char const *)arg3);
5886 for (ii = 0; (ii < argc); ++ii) {
5887 argv[ii] = args[ii];
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");
5961 char *arg2 = (
char *) 0 ;
5962 char *arg3 = (
char *) 0 ;
5972 if ((argc < 3) || (argc > 3)) {
5973 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 3)",argc);
SWIG_fail;
5979 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
5984 arg2 =
reinterpret_cast< char *
>(buf2);
5989 arg3 =
reinterpret_cast< char *
>(buf3);
6004 char *arg2 = (
char *) 0 ;
6005 char *arg3 = (
char *) 0 ;
6015 VALUE vresult = Qnil;
6017 if ((argc < 3) || (argc > 3)) {
6018 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 3)",argc);
SWIG_fail;
6024 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
6029 arg2 =
reinterpret_cast< char *
>(buf2);
6034 arg3 =
reinterpret_cast< char *
>(buf3);
6035 result = (bool)
renderchannel(arg1,(
char const *)arg2,(
char const *)arg3);
6050 char *arg2 = (
char *) 0 ;
6057 VALUE vresult = Qnil;
6059 if ((argc < 2) || (argc > 2)) {
6060 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
6066 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
6071 arg2 =
reinterpret_cast< char *
>(buf2);
6072 result = (
char *)
renderdata(arg1,(
char const *)arg2);
6085 char *arg2 = (
char *) 0 ;
6092 VALUE vresult = Qnil;
6094 if ((argc < 2) || (argc > 2)) {
6095 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
6101 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
6106 arg2 =
reinterpret_cast< char *
>(buf2);
6107 result = (bool)
write(arg1,(
char const *)arg2);
6120 FILE *arg2 = (FILE *) 0 ;
6126 VALUE vresult = Qnil;
6128 if ((argc < 2) || (argc > 2)) {
6129 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 2)",argc);
SWIG_fail;
6135 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
6140 arg2 =
reinterpret_cast< FILE *
>(argp2);
6141 result = (bool)
write(arg1,arg2);
6156 for (ii = 0; (ii < argc); ++ii) {
6157 argv[ii] = args[ii];
6189 " bool write(Agraph_t *g, char const *filename)\n"
6190 " bool write(Agraph_t *g, FILE *f)\n");
6202 VALUE vresult = Qnil;
6204 if ((argc < 1) || (argc > 1)) {
6205 rb_raise(rb_eArgError,
"wrong # of arguments(%d for 1)",argc);
SWIG_fail;
6211 arg1 =
reinterpret_cast< Agraph_t *
>(argp1);
6212 result = (bool)
tred(arg1);
6307#define SWIGRUNTIME_DEBUG
6310#ifndef SWIG_INIT_CLIENT_DATA_TYPE
6311#define SWIG_INIT_CLIENT_DATA_TYPE void *
6346 }
while (iter!= module_head);
6357 if (
init == 0)
return;
6360#ifdef SWIGRUNTIME_DEBUG
6361 printf(
"SWIG_InitializeModule: size %lu\n", (
unsigned long)
swig_module.
size);
6368#ifdef SWIGRUNTIME_DEBUG
6378#ifdef SWIGRUNTIME_DEBUG
6379 printf(
"SWIG_InitializeModule: found type %s\n",
type->name);
6383#ifdef SWIGRUNTIME_DEBUG
6384 printf(
"SWIG_InitializeModule: found and overwrite type %s \n",
type->name);
6393 while (cast->
type) {
6397#ifdef SWIGRUNTIME_DEBUG
6398 printf(
"SWIG_InitializeModule: look cast %s\n", cast->
type->
name);
6402#ifdef SWIGRUNTIME_DEBUG
6403 if (ret) printf(
"SWIG_InitializeModule: found cast %s\n", ret->
name);
6408#ifdef SWIGRUNTIME_DEBUG
6409 printf(
"SWIG_InitializeModule: skip old type %s\n", ret->
name);
6416#ifdef SWIGRUNTIME_DEBUG
6417 if (ocast) printf(
"SWIG_InitializeModule: skip old cast %s\n", ret->
name);
6419 if (!ocast) ret = 0;
6424#ifdef SWIGRUNTIME_DEBUG
6425 printf(
"SWIG_InitializeModule: adding cast %s\n", cast->
type->
name);
6428 type->cast->prev = cast;
6440#ifdef SWIGRUNTIME_DEBUG
6441 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
6446 while (cast->
type) {
6447 printf(
"SWIG_InitializeModule: cast type %s\n", cast->
type->
name);
6451 printf(
"---- Total casts: %d\n",j);
6453 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
6466 static int init_run = 0;
6468 if (init_run)
return;
6479 equiv = equiv->
next;
6502 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, 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
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