Method: Cbc_wrapper.Cbc_getNumRows

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

.Cbc_getNumRows(*args) ⇒ Object



3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
# File 'ext/cbc-wrapper/cbc_wrap.c', line 3200

SWIGINTERN VALUE
_wrap_Cbc_getNumRows(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_getNumRows", 1, argv[0] )); 
  }
  result = (int)Cbc_getNumRows(arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}