Class: CNTK::StdUSetDistributedWorkerDescriptor

Inherits:
Object
  • Object
show all
Defined in:
ext/cntk/cntk_wrap.cxx

Instance Method Summary collapse

Constructor Details

#initialize(*args, self) ⇒ Object



15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
# File 'ext/cntk/cntk_wrap.cxx', line 15679

SWIGINTERN VALUE _wrap_new_StdUSetDistributedWorkerDescriptor(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[1];
  int ii;
  
  argc = nargs;
  if (argc > 1) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 0) {
    return _wrap_new_StdUSetDistributedWorkerDescriptor__SWIG_0(nargs, args, self);
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::unordered_set< CNTK::DistributedWorkerDescriptor,std::hash< CNTK::DistributedWorkerDescriptor >,std::equal_to< CNTK::DistributedWorkerDescriptor >,std::allocator< CNTK::DistributedWorkerDescriptor > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_StdUSetDistributedWorkerDescriptor__SWIG_1(nargs, args, self);
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 1, "StdUSetDistributedWorkerDescriptor.new", 
    "    StdUSetDistributedWorkerDescriptor.new()\n"
    "    StdUSetDistributedWorkerDescriptor.new(std::unordered_set< CNTK::DistributedWorkerDescriptor > const &)\n");
  
  return Qnil;
}

Instance Method Details

#[](*args) ⇒ Object

call-seq:

[](i) -> DistributedWorkerDescriptor

Element accessor/slicing.



15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
# File 'ext/cntk/cntk_wrap.cxx', line 15581

SWIGINTERN VALUE
_wrap_StdUSetDistributedWorkerDescriptor___getitem__(int argc, VALUE *argv, VALUE self) {
  std::unordered_set< CNTK::DistributedWorkerDescriptor > *arg1 = (std::unordered_set< CNTK::DistributedWorkerDescriptor > *) 0 ;
  std::unordered_set< CNTK::DistributedWorkerDescriptor >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  std::unordered_set< CNTK::DistributedWorkerDescriptor >::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__unordered_setT_CNTK__DistributedWorkerDescriptor_std__hashT_CNTK__DistributedWorkerDescriptor_t_std__equal_toT_CNTK__DistributedWorkerDescriptor_t_std__allocatorT_CNTK__DistributedWorkerDescriptor_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor > const *","__getitem__", 1, self )); 
  }
  arg1 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor >::difference_type","__getitem__", 2, argv[0] ));
  } 
  arg2 = static_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor >::difference_type >(val2);
  try {
    result = std_unordered_set_Sl_CNTK_DistributedWorkerDescriptor_Sg____getitem__((std::unordered_set< CNTK::DistributedWorkerDescriptor > const *)arg1,arg2);
  }
  catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  
  vresult = SWIG_NewPointerObj((new std::unordered_set< CNTK::DistributedWorkerDescriptor >::value_type(static_cast< const std::unordered_set< CNTK::DistributedWorkerDescriptor >::value_type& >(result))), SWIGTYPE_p_CNTK__DistributedWorkerDescriptor, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#__delete2__(*args) ⇒ Object



15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
# File 'ext/cntk/cntk_wrap.cxx', line 15351

SWIGINTERN VALUE
_wrap_StdUSetDistributedWorkerDescriptor___delete2__(int argc, VALUE *argv, VALUE self) {
  std::unordered_set< CNTK::DistributedWorkerDescriptor > *arg1 = (std::unordered_set< CNTK::DistributedWorkerDescriptor > *) 0 ;
  std::unordered_set< CNTK::DistributedWorkerDescriptor >::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__unordered_setT_CNTK__DistributedWorkerDescriptor_std__hashT_CNTK__DistributedWorkerDescriptor_t_std__equal_toT_CNTK__DistributedWorkerDescriptor_t_std__allocatorT_CNTK__DistributedWorkerDescriptor_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor > *","__delete2__", 1, self )); 
  }
  arg1 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor > * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CNTK__DistributedWorkerDescriptor,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor >::value_type const &","__delete2__", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::unordered_set< CNTK::DistributedWorkerDescriptor >::value_type const &","__delete2__", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor >::value_type * >(argp2);
  result = (VALUE)std_unordered_set_Sl_CNTK_DistributedWorkerDescriptor_Sg____delete2__(arg1,(CNTK::DistributedWorkerDescriptor const &)*arg2);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}

