Class: OpalKelly::OkCScriptValues

Inherits:
Object
  • Object
show all
Defined in:
ext/OpalKelly/FrontPanelDLL_wrap.cxx

Instance Method Summary collapse

Constructor Details

#initialize(*args, self) ⇒ Object



11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 11283

SWIGINTERN VALUE _wrap_new_okCScriptValues(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 0) {
    return _wrap_new_okCScriptValues__SWIG_0(nargs, args, self);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_okCScriptValues__SWIG_2(nargs, args, self);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_okCScriptValues__SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_OpalKelly__ScriptValue, SWIG_POINTER_NO_NULL);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_okCScriptValues__SWIG_3(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "okCScriptValues.new", 
    "    okCScriptValues.new()\n"
    "    okCScriptValues.new(std::vector< OpalKelly::ScriptValue > const &other)\n"
    "    okCScriptValues.new(std::vector< OpalKelly::ScriptValue >::size_type size)\n"
    "    okCScriptValues.new(std::vector< OpalKelly::ScriptValue >::size_type size, std::vector< OpalKelly::ScriptValue >::value_type const &value)\n");
  
  return Qnil;
}

Instance Method Details

#[](*args, self) ⇒ Object



10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 10177

SWIGINTERN VALUE _wrap_okCScriptValues___getitem__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 4) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_okCScriptValues___getitem____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      _v = (argv[1] != 0);
      if (_v) {
        return _wrap_okCScriptValues___getitem____SWIG_2(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_okCScriptValues___getitem____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "__getitem__", 
    "    VALUE __getitem__(std::vector< OpalKelly::ScriptValue >::difference_type i, std::vector< OpalKelly::ScriptValue >::difference_type length)\n"
    "    VALUE __getitem__(std::vector< OpalKelly::ScriptValue >::difference_type i)\n"
    "    VALUE __getitem__(VALUE i)\n");
  
  return Qnil;
}

#[]=(*args, self) ⇒ Object



10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 10361

SWIGINTERN VALUE _wrap_okCScriptValues___setitem__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[5];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 5) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OpalKelly__ScriptValue, SWIG_POINTER_NO_NULL);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_okCScriptValues___setitem____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_okCScriptValues___setitem____SWIG_1(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 5, "__setitem__", 
    "    VALUE __setitem__(std::vector< OpalKelly::ScriptValue >::difference_type i, std::vector< OpalKelly::ScriptValue >::value_type const &x)\n"
    "    VALUE __setitem__(std::vector< OpalKelly::ScriptValue >::difference_type i, std::vector< OpalKelly::ScriptValue >::difference_type length, std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > > const &v)\n");
  
  return Qnil;
}

#__delete2__(*args) ⇒ Object



9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 9914

SWIGINTERN VALUE
_wrap_okCScriptValues___delete2__(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  std::vector< OpalKelly::ScriptValue >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  VALUE 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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","__delete2__", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_OpalKelly__ScriptValue,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue >::value_type const &","__delete2__", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::vector< OpalKelly::ScriptValue >::value_type const &","__delete2__", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< std::vector< OpalKelly::ScriptValue >::value_type * >(argp2);
  result = (VALUE)std_vector_Sl_OpalKelly_ScriptValue_Sg____delete2__(arg1,(OpalKelly::ScriptValue const &)*arg2);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}

#assign(*args) ⇒ Object

call-seq:

assign(n, x)

Assign a new okCScriptValues or portion of it.



11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 11413

SWIGINTERN VALUE
_wrap_okCScriptValues_assign(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  std::vector< OpalKelly::ScriptValue >::size_type arg2 ;
  std::vector< OpalKelly::ScriptValue >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 ;
  int res3 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","assign", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue >::size_type","assign", 2, argv[0] ));
  } 
  arg2 = static_cast< std::vector< OpalKelly::ScriptValue >::size_type >(val2);
  res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_OpalKelly__ScriptValue,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue >::value_type const &","assign", 3, argv[1] )); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::vector< OpalKelly::ScriptValue >::value_type const &","assign", 3, argv[1])); 
  }
  arg3 = reinterpret_cast< std::vector< OpalKelly::ScriptValue >::value_type * >(argp3);
  (arg1)->assign(arg2,(std::vector< OpalKelly::ScriptValue >::value_type const &)*arg3);
  return Qnil;
fail:
  return Qnil;
}

#at(*args) ⇒ Object

call-seq:

at(i) -> VALUE

Return element at a certain index.



10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 10029

