Class: OpalKelly::ConstIterator
- Inherits:
-
Object
- Object
- OpalKelly::ConstIterator
- Defined in:
- ext/OpalKelly/FrontPanelDLL_wrap.cxx
Instance Method Summary collapse
-
#+(*args) ⇒ Object
call-seq: +(n) -> ConstIterator.
-
#-(*args, self) ⇒ Object
call-seq: -(n) -> ConstIterator -(x) -> ptrdiff_t.
-
#==(*args) ⇒ Object
call-seq: ==(x) -> bool.
-
#dup(*args) ⇒ Object
call-seq: dup -> ConstIterator.
-
#inspect(*args) ⇒ Object
call-seq: inspect -> VALUE.
- #next(*args, self) ⇒ Object
- #previous(*args, self) ⇒ Object
-
#to_s(*args) ⇒ Object
call-seq: to_s -> VALUE.
- #value(*args) ⇒ Object
Instance Method Details
#+(*args) ⇒ Object
call-seq:
+(n) -> ConstIterator
Add operator.
6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 6720
SWIGINTERN VALUE
_wrap_ConstIterator___add__(int argc, VALUE *argv, VALUE self) {
swig::ConstIterator *arg1 = (swig::ConstIterator *) 0 ;
ptrdiff_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
ptrdiff_t val2 ;
int ecode2 = 0 ;
swig::ConstIterator *result = 0 ;
VALUE vresult = Qnil;
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_swig__ConstIterator, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::ConstIterator const *","operator +", 1, self ));
}
arg1 = reinterpret_cast< swig::ConstIterator * >(argp1);
ecode2 = SWIG_AsVal_ptrdiff_t(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ptrdiff_t","operator +", 2, argv[0] ));
}
arg2 = static_cast< ptrdiff_t >(val2);
try {
result = (swig::ConstIterator *)((swig::ConstIterator const *)arg1)->operator +(arg2);
} catch(swig::stop_iteration &_e) {
{
(void)_e;
SWIG_Ruby_ExceptionType(NULL, Qnil);
SWIG_fail;
}
}
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__ConstIterator, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
|
#-(*args, self) ⇒ Object
call-seq:
-(n) -> ConstIterator
-(x) -> ptrdiff_t
Substraction operator.
6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 6844
SWIGINTERN VALUE _wrap_ConstIterator___sub__(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[3];
int ii;
argc = nargs + 1;
argv[0] = self;
if (argc > 3) SWIG_fail;
for (ii = 1; (ii < argc); ++ii) {
argv[ii] = args[ii-1];
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__ConstIterator, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_swig__ConstIterator, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_ConstIterator___sub____SWIG_1(nargs, args, self);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__ConstIterator, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_ConstIterator___sub____SWIG_0(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 3, "ConstIterator.__sub__",
" swig::ConstIterator ConstIterator.__sub__(ptrdiff_t n)\n"
" ptrdiff_t ConstIterator.__sub__(swig::ConstIterator const &x)\n");
return Qnil;
}
|
#==(*args) ⇒ Object
call-seq:
==(x) -> bool
Equality comparison operator.
6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 6677
SWIGINTERN VALUE
_wrap_ConstIterator___eq__(int argc, VALUE *argv, VALUE self) {
swig::ConstIterator *arg1 = (swig::ConstIterator *) 0 ;
swig::ConstIterator *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
bool result;
VALUE vresult = Qnil;
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_swig__ConstIterator, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::ConstIterator const *","operator ==", 1, self ));
}
arg1 = reinterpret_cast< swig::ConstIterator * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_swig__ConstIterator, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "swig::ConstIterator const &","operator ==", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "swig::ConstIterator const &","operator ==", 2, argv[0]));
}
arg2 = reinterpret_cast< swig::ConstIterator * >(argp2);
result = (bool)((swig::ConstIterator const *)arg1)->operator ==((swig::ConstIterator const &)*arg2);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
|
#dup(*args) ⇒ Object
call-seq:
dup -> ConstIterator
Create a duplicate of the class and unfreeze it if needed.
6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 6363
SWIGINTERN VALUE
_wrap_ConstIterator_dup(int argc, VALUE *argv, VALUE self) {
swig::ConstIterator *arg1 = (swig::ConstIterator *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
swig::ConstIterator *result = 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_swig__ConstIterator, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::ConstIterator const *","dup", 1, self ));
}
arg1 = reinterpret_cast< swig::ConstIterator * >(argp1);
result = (swig::ConstIterator *)((swig::ConstIterator const *)arg1)->dup();
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__ConstIterator, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
|
#inspect(*args) ⇒ Object
call-seq:
inspect -> VALUE
Inspect class and its contents.
6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 6395
SWIGINTERN VALUE
_wrap_ConstIterator_inspect(int argc, VALUE *argv, VALUE self) {
swig::ConstIterator *arg1 = (swig::ConstIterator *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
VALUE result;
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_swig__ConstIterator, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::ConstIterator const *","inspect", 1, self ));
}
arg1 = reinterpret_cast< swig::ConstIterator * >(argp1);
result = (VALUE)((swig::ConstIterator const *)arg1)->inspect();
vresult = result;
return vresult;
fail:
return Qnil;
}
|
#next(*args, self) ⇒ Object
6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 6515
SWIGINTERN VALUE _wrap_ConstIterator_next(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[3];
int ii;
argc = nargs + 1;
argv[0] = self;
if (argc > 3) SWIG_fail;
for (ii = 1; (ii < argc); ++ii) {
argv[ii] = args[ii-1];
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__ConstIterator, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_ConstIterator_next__SWIG_1(nargs, args, self);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__ConstIterator, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_size_t(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_ConstIterator_next__SWIG_0(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 3, "ConstIterator.next",
" swig::ConstIterator ConstIterator.next(size_t n)\n"
" swig::ConstIterator * ConstIterator.next()\n");
return Qnil;
}
|
#previous(*args, self) ⇒ Object
6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 6624
SWIGINTERN VALUE _wrap_ConstIterator_previous(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[3];
int ii;
argc = nargs + 1;
argv[0] = self;
if (argc > 3) SWIG_fail;
for (ii = 1; (ii < argc); ++ii) {
argv[ii] = args[ii-1];
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__ConstIterator, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_ConstIterator_previous__SWIG_1(nargs, args, self);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__ConstIterator, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_size_t(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_ConstIterator_previous__SWIG_0(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 3, "ConstIterator.previous",
" swig::ConstIterator ConstIterator.previous(size_t n)\n"
" swig::ConstIterator * ConstIterator.previous()\n");
return Qnil;
}
|
#to_s(*args) ⇒ Object
call-seq:
to_s -> VALUE
Convert class to a String representation.
6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 6427
SWIGINTERN VALUE
_wrap_ConstIterator_to_s(int argc, VALUE *argv, VALUE self) {
swig::ConstIterator *arg1 = (swig::ConstIterator *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
VALUE result;
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_swig__ConstIterator, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::ConstIterator const *","to_s", 1, self ));
}
arg1 = reinterpret_cast< swig::ConstIterator * >(argp1);
result = (VALUE)((swig::ConstIterator const *)arg1)->to_s();
vresult = result;
return vresult;
fail:
return Qnil;
}
|
#value(*args) ⇒ Object
6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 6323
SWIGINTERN VALUE
_wrap_ConstIterator_value(int argc, VALUE *argv, VALUE self) {
swig::ConstIterator *arg1 = (swig::ConstIterator *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
VALUE result;
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_swig__ConstIterator, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::ConstIterator const *","value", 1, self ));
}
arg1 = reinterpret_cast< swig::ConstIterator * >(argp1);
try {
result = (VALUE)((swig::ConstIterator const *)arg1)->value();
} catch(swig::stop_iteration &_e) {
{
(void)_e;
SWIG_Ruby_ExceptionType(NULL, Qnil);
SWIG_fail;
}
}
vresult = result;
return vresult;
fail:
return Qnil;
}
|