#begin(*args) ⇒ Object

call-seq:

begin -> std::unordered_set< CNTK::DistributedWorkerDescriptor >::iterator

Return an iterator to the beginning of the StdUSetDistributedWorkerDescriptor.



15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
# File 'ext/cntk/cntk_wrap.cxx', line 15928

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

#clear(*args) ⇒ Object

call-seq:

clear

Clear StdUSetDistributedWorkerDescriptor contents.



15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
# File 'ext/cntk/cntk_wrap.cxx', line 15785

SWIGINTERN VALUE
_wrap_StdUSetDistributedWorkerDescriptor_clear(int argc, VALUE *argv, VALUE self) {
  std::unordered_set< CNTK::DistributedWorkerDescriptor > *arg1 = (std::unordered_set< CNTK::DistributedWorkerDescriptor > *) 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__unordered_setT_CNTK__DistributedWorkerDescriptor_std__hashT_CNTK__DistributedWorkerDescriptor_t_std__equal_toT_CNTK__DistributedWorkerDescriptor_t_std__allocatorT_CNTK__DistributedWorkerDescriptor_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor > *","clear", 1, self )); 
  }
  arg1 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor > * >(argp1);
  (arg1)->clear();
  return Qnil;
fail:
  return Qnil;
}

#count(*args) ⇒ Object



15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
# File 'ext/cntk/cntk_wrap.cxx', line 15884

SWIGINTERN VALUE
_wrap_StdUSetDistributedWorkerDescriptor_count(int argc, VALUE *argv, VALUE self) {
  std::unordered_set< CNTK::DistributedWorkerDescriptor > *arg1 = (std::unordered_set< CNTK::DistributedWorkerDescriptor > *) 0 ;
  std::unordered_set< CNTK::DistributedWorkerDescriptor >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  std::unordered_set< CNTK::DistributedWorkerDescriptor >::size_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__unordered_setT_CNTK__DistributedWorkerDescriptor_std__hashT_CNTK__DistributedWorkerDescriptor_t_std__equal_toT_CNTK__DistributedWorkerDescriptor_t_std__allocatorT_CNTK__DistributedWorkerDescriptor_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor > const *","count", 1, self )); 
  }
  arg1 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor > * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CNTK__DistributedWorkerDescriptor,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor >::key_type const &","count", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::unordered_set< CNTK::DistributedWorkerDescriptor >::key_type const &","count", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor >::key_type * >(argp2);
  result = ((std::unordered_set< CNTK::DistributedWorkerDescriptor > const *)arg1)->count((std::unordered_set< CNTK::DistributedWorkerDescriptor >::key_type const &)*arg2);
  vresult = SWIG_From_size_t(static_cast< size_t >(result));
  return vresult;
fail:
  return Qnil;
}

#delete_at(*args) ⇒ Object

call-seq:

delete_at(i) -> VALUE

Delete an element at a certain index.



15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
# File 'ext/cntk/cntk_wrap.cxx', line 15428

SWIGINTERN VALUE
_wrap_StdUSetDistributedWorkerDescriptor_delete_at(int argc, VALUE *argv, VALUE self) {
  std::unordered_set< CNTK::DistributedWorkerDescriptor > *arg1 = (std::unordered_set< CNTK::DistributedWorkerDescriptor > *) 0 ;
  std::unordered_set< CNTK::DistributedWorkerDescriptor >::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__unordered_setT_CNTK__DistributedWorkerDescriptor_std__hashT_CNTK__DistributedWorkerDescriptor_t_std__equal_toT_CNTK__DistributedWorkerDescriptor_t_std__allocatorT_CNTK__DistributedWorkerDescriptor_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor > *","delete_at", 1, self )); 
  }
  arg1 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor >::difference_type","delete_at", 2, argv[0] ));
  } 
  arg2 = static_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor >::difference_type >(val2);
  result = (VALUE)std_unordered_set_Sl_CNTK_DistributedWorkerDescriptor_Sg__delete_at(arg1,arg2);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}

