Class: OpalKelly::OkStrings
- Inherits:
-
Object
- Object
- OpalKelly::OkStrings
- Defined in:
- ext/OpalKelly/FrontPanelDLL_wrap.cxx
Instance Method Summary collapse
- #[](*args, self) ⇒ Object
- #[]=(*args, self) ⇒ Object
- #__delete2__(*args) ⇒ Object
- #assign(*args) ⇒ Object
- #at(*args) ⇒ Object
- #back(*args) ⇒ Object
- #begin(*args) ⇒ Object
- #capacity(*args) ⇒ Object
- #clear(*args) ⇒ Object
- #delete(*args) ⇒ Object
- #delete_at(*args) ⇒ Object
- #dup(*args) ⇒ Object
- #each(*args) ⇒ Object
- #empty?(*args) ⇒ Object
- #end(*args) ⇒ Object
- #erase(*args, self) ⇒ Object
- #front(*args) ⇒ Object
- #get_allocator(*args) ⇒ Object
- #initialize(*args, self) ⇒ Object constructor
- #insert(*args, self) ⇒ Object
- #inspect(*args) ⇒ Object
- #map!(*args) ⇒ Object
- #pop(*args) ⇒ Object
- #push(*args) ⇒ Object (also: #<<)
- #rbegin(*args) ⇒ Object
- #reject(*args) ⇒ Object
- #reject!(*args) ⇒ Object (also: #delete_if)
- #rend(*args) ⇒ Object
- #reserve(*args) ⇒ Object
- #resize(*args, self) ⇒ Object
- #select(*args) ⇒ Object
- #shift(*args) ⇒ Object
- #size(*args) ⇒ Object
- #slice(*args) ⇒ Object
- #swap(*args) ⇒ Object
- #to_a(*args) ⇒ Object
- #to_s(*args) ⇒ Object
- #unshift(*args) ⇒ Object
Constructor Details
#initialize(*args, self) ⇒ Object
9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 9248
SWIGINTERN VALUE _wrap_new_okStrings(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_okStrings__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_okStrings__SWIG_2(nargs, args, self);
}
}
if (argc == 1) {
int _v;
int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_okStrings__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) {
int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_okStrings__SWIG_3(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 2, "okStrings.new",
" okStrings.new()\n"
" okStrings.new(std::vector< std::string > const &other)\n"
" okStrings.new(std::vector< std::string >::size_type size)\n"
" okStrings.new(std::vector< std::string >::size_type size, std::vector< std::string >::value_type const &value)\n");
return Qnil;
}
|
Instance Method Details
#[](*args, self) ⇒ Object
8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 8131
SWIGINTERN VALUE _wrap_okStrings___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< std::string,std::allocator< std::string > >**)(0));
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_okStrings___getitem____SWIG_1(nargs, args, self);
}
}
}
if (argc == 2) {
int _v;
int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
_v = SWIG_CheckState(res);
if (_v) {
_v = (argv[1] != 0);
if (_v) {
return _wrap_okStrings___getitem____SWIG_2(nargs, args, self);
}
}
}
if (argc == 3) {
int _v;
int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(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_okStrings___getitem____SWIG_0(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "__getitem__",
" VALUE __getitem__(std::vector< std::string >::difference_type i, std::vector< std::string >::difference_type length)\n"
" VALUE __getitem__(std::vector< std::string >::difference_type i)\n"
" VALUE __getitem__(VALUE i)\n");
return Qnil;
}
|
#[]=(*args, self) ⇒ Object
8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 8319
SWIGINTERN VALUE _wrap_okStrings___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< std::string,std::allocator< std::string > >**)(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_AsPtr_std_string(argv[2], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_okStrings___setitem____SWIG_0(nargs, args, self);
}
}
}
}
if (argc == 4) {
int _v;
int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(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< std::string,std::allocator< std::string > >**)(0));
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_okStrings___setitem____SWIG_1(nargs, args, self);
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 5, "__setitem__",
" VALUE __setitem__(std::vector< std::string >::difference_type i, std::vector< std::string >::value_type const &x)\n"
" VALUE __setitem__(std::vector< std::string >::difference_type i, std::vector< std::string >::difference_type length, std::vector< std::string,std::allocator< std::string > > const &v)\n");
return Qnil;
}
|
#__delete2__(*args) ⇒ Object
7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 7864
SWIGINTERN VALUE
_wrap_okStrings___delete2__(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
std::vector< std::string >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","__delete2__", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(argv[0], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::vector< std::string >::value_type const &","__delete2__", 2, argv[0] ));
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::vector< std::string >::value_type const &","__delete2__", 2, argv[0]));
}
arg2 = ptr;
}
result = (VALUE)std_vector_Sl_std_string_Sg____delete2__(arg1,(std::string const &)*arg2);
vresult = result;
if (SWIG_IsNewObj(res2)) delete arg2;
return vresult;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
return Qnil;
}
|
#assign(*args) ⇒ Object
9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 9377
SWIGINTERN VALUE
_wrap_okStrings_assign(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
std::vector< std::string >::size_type arg2 ;
std::vector< std::string >::value_type *arg3 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
size_t val2 ;
int ecode2 = 0 ;
int res3 = SWIG_OLDOBJ ;
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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","assign", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "std::vector< std::string >::size_type","assign", 2, argv[0] ));
}
arg2 = static_cast< std::vector< std::string >::size_type >(val2);
{
std::string *ptr = (std::string *)0;
res3 = SWIG_AsPtr_std_string(argv[1], &ptr);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "std::vector< std::string >::value_type const &","assign", 3, argv[1] ));
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::vector< std::string >::value_type const &","assign", 3, argv[1]));
}
arg3 = ptr;
}
(arg1)->assign(arg2,(std::vector< std::string >::value_type const &)*arg3);
if (SWIG_IsNewObj(res3)) delete arg3;
return Qnil;
fail:
if (SWIG_IsNewObj(res3)) delete arg3;
return Qnil;
}
|
#at(*args) ⇒ Object
7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 7983
SWIGINTERN VALUE
_wrap_okStrings_at(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
std::vector< std::string >::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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > const *","at", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
ecode2 = SWIG_AsVal_ptrdiff_t(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "std::vector< std::string >::difference_type","at", 2, argv[0] ));
}
arg2 = static_cast< std::vector< std::string >::difference_type >(val2);
result = (VALUE)std_vector_Sl_std_string_Sg__at((std::vector< std::string > const *)arg1,arg2);
vresult = result;
return vresult;
fail:
return Qnil;
}
|
#back(*args) ⇒ Object
9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 9345
SWIGINTERN VALUE
_wrap_okStrings_back(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::vector< std::string >::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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > const *","back", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
result = (std::vector< std::string >::value_type *) &((std::vector< std::string > const *)arg1)->back();
vresult = SWIG_From_std_string(static_cast< std::string >(*result));
return vresult;
fail:
return Qnil;
}
|
#begin(*args) ⇒ Object
8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 8796
SWIGINTERN VALUE
_wrap_okStrings_begin(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::vector< std::string >::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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","begin", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
result = (arg1)->begin();
vresult = SWIG_NewPointerObj(swig::make_nonconst_iterator(static_cast< const std::vector< std::string >::iterator & >(result),
self),
swig::Iterator::descriptor(),SWIG_POINTER_OWN);
return vresult;
fail:
return Qnil;
}
|
#capacity(*args) ⇒ Object
9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 9780
SWIGINTERN VALUE
_wrap_okStrings_capacity(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::vector< std::string >::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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > const *","capacity", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
result = ((std::vector< std::string > const *)arg1)->capacity();
vresult = SWIG_From_size_t(static_cast< size_t >(result));
return vresult;
fail:
return Qnil;
}
|
#clear(*args) ⇒ Object
8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 8932
SWIGINTERN VALUE
_wrap_okStrings_clear(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","clear", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
(arg1)->clear();
return Qnil;
fail:
return Qnil;
}
|
#delete(*args) ⇒ Object
9836 9837 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 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 9836
SWIGINTERN VALUE
_wrap_okStrings_delete(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","__delete__", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(argv[0], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::string const &","__delete__", 2, argv[0] ));
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","__delete__", 2, argv[0]));
}
arg2 = ptr;
}
result = (VALUE)std_vector_Sl_std_string_Sg____delete__(arg1,(std::string const &)*arg2);
vresult = result;
if (SWIG_IsNewObj(res2)) delete arg2;
return vresult;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
return Qnil;
}
|
#delete_at(*args) ⇒ Object
7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 7943
SWIGINTERN VALUE
_wrap_okStrings_delete_at(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
std::vector< std::string >::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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","delete_at", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
ecode2 = SWIG_AsVal_ptrdiff_t(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "std::vector< std::string >::difference_type","delete_at", 2, argv[0] ));
}
arg2 = static_cast< std::vector< std::string >::difference_type >(val2);
result = (VALUE)std_vector_Sl_std_string_Sg__delete_at(arg1,arg2);
vresult = result;
return vresult;
fail:
return Qnil;
}
|
#dup(*args) ⇒ Object
7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 7660
SWIGINTERN VALUE
_wrap_okStrings_dup(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::vector< std::string,std::allocator< std::string > > *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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","dup", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
result = (std::vector< std::string,std::allocator< std::string > > *)std_vector_Sl_std_string_Sg__dup(arg1);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
|
#each(*args) ⇒ Object
7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 7840
SWIGINTERN VALUE
_wrap_okStrings_each(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::vector< std::string,std::allocator< std::string > > *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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","each", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
result = (std::vector< std::string,std::allocator< std::string > > *)std_vector_Sl_std_string_Sg__each(arg1);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|
#empty?(*args) ⇒ Object
8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 8700
SWIGINTERN VALUE
_wrap_okStrings_emptyq___(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > const *","empty", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
result = (bool)((std::vector< std::string > const *)arg1)->empty();
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
|
#end(*args) ⇒ Object
8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 8830
SWIGINTERN VALUE
_wrap_okStrings_end(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::vector< std::string >::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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","end", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
result = (arg1)->end();
vresult = SWIG_NewPointerObj(swig::make_nonconst_iterator(static_cast< const std::vector< std::string >::iterator & >(result),
self),
swig::Iterator::descriptor(),SWIG_POINTER_OWN);
return vresult;
fail:
return Qnil;
}
|
#erase(*args, self) ⇒ Object
9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 9142
SWIGINTERN VALUE _wrap_okStrings_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< std::string,std::allocator< std::string > >**)(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< std::string >::iterator > *>(iter) != 0));
if (_v) {
return _wrap_okStrings_erase__SWIG_0(nargs, args, self);
}
}
}
if (argc == 3) {
int _v;
int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(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< std::string >::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< std::string >::iterator > *>(iter) != 0));
if (_v) {
return _wrap_okStrings_erase__SWIG_1(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "erase",
" std::vector< std::string >::iterator erase(std::vector< std::string >::iterator pos)\n"
" std::vector< std::string >::iterator erase(std::vector< std::string >::iterator first, std::vector< std::string >::iterator last)\n");
return Qnil;
}
|
#front(*args) ⇒ Object
9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 9313
SWIGINTERN VALUE
_wrap_okStrings_front(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::vector< std::string >::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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > const *","front", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
result = (std::vector< std::string >::value_type *) &((std::vector< std::string > const *)arg1)->front();
vresult = SWIG_From_std_string(static_cast< std::string >(*result));
return vresult;
fail:
return Qnil;
}
|
#get_allocator(*args) ⇒ Object
8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 8953
SWIGINTERN VALUE
_wrap_okStrings_get_allocator(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
SwigValueWrapper< std::allocator< std::string > > 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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > const *","get_allocator", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
result = ((std::vector< std::string > const *)arg1)->get_allocator();
vresult = SWIG_NewPointerObj((new std::vector< std::string >::allocator_type(static_cast< const std::vector< std::string >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_std__string_t, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
|
#insert(*args, self) ⇒ Object
9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 9650
SWIGINTERN VALUE _wrap_okStrings_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< std::string,std::allocator< std::string > >**)(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< std::string >::iterator > *>(iter) != 0));
if (_v) {
int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_okStrings_insert__SWIG_1(nargs, args, self);
}
}
}
}
if (argc == 3) {
int _v;
int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(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_okStrings_insert__SWIG_0(nargs, args, self);
}
return _wrap_okStrings_insert__SWIG_0(nargs, args, self);
}
}
}
}
if (argc == 4) {
int _v;
int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(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< std::string >::iterator > *>(iter) != 0));
if (_v) {
{
int res = SWIG_AsVal_size_t(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_okStrings_insert__SWIG_2(nargs, args, self);
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 5, "insert",
" std::vector< std::string,std::allocator< std::string > > insert(std::vector< std::string >::difference_type pos, int argc, VALUE *argv, ...)\n"
" std::vector< std::string >::iterator insert(std::vector< std::string >::iterator pos, std::vector< std::string >::value_type const &x)\n"
" void insert(std::vector< std::string >::iterator pos, std::vector< std::string >::size_type n, std::vector< std::string >::value_type const &x)\n");
return Qnil;
}
|
#inspect(*args) ⇒ Object
7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 7692
SWIGINTERN VALUE
_wrap_okStrings_inspect(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","inspect", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
result = (VALUE)std_vector_Sl_std_string_Sg__inspect(arg1);
vresult = result;
return vresult;
fail:
return Qnil;
}
|
#map!(*args) ⇒ Object
9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 9804
SWIGINTERN VALUE
_wrap_okStrings_mapN___(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::vector< std::string,std::allocator< std::string > > *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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","map_bang", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
result = (std::vector< std::string,std::allocator< std::string > > *)std_vector_Sl_std_string_Sg__map_bang(arg1);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|
#pop(*args) ⇒ Object
8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 8422
SWIGINTERN VALUE
_wrap_okStrings_pop(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","pop", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
result = (VALUE)std_vector_Sl_std_string_Sg__pop(arg1);
vresult = result;
return vresult;
fail:
return Qnil;
}
|
#push(*args) ⇒ Object Also known as: <<
8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 8454
SWIGINTERN VALUE
_wrap_okStrings_push(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
std::vector< std::string >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
std::vector< std::string >::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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","push", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(argv[0], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::vector< std::string >::value_type const &","push", 2, argv[0] ));
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::vector< std::string >::value_type const &","push", 2, argv[0]));
}
arg2 = ptr;
}
result = std_vector_Sl_std_string_Sg__push(arg1,(std::string const &)*arg2);
vresult = SWIG_From_std_string(static_cast< std::string >(result));
if (SWIG_IsNewObj(res2)) delete arg2;
return vresult;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
return Qnil;
}
|
#rbegin(*args) ⇒ Object
8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 8864
SWIGINTERN VALUE
_wrap_okStrings_rbegin(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::vector< std::string >::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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","rbegin", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
result = (arg1)->rbegin();
vresult = SWIG_NewPointerObj(swig::make_nonconst_iterator(static_cast< const std::vector< std::string >::reverse_iterator & >(result),
self),
swig::Iterator::descriptor(),SWIG_POINTER_OWN);
return vresult;
fail:
return Qnil;
}
|
#reject(*args) ⇒ Object
8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 8501
SWIGINTERN VALUE
_wrap_okStrings_reject(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::vector< std::string,std::allocator< std::string > > *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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","reject", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
result = (std::vector< std::string,std::allocator< std::string > > *)std_vector_Sl_std_string_Sg__reject(arg1);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
|
#reject!(*args) ⇒ Object Also known as: delete_if
8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 8390
SWIGINTERN VALUE
_wrap_okStrings_rejectN___(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::vector< std::string,std::allocator< std::string > > *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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","reject_bang", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
result = (std::vector< std::string,std::allocator< std::string > > *)std_vector_Sl_std_string_Sg__reject_bang(arg1);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|
#rend(*args) ⇒ Object
8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 8898
SWIGINTERN VALUE
_wrap_okStrings_rend(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::vector< std::string >::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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","rend", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
result = (arg1)->rend();
vresult = SWIG_NewPointerObj(swig::make_nonconst_iterator(static_cast< const std::vector< std::string >::reverse_iterator & >(result),
self),
swig::Iterator::descriptor(),SWIG_POINTER_OWN);
return vresult;
fail:
return Qnil;
}
|
#reserve(*args) ⇒ Object
9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 9743
SWIGINTERN VALUE
_wrap_okStrings_reserve(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
std::vector< std::string >::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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","reserve", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "std::vector< std::string >::size_type","reserve", 2, argv[0] ));
}
arg2 = static_cast< std::vector< std::string >::size_type >(val2);
(arg1)->reserve(arg2);
return Qnil;
fail:
return Qnil;
}
|
#resize(*args, self) ⇒ Object
9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 9474
SWIGINTERN VALUE _wrap_okStrings_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< std::string,std::allocator< std::string > >**)(0));
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_size_t(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_okStrings_resize__SWIG_0(nargs, args, self);
}
}
}
if (argc == 3) {
int _v;
int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_size_t(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_okStrings_resize__SWIG_1(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "okStrings.resize",
" void okStrings.resize(std::vector< std::string >::size_type new_size)\n"
" void okStrings.resize(std::vector< std::string >::size_type new_size, std::vector< std::string >::value_type const &x)\n");
return Qnil;
}
|
#select(*args) ⇒ Object
7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 7911
SWIGINTERN VALUE
_wrap_okStrings_select(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::vector< std::string,std::allocator< std::string > > *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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","select", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
result = (std::vector< std::string,std::allocator< std::string > > *)std_vector_Sl_std_string_Sg__select(arg1);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
|
#shift(*args) ⇒ Object
8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 8533
SWIGINTERN VALUE
_wrap_okStrings_shift(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","shift", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
result = (VALUE)std_vector_Sl_std_string_Sg__shift(arg1);
vresult = result;
return vresult;
fail:
return Qnil;
}
|
#size(*args) ⇒ Object
8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 8732
SWIGINTERN VALUE
_wrap_okStrings_size(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::vector< std::string >::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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > const *","size", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
result = ((std::vector< std::string > const *)arg1)->size();
vresult = SWIG_From_size_t(static_cast< size_t >(result));
return vresult;
fail:
return Qnil;
}
|
#slice(*args) ⇒ Object
7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 7788
SWIGINTERN VALUE
_wrap_okStrings_slice(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
std::vector< std::string >::difference_type arg2 ;
std::vector< std::string >::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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","slice", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
ecode2 = SWIG_AsVal_ptrdiff_t(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "std::vector< std::string >::difference_type","slice", 2, argv[0] ));
}
arg2 = static_cast< std::vector< std::string >::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< std::string >::difference_type","slice", 3, argv[1] ));
}
arg3 = static_cast< std::vector< std::string >::difference_type >(val3);
try {
result = (VALUE)std_vector_Sl_std_string_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
8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 8756
SWIGINTERN VALUE
_wrap_okStrings_swap(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
std::vector< std::string > *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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","swap", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::vector< std::string > &","swap", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::vector< std::string > &","swap", 2, argv[0]));
}
arg2 = reinterpret_cast< std::vector< std::string > * >(argp2);
(arg1)->swap(*arg2);
return Qnil;
fail:
return Qnil;
}
|
#to_a(*args) ⇒ Object
7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 7724
SWIGINTERN VALUE
_wrap_okStrings_to_a(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","to_a", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
result = (VALUE)std_vector_Sl_std_string_Sg__to_a(arg1);
vresult = result;
return vresult;
fail:
return Qnil;
}
|
#to_s(*args) ⇒ Object
7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 7756
SWIGINTERN VALUE
_wrap_okStrings_to_s(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","to_s", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
result = (VALUE)std_vector_Sl_std_string_Sg__to_s(arg1);
vresult = result;
return vresult;
fail:
return Qnil;
}
|
#unshift(*args) ⇒ Object
8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 8614
SWIGINTERN VALUE
_wrap_okStrings_unshift(int argc, VALUE *argv, VALUE self) {
std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
int arg2 ;
VALUE *arg3 = (VALUE *) 0 ;
void *arg4 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::vector< std::string,std::allocator< std::string > > *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_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< std::string > *","unshift", 1, self ));
}
arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
{
arg2 = argc;
arg3 = argv;
}
result = (std::vector< std::string,std::allocator< std::string > > *)std_vector_Sl_std_string_Sg__unshift(arg1,arg2,arg3,arg4);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|