Method: Cbc_wrapper.Cbc_getNumElements

Defined in:
ext/cbc-wrapper/cbc_wrap.c

.Cbc_getNumElements(*args) ⇒ Object



2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
# File 'ext/cbc-wrapper/cbc_wrap.c', line 2922

SWIGINTERN VALUE
_wrap_Cbc_getNumElements(int argc, VALUE *argv, VALUE self) {
  Cbc_Model *arg1 = (Cbc_Model *) 0 ;
  int res1 ;
  int 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(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Cbc_Model *","Cbc_getNumElements", 1, argv[0] )); 
  }
  result = (int)Cbc_getNumElements(arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}