#dup(*args) ⇒ Object

call-seq:

dup -> StdUSetDistributedWorkerDescriptor

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



15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
# File 'ext/cntk/cntk_wrap.cxx', line 15140

SWIGINTERN VALUE
_wrap_StdUSetDistributedWorkerDescriptor_dup(int argc, VALUE *argv, VALUE self) {
  std::unordered_set< CNTK::DistributedWorkerDescriptor > *arg1 = (std::unordered_set< CNTK::DistributedWorkerDescriptor > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::unordered_set< CNTK::DistributedWorkerDescriptor,std::hash< CNTK::DistributedWorkerDescriptor >,std::equal_to< CNTK::DistributedWorkerDescriptor >,std::allocator< CNTK::DistributedWorkerDescriptor > > *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__unordered_setT_CNTK__DistributedWorkerDescriptor_std__hashT_CNTK__DistributedWorkerDescriptor_t_std__equal_toT_CNTK__DistributedWorkerDescriptor_t_std__allocatorT_CNTK__DistributedWorkerDescriptor_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor > *","dup", 1, self )); 
  }
  arg1 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor > * >(argp1);
  result = (std::unordered_set< CNTK::DistributedWorkerDescriptor,std::hash< CNTK::DistributedWorkerDescriptor >,std::equal_to< CNTK::DistributedWorkerDescriptor >,std::allocator< CNTK::DistributedWorkerDescriptor > > *)std_unordered_set_Sl_CNTK_DistributedWorkerDescriptor_Sg__dup(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__unordered_setT_CNTK__DistributedWorkerDescriptor_std__hashT_CNTK__DistributedWorkerDescriptor_t_std__equal_toT_CNTK__DistributedWorkerDescriptor_t_std__allocatorT_CNTK__DistributedWorkerDescriptor_t_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#each(*args) ⇒ Object

call-seq:

each -> StdUSetDistributedWorkerDescriptor

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



15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
# File 'ext/cntk/cntk_wrap.cxx', line 15327

SWIGINTERN VALUE
_wrap_StdUSetDistributedWorkerDescriptor_each(int argc, VALUE *argv, VALUE self) {
  std::unordered_set< CNTK::DistributedWorkerDescriptor > *arg1 = (std::unordered_set< CNTK::DistributedWorkerDescriptor > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::unordered_set< CNTK::DistributedWorkerDescriptor,std::hash< CNTK::DistributedWorkerDescriptor >,std::equal_to< CNTK::DistributedWorkerDescriptor >,std::allocator< CNTK::DistributedWorkerDescriptor > > *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__unordered_setT_CNTK__DistributedWorkerDescriptor_std__hashT_CNTK__DistributedWorkerDescriptor_t_std__equal_toT_CNTK__DistributedWorkerDescriptor_t_std__allocatorT_CNTK__DistributedWorkerDescriptor_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor > *","each", 1, self )); 
  }
  arg1 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor > * >(argp1);
  result = (std::unordered_set< CNTK::DistributedWorkerDescriptor,std::hash< CNTK::DistributedWorkerDescriptor >,std::equal_to< CNTK::DistributedWorkerDescriptor >,std::allocator< CNTK::DistributedWorkerDescriptor > > *)std_unordered_set_Sl_CNTK_DistributedWorkerDescriptor_Sg__each(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__unordered_setT_CNTK__DistributedWorkerDescriptor_std__hashT_CNTK__DistributedWorkerDescriptor_t_std__equal_toT_CNTK__DistributedWorkerDescriptor_t_std__allocatorT_CNTK__DistributedWorkerDescriptor_t_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}

#empty?(*args) ⇒ Boolean

call-seq:

empty? -> bool

Check if the StdUSetDistributedWorkerDescriptor is empty or not.

Returns:

  • (Boolean)


15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
# File 'ext/cntk/cntk_wrap.cxx', line 15719

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

#end(*args) ⇒ Object

call-seq:

end -> std::unordered_set< CNTK::DistributedWorkerDescriptor >::iterator

Return an iterator to past the end of the StdUSetDistributedWorkerDescriptor.



15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
# File 'ext/cntk/cntk_wrap.cxx', line 15963

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

#equal_range(*args) ⇒ Object



16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
# File 'ext/cntk/cntk_wrap.cxx', line 16196

SWIGINTERN VALUE
_wrap_StdUSetDistributedWorkerDescriptor_equal_range(int argc, VALUE *argv, VALUE self) {
  std::unordered_set< CNTK::DistributedWorkerDescriptor > *arg1 = (std::unordered_set< CNTK::DistributedWorkerDescriptor > *) 0 ;
  std::unordered_set< CNTK::DistributedWorkerDescriptor >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  SwigValueWrapper< std::pair< std::unordered_set< CNTK::DistributedWorkerDescriptor >::iterator,std::unordered_set< CNTK::DistributedWorkerDescriptor >::iterator > > 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__unordered_setT_CNTK__DistributedWorkerDescriptor_std__hashT_CNTK__DistributedWorkerDescriptor_t_std__equal_toT_CNTK__DistributedWorkerDescriptor_t_std__allocatorT_CNTK__DistributedWorkerDescriptor_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor > *","equal_range", 1, self )); 
  }
  arg1 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor > * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CNTK__DistributedWorkerDescriptor,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor >::key_type const &","equal_range", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::unordered_set< CNTK::DistributedWorkerDescriptor >::key_type const &","equal_range", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor >::key_type * >(argp2);
  result = (arg1)->equal_range((std::unordered_set< CNTK::DistributedWorkerDescriptor >::key_type const &)*arg2);
  vresult = rb_ary_new2(2);
  rb_ary_push(vresult, SWIG_NewPointerObj(swig::make_const_iterator(static_cast< const std::pair< std::unordered_set< CNTK::DistributedWorkerDescriptor >::iterator,std::unordered_set< CNTK::DistributedWorkerDescriptor >::iterator > & >(result).first),
      swig::ConstIterator::descriptor(),SWIG_POINTER_OWN));
  rb_ary_push(vresult, SWIG_NewPointerObj(swig::make_const_iterator(static_cast< const std::pair< std::unordered_set< CNTK::DistributedWorkerDescriptor >::iterator,std::unordered_set< CNTK::DistributedWorkerDescriptor >::iterator > & >(result).second),
      swig::ConstIterator::descriptor(),SWIG_POINTER_OWN));
  return vresult;
fail:
  return Qnil;
}

#erase(*args, self) ⇒ Object

call-seq:

erase(x) -> std::unordered_set< CNTK::DistributedWorkerDescriptor >::size_type
erase(pos)
erase(first, last)

Delete a portion of the StdUSetDistributedWorkerDescriptor.



16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
# File 'ext/cntk/cntk_wrap.cxx', line 16084

SWIGINTERN VALUE _wrap_StdUSetDistributedWorkerDescriptor_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::unordered_set< CNTK::DistributedWorkerDescriptor,std::hash< CNTK::DistributedWorkerDescriptor >,std::equal_to< CNTK::DistributedWorkerDescriptor >,std::allocator< CNTK::DistributedWorkerDescriptor > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__DistributedWorkerDescriptor, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_StdUSetDistributedWorkerDescriptor_erase__SWIG_0(nargs, args, self);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::unordered_set< CNTK::DistributedWorkerDescriptor,std::hash< CNTK::DistributedWorkerDescriptor >,std::equal_to< CNTK::DistributedWorkerDescriptor >,std::allocator< CNTK::DistributedWorkerDescriptor > >**)(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::unordered_set< CNTK::DistributedWorkerDescriptor >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_StdUSetDistributedWorkerDescriptor_erase__SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::unordered_set< CNTK::DistributedWorkerDescriptor,std::hash< CNTK::DistributedWorkerDescriptor >,std::equal_to< CNTK::DistributedWorkerDescriptor >,std::allocator< CNTK::DistributedWorkerDescriptor > >**)(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::unordered_set< CNTK::DistributedWorkerDescriptor >::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::unordered_set< CNTK::DistributedWorkerDescriptor >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_StdUSetDistributedWorkerDescriptor_erase__SWIG_2(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "StdUSetDistributedWorkerDescriptor.erase", 
    "    std::unordered_set< CNTK::DistributedWorkerDescriptor >::size_type StdUSetDistributedWorkerDescriptor.erase(std::unordered_set< CNTK::DistributedWorkerDescriptor >::key_type const &x)\n"
    "    void StdUSetDistributedWorkerDescriptor.erase(std::unordered_set< CNTK::DistributedWorkerDescriptor >::iterator pos)\n"
    "    void StdUSetDistributedWorkerDescriptor.erase(std::unordered_set< CNTK::DistributedWorkerDescriptor >::iterator first, std::unordered_set< CNTK::DistributedWorkerDescriptor >::iterator last)\n");
  
  return Qnil;
}

#find(*args) ⇒ Object

call-seq:

find(x) -> std::unordered_set< CNTK::DistributedWorkerDescriptor >::iterator

Find an element in the class.



16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
# File 'ext/cntk/cntk_wrap.cxx', line 16159

SWIGINTERN VALUE
_wrap_StdUSetDistributedWorkerDescriptor_find(int argc, VALUE *argv, VALUE self) {
  std::unordered_set< CNTK::DistributedWorkerDescriptor > *arg1 = (std::unordered_set< CNTK::DistributedWorkerDescriptor > *) 0 ;
  std::unordered_set< CNTK::DistributedWorkerDescriptor >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  std::unordered_set< CNTK::DistributedWorkerDescriptor >::iterator 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__unordered_setT_CNTK__DistributedWorkerDescriptor_std__hashT_CNTK__DistributedWorkerDescriptor_t_std__equal_toT_CNTK__DistributedWorkerDescriptor_t_std__allocatorT_CNTK__DistributedWorkerDescriptor_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor > *","find", 1, self )); 
  }
  arg1 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor > * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CNTK__DistributedWorkerDescriptor,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor >::key_type const &","find", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::unordered_set< CNTK::DistributedWorkerDescriptor >::key_type const &","find", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor >::key_type * >(argp2);
  result = (arg1)->find((std::unordered_set< CNTK::DistributedWorkerDescriptor >::key_type const &)*arg2);
  vresult = SWIG_NewPointerObj(swig::make_set_nonconst_iterator(static_cast< const std::unordered_set< CNTK::DistributedWorkerDescriptor >::iterator & >(result),
      self),
    swig::Iterator::descriptor(),SWIG_POINTER_OWN);
  return vresult;
fail:
  return Qnil;
}

