class Cproton::Pn_class_t
Public Class Methods
new(*args)
click to toggle source
SWIGINTERN VALUE _wrap_new_pn_class_t(int argc, VALUE *argv, VALUE self) { pn_class_t *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (pn_class_t *)calloc(1, sizeof(pn_class_t)); DATA_PTR(self) = result; return self; fail: return Qnil; }
Public Instance Methods
compare(*args)
click to toggle source
SWIGINTERN VALUE _wrap_pn_class_t_compare_get(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; intptr_t (*result)(void *,void *) = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","compare", 1, self )); } arg1 = (pn_class_t *)(argp1); result = (intptr_t (*)(void *,void *)) ((arg1)->compare); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_p_void__intptr_t); return vresult; fail: return Qnil; }
compare=(*args)
click to toggle source
SWIGINTERN VALUE _wrap_pn_class_t_compare_set(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; intptr_t (*arg2)(void *,void *) = (intptr_t (*)(void *,void *)) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","compare", 1, self )); } arg1 = (pn_class_t *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_void_p_void__intptr_t); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "intptr_t (*)(void *,void *)","compare", 2, argv[0] )); } } if (arg1) (arg1)->compare = arg2; return Qnil; fail: return Qnil; }
finalize(*args)
click to toggle source
SWIGINTERN VALUE _wrap_pn_class_t_finalize_get(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void (*result)(void *) = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","finalize", 1, self )); } arg1 = (pn_class_t *)(argp1); result = (void (*)(void *)) ((arg1)->finalize); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void__void); return vresult; fail: return Qnil; }
finalize=(*args)
click to toggle source
SWIGINTERN VALUE _wrap_pn_class_t_finalize_set(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; void (*arg2)(void *) = (void (*)(void *)) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","finalize", 1, self )); } arg1 = (pn_class_t *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_void__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void (*)(void *)","finalize", 2, argv[0] )); } } if (arg1) (arg1)->finalize = arg2; return Qnil; fail: return Qnil; }
hashcode(*args)
click to toggle source
SWIGINTERN VALUE _wrap_pn_class_t_hashcode_get(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uintptr_t (*result)(void *) = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","hashcode", 1, self )); } arg1 = (pn_class_t *)(argp1); result = (uintptr_t (*)(void *)) ((arg1)->hashcode); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void__uintptr_t); return vresult; fail: return Qnil; }
hashcode=(*args)
click to toggle source
SWIGINTERN VALUE _wrap_pn_class_t_hashcode_set(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; uintptr_t (*arg2)(void *) = (uintptr_t (*)(void *)) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","hashcode", 1, self )); } arg1 = (pn_class_t *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_void__uintptr_t); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "uintptr_t (*)(void *)","hashcode", 2, argv[0] )); } } if (arg1) (arg1)->hashcode = arg2; return Qnil; fail: return Qnil; }
initialize=(*args)
click to toggle source
SWIGINTERN VALUE _wrap_pn_class_t_initialize_set(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; void (*arg2)(void *) = (void (*)(void *)) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","initialize", 1, self )); } arg1 = (pn_class_t *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_void__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void (*)(void *)","initialize", 2, argv[0] )); } } if (arg1) (arg1)->initialize = arg2; return Qnil; fail: return Qnil; }
inspect(*args)
click to toggle source
SWIGINTERN VALUE _wrap_pn_class_t_inspect_get(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int (*result)(void *,pn_string_t *) = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","inspect", 1, self )); } arg1 = (pn_class_t *)(argp1); result = (int (*)(void *,pn_string_t *)) ((arg1)->inspect); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_p_struct_pn_string_t__int); return vresult; fail: return Qnil; }
inspect=(x) → int (*)(void *,pn_string_t *)
click to toggle source
Inspect class and its contents.
SWIGINTERN VALUE _wrap_pn_class_t_inspect_set(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; int (*arg2)(void *,pn_string_t *) = (int (*)(void *,pn_string_t *)) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","inspect", 1, self )); } arg1 = (pn_class_t *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_void_p_struct_pn_string_t__int); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "int (*)(void *,pn_string_t *)","inspect", 2, argv[0] )); } } if (arg1) (arg1)->inspect = arg2; return Qnil; fail: return Qnil; }