SWIGINTERN VALUE
_wrap_okCScriptValues_at(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  std::vector< OpalKelly::ScriptValue >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  VALUE 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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > const *","at", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue >::difference_type","at", 2, argv[0] ));
  } 
  arg2 = static_cast< std::vector< OpalKelly::ScriptValue >::difference_type >(val2);
  result = (VALUE)std_vector_Sl_OpalKelly_ScriptValue_Sg__at((std::vector< OpalKelly::ScriptValue > const *)arg1,arg2);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}

#back(*args) ⇒ Object

call-seq:

back -> okCScriptValue

Return the last element in okCScriptValues.



11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 11381

SWIGINTERN VALUE
_wrap_okCScriptValues_back(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< OpalKelly::ScriptValue >::value_type *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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > const *","back", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  result = (std::vector< OpalKelly::ScriptValue >::value_type *) &((std::vector< OpalKelly::ScriptValue > const *)arg1)->back();
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OpalKelly__ScriptValue, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}

#begin(*args) ⇒ Object

call-seq:

begin -> std::vector< OpalKelly::ScriptValue >::iterator

Return an iterator to the beginning of the okCScriptValues.



10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 10835

SWIGINTERN VALUE
_wrap_okCScriptValues_begin(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< OpalKelly::ScriptValue >::iterator 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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","begin", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  result = (arg1)->begin();
  vresult = SWIG_NewPointerObj(swig::make_nonconst_iterator(static_cast< const std::vector< OpalKelly::ScriptValue >::iterator & >(result),
      self),
    swig::Iterator::descriptor(),SWIG_POINTER_OWN);
  return vresult;
fail:
  return Qnil;
}

#capacity(*args) ⇒ Object

call-seq:

capacity -> std::vector< OpalKelly::ScriptValue >::size_type

Reserved capacity of the okCScriptValues.



11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 11803

SWIGINTERN VALUE
_wrap_okCScriptValues_capacity(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< OpalKelly::ScriptValue >::size_type 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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > const *","capacity", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  result = ((std::vector< OpalKelly::ScriptValue > const *)arg1)->capacity();
  vresult = SWIG_From_size_t(static_cast< size_t >(result));
  return vresult;
fail:
  return Qnil;
}

#clear(*args) ⇒ Object

call-seq:

clear

Clear okCScriptValues contents.



10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 10971

SWIGINTERN VALUE
_wrap_okCScriptValues_clear(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","clear", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  (arg1)->clear();
  return Qnil;
fail:
  return Qnil;
}

#delete_at(*args) ⇒ Object

call-seq:

delete_at(i) -> VALUE

Delete an element at a certain index.



9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 9989

SWIGINTERN VALUE
_wrap_okCScriptValues_delete_at(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  std::vector< OpalKelly::ScriptValue >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  VALUE 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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","delete_at", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue >::difference_type","delete_at", 2, argv[0] ));
  } 
  arg2 = static_cast< std::vector< OpalKelly::ScriptValue >::difference_type >(val2);
  result = (VALUE)std_vector_Sl_OpalKelly_ScriptValue_Sg__delete_at(arg1,arg2);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}

#dup(*args) ⇒ Object

call-seq:

dup -> okCScriptValues

Create a duplicate of the class and unfreeze it if needed.



9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 9710