#include?(*args) ⇒ Boolean

Returns:

  • (Boolean)


15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
# File 'ext/cntk/cntk_wrap.cxx', line 15537

SWIGINTERN VALUE
_wrap_StdUSetDistributedWorkerDescriptor_includeq___(int argc, VALUE *argv, VALUE self) {
  std::unordered_set< CNTK::DistributedWorkerDescriptor > *arg1 = (std::unordered_set< CNTK::DistributedWorkerDescriptor > *) 0 ;
  std::unordered_set< CNTK::DistributedWorkerDescriptor >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__unordered_setT_CNTK__DistributedWorkerDescriptor_std__hashT_CNTK__DistributedWorkerDescriptor_t_std__equal_toT_CNTK__DistributedWorkerDescriptor_t_std__allocatorT_CNTK__DistributedWorkerDescriptor_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor > *","__contains__", 1, self )); 
  }
  arg1 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor > * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CNTK__DistributedWorkerDescriptor,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor >::value_type const &","__contains__", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::unordered_set< CNTK::DistributedWorkerDescriptor >::value_type const &","__contains__", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor >::value_type * >(argp2);
  result = (bool)std_unordered_set_Sl_CNTK_DistributedWorkerDescriptor_Sg____contains__(arg1,(CNTK::DistributedWorkerDescriptor const &)*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}