SWIGINTERN VALUE
_wrap_okCScriptValues_dup(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > > *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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","dup", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  result = (std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > > *)std_vector_Sl_OpalKelly_ScriptValue_Sg__dup(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#each(*args) ⇒ Object

call-seq:

each -> okCScriptValues

Iterate thru each element in the okCScriptValues. A block must be provided.



9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 9890

SWIGINTERN VALUE
_wrap_okCScriptValues_each(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > > *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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","each", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  result = (std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > > *)std_vector_Sl_OpalKelly_ScriptValue_Sg__each(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}

#empty?(*args) ⇒ Boolean

call-seq:

empty? -> bool

Check if the okCScriptValues is empty or not.

Returns:

  • (Boolean)


10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 10739

SWIGINTERN VALUE
_wrap_okCScriptValues_emptyq___(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool 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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > const *","empty", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  result = (bool)((std::vector< OpalKelly::ScriptValue > const *)arg1)->empty();
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}

#end(*args) ⇒ Object

call-seq:

end -> std::vector< OpalKelly::ScriptValue >::iterator

Return an iterator to past the end of the okCScriptValues.



10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 10869

SWIGINTERN VALUE
_wrap_okCScriptValues_end(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< OpalKelly::ScriptValue >::iterator 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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","end", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  result = (arg1)->end();
  vresult = SWIG_NewPointerObj(swig::make_nonconst_iterator(static_cast< const std::vector< OpalKelly::ScriptValue >::iterator & >(result),
      self),
    swig::Iterator::descriptor(),SWIG_POINTER_OWN);
  return vresult;
fail:
  return Qnil;
}

#erase(*args, self) ⇒ Object



11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 11181

SWIGINTERN VALUE _wrap_okCScriptValues_erase(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 4) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::ConstIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::Iterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::Iterator_T<std::vector< OpalKelly::ScriptValue >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_okCScriptValues_erase__SWIG_0(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::ConstIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::Iterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::Iterator_T<std::vector< OpalKelly::ScriptValue >::iterator > *>(iter) != 0));
      if (_v) {
        swig::ConstIterator *iter = 0;
        int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::Iterator::descriptor(), 0);
        _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::Iterator_T<std::vector< OpalKelly::ScriptValue >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_okCScriptValues_erase__SWIG_1(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "erase", 
    "    std::vector< OpalKelly::ScriptValue >::iterator erase(std::vector< OpalKelly::ScriptValue >::iterator pos)\n"
    "    std::vector< OpalKelly::ScriptValue >::iterator erase(std::vector< OpalKelly::ScriptValue >::iterator first, std::vector< OpalKelly::ScriptValue >::iterator last)\n");
  
  return Qnil;
}

#front(*args) ⇒ Object

call-seq:

front -> okCScriptValue

Return the first element in okCScriptValues.



11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 11349

SWIGINTERN VALUE
_wrap_okCScriptValues_front(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< OpalKelly::ScriptValue >::value_type *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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > const *","front", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  result = (std::vector< OpalKelly::ScriptValue >::value_type *) &((std::vector< OpalKelly::ScriptValue > const *)arg1)->front();
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OpalKelly__ScriptValue, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}

#get_allocator(*args) ⇒ Object



10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 10992

SWIGINTERN VALUE
_wrap_okCScriptValues_get_allocator(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  SwigValueWrapper< std::allocator< OpalKelly::ScriptValue > > 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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > const *","get_allocator", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  result = ((std::vector< OpalKelly::ScriptValue > const *)arg1)->get_allocator();
  vresult = SWIG_NewPointerObj((new std::vector< OpalKelly::ScriptValue >::allocator_type(static_cast< const std::vector< OpalKelly::ScriptValue >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_OpalKelly__ScriptValue_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#insert(*args, self) ⇒ Object



11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 11671

SWIGINTERN VALUE _wrap_okCScriptValues_insert(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[5];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 5) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::ConstIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::Iterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::Iterator_T<std::vector< OpalKelly::ScriptValue >::iterator > *>(iter) != 0));
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OpalKelly__ScriptValue, SWIG_POINTER_NO_NULL);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_okCScriptValues_insert__SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          if (argc <= 3) {
            return _wrap_okCScriptValues_insert__SWIG_0(nargs, args, self);
          }
          return _wrap_okCScriptValues_insert__SWIG_0(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::ConstIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::Iterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::Iterator_T<std::vector< OpalKelly::ScriptValue >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_OpalKelly__ScriptValue, SWIG_POINTER_NO_NULL);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_okCScriptValues_insert__SWIG_2(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 5, "insert", 
    "    std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > > insert(std::vector< OpalKelly::ScriptValue >::difference_type pos, int argc, VALUE *argv, ...)\n"
    "    std::vector< OpalKelly::ScriptValue >::iterator insert(std::vector< OpalKelly::ScriptValue >::iterator pos, std::vector< OpalKelly::ScriptValue >::value_type const &x)\n"
    "    void insert(std::vector< OpalKelly::ScriptValue >::iterator pos, std::vector< OpalKelly::ScriptValue >::size_type n, std::vector< OpalKelly::ScriptValue >::value_type const &x)\n");
  
  return Qnil;
}

#inspect(*args) ⇒ Object

call-seq:

inspect -> VALUE

Inspect class and its contents.



9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 9742