#insert(*args) ⇒ Object

call-seq:

insert(x) -> std::pair< std::unordered_set< CNTK::DistributedWorkerDescriptor >::iterator,bool >

Insert one or more new elements in the StdUSetDistributedWorkerDescriptor.



16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
# File 'ext/cntk/cntk_wrap.cxx', line 16244

SWIGINTERN VALUE
_wrap_StdUSetDistributedWorkerDescriptor_insert(int argc, VALUE *argv, VALUE self) {
  std::unordered_set< CNTK::DistributedWorkerDescriptor > *arg1 = (std::unordered_set< CNTK::DistributedWorkerDescriptor > *) 0 ;
  std::unordered_set< CNTK::DistributedWorkerDescriptor >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  SwigValueWrapper< std::pair< std::unordered_set< CNTK::DistributedWorkerDescriptor >::iterator,bool > > result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__unordered_setT_CNTK__DistributedWorkerDescriptor_std__hashT_CNTK__DistributedWorkerDescriptor_t_std__equal_toT_CNTK__DistributedWorkerDescriptor_t_std__allocatorT_CNTK__DistributedWorkerDescriptor_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor > *","insert", 1, self )); 
  }
  arg1 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor > * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CNTK__DistributedWorkerDescriptor,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor >::value_type const &","insert", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::unordered_set< CNTK::DistributedWorkerDescriptor >::value_type const &","insert", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor >::value_type * >(argp2);
  result = (arg1)->insert((std::unordered_set< CNTK::DistributedWorkerDescriptor >::value_type const &)*arg2);
  vresult = rb_ary_new2(2);
  rb_ary_push(vresult, SWIG_NewPointerObj(swig::make_set_nonconst_iterator(static_cast< std::pair< std::unordered_set< CNTK::DistributedWorkerDescriptor >::iterator,bool > & >(result).first),
      swig::Iterator::descriptor(),SWIG_POINTER_OWN));
  rb_ary_push(vresult, SWIG_From_bool  (static_cast< const std::pair< std::unordered_set< CNTK::DistributedWorkerDescriptor >::iterator,bool > & >(result).second));
  return vresult;
fail:
  return Qnil;
}

#inspect(*args) ⇒ Object

call-seq:

inspect -> VALUE

Inspect class and its contents.



15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
# File 'ext/cntk/cntk_wrap.cxx', line 15173

SWIGINTERN VALUE
_wrap_StdUSetDistributedWorkerDescriptor_inspect(int argc, VALUE *argv, VALUE self) {
  std::unordered_set< CNTK::DistributedWorkerDescriptor > *arg1 = (std::unordered_set< CNTK::DistributedWorkerDescriptor > *) 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__unordered_setT_CNTK__DistributedWorkerDescriptor_std__hashT_CNTK__DistributedWorkerDescriptor_t_std__equal_toT_CNTK__DistributedWorkerDescriptor_t_std__allocatorT_CNTK__DistributedWorkerDescriptor_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor > *","inspect", 1, self )); 
  }
  arg1 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor > * >(argp1);
  result = (VALUE)std_unordered_set_Sl_CNTK_DistributedWorkerDescriptor_Sg__inspect(arg1);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}

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

call-seq:

push(x) -> DistributedWorkerDescriptor

Add an element at the end of the StdUSetDistributedWorkerDescriptor.



15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
# File 'ext/cntk/cntk_wrap.cxx', line 15502

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

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

call-seq:

reject! -> StdUSetDistributedWorkerDescriptor

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



15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
# File 'ext/cntk/cntk_wrap.cxx', line 15469