SWIGINTERN VALUE
_wrap_okCScriptValues_inspect(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","inspect", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  result = (VALUE)std_vector_Sl_OpalKelly_ScriptValue_Sg__inspect(arg1);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}

#pop(*args) ⇒ Object

call-seq:

pop -> VALUE

Remove and return element at the end of the okCScriptValues.



10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 10465

SWIGINTERN VALUE
_wrap_okCScriptValues_pop(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","pop", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  result = (VALUE)std_vector_Sl_OpalKelly_ScriptValue_Sg__pop(arg1);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}

#push(*args) ⇒ Object Also known as: <<

call-seq:

push(e) -> okCScriptValue

Add an element at the end of the okCScriptValues.



10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 10497

SWIGINTERN VALUE
_wrap_okCScriptValues_push(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  std::vector< OpalKelly::ScriptValue >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  std::vector< OpalKelly::ScriptValue >::value_type 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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","push", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_OpalKelly__ScriptValue,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue >::value_type const &","push", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::vector< OpalKelly::ScriptValue >::value_type const &","push", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< std::vector< OpalKelly::ScriptValue >::value_type * >(argp2);
  result = std_vector_Sl_OpalKelly_ScriptValue_Sg__push(arg1,(OpalKelly::ScriptValue const &)*arg2);
  vresult = SWIG_NewPointerObj((new std::vector< OpalKelly::ScriptValue >::value_type(static_cast< const std::vector< OpalKelly::ScriptValue >::value_type& >(result))), SWIGTYPE_p_OpalKelly__ScriptValue, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#rbegin(*args) ⇒ Object

call-seq:

rbegin -> std::vector< OpalKelly::ScriptValue >::reverse_iterator

Return a reverse iterator to the beginning (the end) of the okCScriptValues.



10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 10903

SWIGINTERN VALUE
_wrap_okCScriptValues_rbegin(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< OpalKelly::ScriptValue >::reverse_iterator 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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","rbegin", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  result = (arg1)->rbegin();
  vresult = SWIG_NewPointerObj(swig::make_nonconst_iterator(static_cast< const std::vector< OpalKelly::ScriptValue >::reverse_iterator & >(result),
      self),
    swig::Iterator::descriptor(),SWIG_POINTER_OWN);
  return vresult;
fail:
  return Qnil;
}

#reject(*args) ⇒ Object

call-seq:

reject -> okCScriptValues

Iterate thru each element in the okCScriptValues and reject those that fail a condition returning a new okCScriptValues. A block must be provided.



10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 10540

SWIGINTERN VALUE
_wrap_okCScriptValues_reject(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > > *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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","reject", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  result = (std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > > *)std_vector_Sl_OpalKelly_ScriptValue_Sg__reject(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#reject!(*args) ⇒ Object Also known as: delete_if

call-seq:

reject! -> okCScriptValues

Iterate thru each element in the okCScriptValues and reject those that fail a condition. A block must be provided. okCScriptValues is modified in place.



10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 10433

SWIGINTERN VALUE
_wrap_okCScriptValues_rejectN___(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > > *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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","reject_bang", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  result = (std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > > *)std_vector_Sl_OpalKelly_ScriptValue_Sg__reject_bang(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}

#rend(*args) ⇒ Object

call-seq:

rend -> std::vector< OpalKelly::ScriptValue >::reverse_iterator

Return a reverse iterator to past the end (past the beginning) of the okCScriptValues.



10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 10937

SWIGINTERN VALUE
_wrap_okCScriptValues_rend(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< OpalKelly::ScriptValue >::reverse_iterator 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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","rend", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  result = (arg1)->rend();
  vresult = SWIG_NewPointerObj(swig::make_nonconst_iterator(static_cast< const std::vector< OpalKelly::ScriptValue >::reverse_iterator & >(result),
      self),
    swig::Iterator::descriptor(),SWIG_POINTER_OWN);
  return vresult;
fail:
  return Qnil;
}

#reserve(*args) ⇒ Object

call-seq:

reserve(n)

Reserve memory in the okCScriptValues for a number of elements.



11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 11766

SWIGINTERN VALUE
_wrap_okCScriptValues_reserve(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  std::vector< OpalKelly::ScriptValue >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","reserve", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue >::size_type","reserve", 2, argv[0] ));
  } 
  arg2 = static_cast< std::vector< OpalKelly::ScriptValue >::size_type >(val2);
  (arg1)->reserve(arg2);
  return Qnil;
fail:
  return Qnil;
}

#resize(*args, self) ⇒ Object



11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 11502

SWIGINTERN VALUE _wrap_okCScriptValues_resize(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 4) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_okCScriptValues_resize__SWIG_0(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OpalKelly__ScriptValue, SWIG_POINTER_NO_NULL);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_okCScriptValues_resize__SWIG_1(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "okCScriptValues.resize", 
    "    void okCScriptValues.resize(std::vector< OpalKelly::ScriptValue >::size_type new_size)\n"
    "    void okCScriptValues.resize(std::vector< OpalKelly::ScriptValue >::size_type new_size, std::vector< OpalKelly::ScriptValue >::value_type const &x)\n");
  
  return Qnil;
}

#select(*args) ⇒ Object

call-seq:

select -> okCScriptValues

Iterate thru each element in the okCScriptValues and select those that match a condition. A block must be provided.



9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 9957

SWIGINTERN VALUE
_wrap_okCScriptValues_select(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > > *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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","select", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  result = (std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > > *)std_vector_Sl_OpalKelly_ScriptValue_Sg__select(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#shift(*args) ⇒ Object

call-seq:

shift -> VALUE

Remove and return element at the beginning of the okCScriptValues.



10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 10572

SWIGINTERN VALUE
_wrap_okCScriptValues_shift(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","shift", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  result = (VALUE)std_vector_Sl_OpalKelly_ScriptValue_Sg__shift(arg1);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}

#size(*args) ⇒ Object

call-seq:

size -> std::vector< OpalKelly::ScriptValue >::size_type

Size or Length of the okCScriptValues.



10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 10771

SWIGINTERN VALUE
_wrap_okCScriptValues_size(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< OpalKelly::ScriptValue >::size_type 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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > const *","size", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  result = ((std::vector< OpalKelly::ScriptValue > const *)arg1)->size();
  vresult = SWIG_From_size_t(static_cast< size_t >(result));
  return vresult;
fail:
  return Qnil;
}

#slice(*args) ⇒ Object

call-seq:

slice(i, length) -> VALUE

Return a slice (portion of) the okCScriptValues.



9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 9838

SWIGINTERN VALUE
_wrap_okCScriptValues_slice(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  std::vector< OpalKelly::ScriptValue >::difference_type arg2 ;
  std::vector< OpalKelly::ScriptValue >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  VALUE result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","slice", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue >::difference_type","slice", 2, argv[0] ));
  } 
  arg2 = static_cast< std::vector< OpalKelly::ScriptValue >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue >::difference_type","slice", 3, argv[1] ));
  } 
  arg3 = static_cast< std::vector< OpalKelly::ScriptValue >::difference_type >(val3);
  try {
    result = (VALUE)std_vector_Sl_OpalKelly_ScriptValue_Sg__slice(arg1,arg2,arg3);
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  vresult = result;
  return vresult;
fail:
  return Qnil;
}

#swap(*args) ⇒ Object



10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 10795

SWIGINTERN VALUE
_wrap_okCScriptValues_swap(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  std::vector< OpalKelly::ScriptValue > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","swap", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > &","swap", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::vector< OpalKelly::ScriptValue > &","swap", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp2);
  (arg1)->swap(*arg2);
  return Qnil;
fail:
  return Qnil;
}

#to_a(*args) ⇒ Object

call-seq:

to_a -> VALUE

Convert okCScriptValues to an Array.



9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 9774

SWIGINTERN VALUE
_wrap_okCScriptValues_to_a(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","to_a", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  result = (VALUE)std_vector_Sl_OpalKelly_ScriptValue_Sg__to_a(arg1);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}

#to_s(*args) ⇒ Object

call-seq:

to_s -> VALUE

Convert class to a String representation.



9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 9806

SWIGINTERN VALUE
_wrap_okCScriptValues_to_s(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 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_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","to_s", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  result = (VALUE)std_vector_Sl_OpalKelly_ScriptValue_Sg__to_s(arg1);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}

#unshift(*args) ⇒ Object

call-seq:

unshift(argc) -> okCScriptValues

Add one or more elements at the beginning of the okCScriptValues.



10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 10653

SWIGINTERN VALUE
_wrap_okCScriptValues_unshift(int argc, VALUE *argv, VALUE self) {
  std::vector< OpalKelly::ScriptValue > *arg1 = (std::vector< OpalKelly::ScriptValue > *) 0 ;
  int arg2 ;
  VALUE *arg3 = (VALUE *) 0 ;
  void *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > > *result = 0 ;
  VALUE vresult = Qnil;
  
  if (argc < 1) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< OpalKelly::ScriptValue > *","unshift", 1, self )); 
  }
  arg1 = reinterpret_cast< std::vector< OpalKelly::ScriptValue > * >(argp1);
  {
    arg2 = argc;
    arg3 = argv;
  }
  result = (std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > > *)std_vector_Sl_OpalKelly_ScriptValue_Sg__unshift(arg1,arg2,arg3,arg4);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}