SWIGINTERN VALUE
_wrap_StdUSetDistributedWorkerDescriptor_rejectN___(int argc, VALUE *argv, VALUE self) {
  std::unordered_set< CNTK::DistributedWorkerDescriptor > *arg1 = (std::unordered_set< CNTK::DistributedWorkerDescriptor > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::unordered_set< CNTK::DistributedWorkerDescriptor,std::hash< CNTK::DistributedWorkerDescriptor >,std::equal_to< CNTK::DistributedWorkerDescriptor >,std::allocator< CNTK::DistributedWorkerDescriptor > > *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__unordered_setT_CNTK__DistributedWorkerDescriptor_std__hashT_CNTK__DistributedWorkerDescriptor_t_std__equal_toT_CNTK__DistributedWorkerDescriptor_t_std__allocatorT_CNTK__DistributedWorkerDescriptor_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor > *","reject_bang", 1, self )); 
  }
  arg1 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor > * >(argp1);
  result = (std::unordered_set< CNTK::DistributedWorkerDescriptor,std::hash< CNTK::DistributedWorkerDescriptor >,std::equal_to< CNTK::DistributedWorkerDescriptor >,std::allocator< CNTK::DistributedWorkerDescriptor > > *)std_unordered_set_Sl_CNTK_DistributedWorkerDescriptor_Sg__reject_bang(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__unordered_setT_CNTK__DistributedWorkerDescriptor_std__hashT_CNTK__DistributedWorkerDescriptor_t_std__equal_toT_CNTK__DistributedWorkerDescriptor_t_std__allocatorT_CNTK__DistributedWorkerDescriptor_t_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}

#select(*args) ⇒ Object

call-seq:

select -> StdUSetDistributedWorkerDescriptor

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



15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
# File 'ext/cntk/cntk_wrap.cxx', line 15395

SWIGINTERN VALUE
_wrap_StdUSetDistributedWorkerDescriptor_select(int argc, VALUE *argv, VALUE self) {
  std::unordered_set< CNTK::DistributedWorkerDescriptor > *arg1 = (std::unordered_set< CNTK::DistributedWorkerDescriptor > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::unordered_set< CNTK::DistributedWorkerDescriptor,std::hash< CNTK::DistributedWorkerDescriptor >,std::equal_to< CNTK::DistributedWorkerDescriptor >,std::allocator< CNTK::DistributedWorkerDescriptor > > *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__unordered_setT_CNTK__DistributedWorkerDescriptor_std__hashT_CNTK__DistributedWorkerDescriptor_t_std__equal_toT_CNTK__DistributedWorkerDescriptor_t_std__allocatorT_CNTK__DistributedWorkerDescriptor_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor > *","select", 1, self )); 
  }
  arg1 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor > * >(argp1);
  result = (std::unordered_set< CNTK::DistributedWorkerDescriptor,std::hash< CNTK::DistributedWorkerDescriptor >,std::equal_to< CNTK::DistributedWorkerDescriptor >,std::allocator< CNTK::DistributedWorkerDescriptor > > *)std_unordered_set_Sl_CNTK_DistributedWorkerDescriptor_Sg__select(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__unordered_setT_CNTK__DistributedWorkerDescriptor_std__hashT_CNTK__DistributedWorkerDescriptor_t_std__equal_toT_CNTK__DistributedWorkerDescriptor_t_std__allocatorT_CNTK__DistributedWorkerDescriptor_t_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#size(*args) ⇒ Object

call-seq:

size -> std::unordered_set< CNTK::DistributedWorkerDescriptor >::size_type

Size or Length of the StdUSetDistributedWorkerDescriptor.



15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
# File 'ext/cntk/cntk_wrap.cxx', line 15752

SWIGINTERN VALUE
_wrap_StdUSetDistributedWorkerDescriptor_size(int argc, VALUE *argv, VALUE self) {
  std::unordered_set< CNTK::DistributedWorkerDescriptor > *arg1 = (std::unordered_set< CNTK::DistributedWorkerDescriptor > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::unordered_set< CNTK::DistributedWorkerDescriptor >::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__unordered_setT_CNTK__DistributedWorkerDescriptor_std__hashT_CNTK__DistributedWorkerDescriptor_t_std__equal_toT_CNTK__DistributedWorkerDescriptor_t_std__allocatorT_CNTK__DistributedWorkerDescriptor_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor > const *","size", 1, self )); 
  }
  arg1 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor > * >(argp1);
  result = ((std::unordered_set< CNTK::DistributedWorkerDescriptor > 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 StdUSetDistributedWorkerDescriptor.



15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
# File 'ext/cntk/cntk_wrap.cxx', line 15272

SWIGINTERN VALUE
_wrap_StdUSetDistributedWorkerDescriptor_slice(int argc, VALUE *argv, VALUE self) {
  std::unordered_set< CNTK::DistributedWorkerDescriptor > *arg1 = (std::unordered_set< CNTK::DistributedWorkerDescriptor > *) 0 ;
  std::unordered_set< CNTK::DistributedWorkerDescriptor >::difference_type arg2 ;
  std::unordered_set< CNTK::DistributedWorkerDescriptor >::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__unordered_setT_CNTK__DistributedWorkerDescriptor_std__hashT_CNTK__DistributedWorkerDescriptor_t_std__equal_toT_CNTK__DistributedWorkerDescriptor_t_std__allocatorT_CNTK__DistributedWorkerDescriptor_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor > *","slice", 1, self )); 
  }
  arg1 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor >::difference_type","slice", 2, argv[0] ));
  } 
  arg2 = static_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor >::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::unordered_set< CNTK::DistributedWorkerDescriptor >::difference_type","slice", 3, argv[1] ));
  } 
  arg3 = static_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor >::difference_type >(val3);
  try {
    result = (VALUE)std_unordered_set_Sl_CNTK_DistributedWorkerDescriptor_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



15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
# File 'ext/cntk/cntk_wrap.cxx', line 15806

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

#to_a(*args) ⇒ Object

call-seq:

to_a -> VALUE

Convert StdUSetDistributedWorkerDescriptor to an Array.



15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
# File 'ext/cntk/cntk_wrap.cxx', line 15206

SWIGINTERN VALUE
_wrap_StdUSetDistributedWorkerDescriptor_to_a(int argc, VALUE *argv, VALUE self) {
  std::unordered_set< CNTK::DistributedWorkerDescriptor > *arg1 = (std::unordered_set< CNTK::DistributedWorkerDescriptor > *) 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__unordered_setT_CNTK__DistributedWorkerDescriptor_std__hashT_CNTK__DistributedWorkerDescriptor_t_std__equal_toT_CNTK__DistributedWorkerDescriptor_t_std__allocatorT_CNTK__DistributedWorkerDescriptor_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor > *","to_a", 1, self )); 
  }
  arg1 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor > * >(argp1);
  result = (VALUE)std_unordered_set_Sl_CNTK_DistributedWorkerDescriptor_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.



15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
# File 'ext/cntk/cntk_wrap.cxx', line 15239

SWIGINTERN VALUE
_wrap_StdUSetDistributedWorkerDescriptor_to_s(int argc, VALUE *argv, VALUE self) {
  std::unordered_set< CNTK::DistributedWorkerDescriptor > *arg1 = (std::unordered_set< CNTK::DistributedWorkerDescriptor > *) 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__unordered_setT_CNTK__DistributedWorkerDescriptor_std__hashT_CNTK__DistributedWorkerDescriptor_t_std__equal_toT_CNTK__DistributedWorkerDescriptor_t_std__allocatorT_CNTK__DistributedWorkerDescriptor_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::unordered_set< CNTK::DistributedWorkerDescriptor > *","to_s", 1, self )); 
  }
  arg1 = reinterpret_cast< std::unordered_set< CNTK::DistributedWorkerDescriptor > * >(argp1);
  result = (VALUE)std_unordered_set_Sl_CNTK_DistributedWorkerDescriptor_Sg__to_s(arg1);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}