float128_read_lp.c File Reference

#include "qs_config.h"
#include "float128_iqsutil.h"
#include "float128_read_lp.h"
#include "float128_lp.h"
#include "float128_rawlp.h"
#include "float128_lpdefs.h"
#include "float128_format.h"

Include dependency graph for float128_read_lp.c:

Go to the source code of this file.

Defines

#define float128_END_LINE(p)   (((*p) == '\\' || (*p) == '\n' || (*p) == '\0') ? 1 : 0)

Functions

int float128_ILLcheck_subject_to (float128_ILLread_lp_state *state)
int float128_ILLget_value (char *line, float128 *coef)
int float128_ILLlp_error (float128_ILLread_lp_state *state, const char *format,...)
void float128_ILLlp_warn (float128_ILLread_lp_state *state, const char *format,...)
int float128_ILLread_lp_state_bad_keyword (float128_ILLread_lp_state *state)
int float128_ILLread_lp_state_colon (float128_ILLread_lp_state *state)
int float128_ILLread_lp_state_has_colon (float128_ILLread_lp_state *state)
int float128_ILLread_lp_state_init (float128_ILLread_lp_state *state, float128_qsline_reader *file, const char *float128_fname, int inter)
int float128_ILLread_lp_state_keyword (float128_ILLread_lp_state *state, const char *kwd[])
int float128_ILLread_lp_state_next_constraint (float128_ILLread_lp_state *state)
int float128_ILLread_lp_state_next_field (float128_ILLread_lp_state *state)
int float128_ILLread_lp_state_next_field_on_line (float128_ILLread_lp_state *state)
int float128_ILLread_lp_state_next_line (float128_ILLread_lp_state *state)
int float128_ILLread_lp_state_next_var (float128_ILLread_lp_state *state)
int float128_ILLread_lp_state_possible_bound_value (float128_ILLread_lp_state *state)
int float128_ILLread_lp_state_possible_coef (float128_ILLread_lp_state *state, float128 *coef, const float128 defValue)
void float128_ILLread_lp_state_prev_field (float128_ILLread_lp_state *state)
static void float128_ILLread_lp_state_print_at (float128_ILLread_lp_state *state)
int float128_ILLread_lp_state_sense (float128_ILLread_lp_state *state)
int float128_ILLread_lp_state_sign (float128_ILLread_lp_state *state, float128 *sign)
int float128_ILLread_lp_state_skip_blanks (float128_ILLread_lp_state *state, int wrapLines)
int float128_ILLread_lp_state_value (float128_ILLread_lp_state *state, float128 *coef)
void float128_ILLtest_lp_state_bound_sense (float128_ILLread_lp_state *state)
int float128_ILLtest_lp_state_keyword (float128_ILLread_lp_state *state, const char *kwd[])
int float128_ILLtest_lp_state_next_is (float128_ILLread_lp_state *state, const char *str)
int float128_ILLtest_lp_state_sense (float128_ILLread_lp_state *state, int all)
static void float128_lp_err (float128_ILLread_lp_state *state, int isError, const char *format, va_list args)
static int float128_next_field (float128_ILLread_lp_state *state, int acrossLines)

Variables

static const char * float128_all_keyword []
static int float128_all_keyword_len []
static int TRACE = 0


Define Documentation

#define float128_END_LINE (  )     (((*p) == '\\' || (*p) == '\n' || (*p) == '\0') ? 1 : 0)

Definition at line 49 of file float128_read_lp.c.

Referenced by float128_ILLmps_check_end_of_line(), float128_ILLmps_next_bound(), float128_ILLread_lp_state_next_line(), float128_ILLread_lp_state_possible_bound_value(), float128_ILLread_lp_state_print_at(), float128_ILLread_lp_state_sense(), and float128_ILLread_lp_state_skip_blanks().


Function Documentation

int float128_ILLcheck_subject_to ( float128_ILLread_lp_state state  ) 

Definition at line 781 of file float128_read_lp.c.

References float128_ILL_ISBLANK, float128_ILLread_lp_state_bad_keyword(), float128_ILLread_lp_state_next_field(), float128_ILLread_lp_state_prev_field(), float128_ILLread_lp_state_skip_blanks(), and ILL_RESULT.

Referenced by float128_read_constraints().

Here is the call graph for this function:

int float128_ILLget_value ( char *  line,
float128 *  coef 
)

Definition at line 695 of file float128_read_lp.c.

References ILL_IFTRACE, ILL_namebufsize, and ILL_RESULT.

Referenced by float128_get_double(), and float128_ILLread_lp_state_value().

int float128_ILLlp_error ( float128_ILLread_lp_state state,
const char *  format,
  ... 
)

Definition at line 668 of file float128_read_lp.c.

References float128_lp_err().

Referenced by float128_add_var(), float128_del_row_or_col(), float128_fill_matrix(), float128_get_row_col_name(), float128_ILLread_constraint_expr(), float128_ILLread_constraint_name(), float128_ILLread_lp(), float128_ILLread_lp_state_bad_keyword(), float128_ILLread_lp_state_next_constraint(), float128_ILLread_lp_state_sense(), float128_ILLread_one_constraint(), float128_read_bounds(), float128_read_colname(), float128_read_constraints(), float128_read_integer(), float128_read_minmax(), float128_read_objective(), and float128_read_problem_name().

Here is the call graph for this function:

void float128_ILLlp_warn ( float128_ILLread_lp_state state,
const char *  format,
  ... 
)

Definition at line 680 of file float128_read_lp.c.

References float128_lp_err(), and NULL.

Referenced by float128_fill_matrix(), float128_ILLread_constraint_expr(), float128_read_bounds(), and float128_read_objective().

Here is the call graph for this function:

int float128_ILLread_lp_state_bad_keyword ( float128_ILLread_lp_state state  ) 

Definition at line 268 of file float128_read_lp.c.

References float128_ILLread_lp_state::field, float128_ILLread_lp_state::fieldOnFirstCol, and float128_ILLlp_error().

Referenced by float128_ILLcheck_subject_to(), and float128_ILLread_lp_state_keyword().

Here is the call graph for this function:

int float128_ILLread_lp_state_colon ( float128_ILLread_lp_state state  ) 

Definition at line 311 of file float128_read_lp.c.

References float128_ILLread_lp_state_skip_blanks().

Referenced by float128_ILLread_constraint_name(), and float128_read_objective().

Here is the call graph for this function:

int float128_ILLread_lp_state_has_colon ( float128_ILLread_lp_state state  ) 

Definition at line 322 of file float128_read_lp.c.

References float128_ILLread_lp_state_skip_blanks(), and float128_ILLread_lp_state::p.

Referenced by float128_ILLread_constraint_name(), and float128_read_objective().

Here is the call graph for this function:

int float128_ILLread_lp_state_init ( float128_ILLread_lp_state state,
float128_qsline_reader file,
const char *  float128_fname,
int  inter 
)

Definition at line 64 of file float128_read_lp.c.

References float128_ILLread_lp_state::bound_val, float128_ILLread_lp_state::eof, float128_ILLread_lp_state::field, float128_ILLread_lp_state::fieldOnFirstCol, float128_ILLread_lp_state::file, float128_ILLread_lp_state::file_name, float128_ILLread_lp_state_skip_blanks(), float128_ILLread_lp_state::float128_interactive, ILL_FAILtrue, ILL_RETURN, float128_ILLread_lp_state::line, float128_ILLread_lp_state::line_num, NULL, float128_ILLread_lp_state::p, and float128_ILLread_lp_state::realline.

Referenced by float128_ILLeditor(), and float128_ILLread_lp().

Here is the call graph for this function:

int float128_ILLread_lp_state_keyword ( float128_ILLread_lp_state state,
const char *  kwd[] 
)

Definition at line 299 of file float128_read_lp.c.

References float128_ILLread_lp_state::eof, float128_ILLread_lp_state_bad_keyword(), and float128_ILLtest_lp_state_keyword().

Here is the call graph for this function:

int float128_ILLread_lp_state_next_constraint ( float128_ILLread_lp_state state  ) 

Definition at line 338 of file float128_read_lp.c.

References float128_ILLread_lp_state::eof, float128_all_keyword, float128_ILLlp_error(), float128_ILLread_lp_state_next_field(), float128_ILLread_lp_state_prev_field(), float128_ILLread_lp_state_skip_blanks(), float128_ILLtest_lp_state_keyword(), and float128_ILLread_lp_state::line_num.

Referenced by float128_read_constraints().

Here is the call graph for this function:

int float128_ILLread_lp_state_next_field ( float128_ILLread_lp_state state  ) 

Definition at line 196 of file float128_read_lp.c.

References float128_next_field().

Referenced by float128_ILLcheck_subject_to(), float128_ILLeditor(), float128_ILLread_lp(), float128_ILLread_lp_state_next_constraint(), float128_read_bounds(), float128_read_constraints(), float128_read_integer(), and float128_read_problem_name().

Here is the call graph for this function:

int float128_ILLread_lp_state_next_field_on_line ( float128_ILLread_lp_state state  ) 

Definition at line 190 of file float128_read_lp.c.

References float128_next_field().

Referenced by float128_del_row_or_col(), float128_getCmd(), and float128_ILLeditor().

Here is the call graph for this function:

int float128_ILLread_lp_state_next_line ( float128_ILLread_lp_state state  ) 

Definition at line 89 of file float128_read_lp.c.

References float128_ILLread_lp_state::eof, float128_ILLread_lp_state::field, float128_ILLread_lp_state::fieldOnFirstCol, float128_ILLread_lp_state::file, float128_ILLread_lp_state::file_name, float128_END_LINE, float128_ILL_ISBLANK, float128_ILLline_reader_get, float128_ILLread_lp_state::float128_interactive, ILL_IFTRACE, ILL_namebufsize, float128_ILLread_lp_state::line, float128_ILLread_lp_state::line_num, NULL, float128_ILLread_lp_state::p, and float128_ILLread_lp_state::realline.

Referenced by float128_add_col(), float128_ILLeditor(), and float128_ILLread_lp_state_skip_blanks().

int float128_ILLread_lp_state_next_var ( float128_ILLread_lp_state state  ) 

Definition at line 220 of file float128_read_lp.c.

References float128_all_keyword, float128_all_keyword_len, float128_ILLis_lp_name_char(), float128_ILLread_lp_state_skip_blanks(), and NULL.

Referenced by float128_ILLread_constraint_expr(), float128_ILLread_constraint_name(), float128_read_colname(), and float128_read_objective().

Here is the call graph for this function:

int float128_ILLread_lp_state_possible_bound_value ( float128_ILLread_lp_state state  ) 

Definition at line 429 of file float128_read_lp.c.

References float128_END_LINE, float128_ILL_MAXDOUBLE, float128_ILL_MINDOUBLE, float128_ILLread_lp_state_sign(), float128_ILLread_lp_state_skip_blanks(), float128_ILLread_lp_state_value(), and NULL.

Referenced by float128_read_bounds().

Here is the call graph for this function:

int float128_ILLread_lp_state_possible_coef ( float128_ILLread_lp_state state,
float128 *  coef,
const float128  defValue 
)

Definition at line 419 of file float128_read_lp.c.

References float128_ILLread_lp_state_value().

Referenced by float128_ILLread_constraint_expr().

Here is the call graph for this function:

void float128_ILLread_lp_state_prev_field ( float128_ILLread_lp_state state  ) 

Definition at line 202 of file float128_read_lp.c.

References float128_ILLread_lp_state::fieldOnFirstCol, float128_ILL_ISBLANK, float128_ILLread_lp_state::line, and float128_ILLread_lp_state::p.

Referenced by float128_ILLcheck_subject_to(), float128_ILLread_lp_state_next_constraint(), float128_read_colname(), and float128_read_minmax().

static void float128_ILLread_lp_state_print_at ( float128_ILLread_lp_state state  )  [static]

Definition at line 582 of file float128_read_lp.c.

References float128_ILLread_lp_state::eof, float128_END_LINE, float128_ILL_ISBLANK, and float128_ILLread_lp_state::p.

Referenced by float128_lp_err().

int float128_ILLread_lp_state_sense ( float128_ILLread_lp_state state  ) 

Definition at line 554 of file float128_read_lp.c.

References float128_END_LINE, float128_ILLlp_error(), and float128_ILLtest_lp_state_sense().

Referenced by float128_ILLread_one_constraint().

Here is the call graph for this function:

int float128_ILLread_lp_state_sign ( float128_ILLread_lp_state state,
float128 *  sign 
)

Definition at line 363 of file float128_read_lp.c.

References float128_ILLread_lp_state_skip_blanks().

Referenced by float128_ILLread_constraint_expr(), and float128_ILLread_lp_state_possible_bound_value().

Here is the call graph for this function:

int float128_ILLread_lp_state_skip_blanks ( float128_ILLread_lp_state state,
int  wrapLines 
)

Definition at line 141 of file float128_read_lp.c.

References float128_END_LINE, float128_ILL_ISBLANK, float128_ILLread_lp_state_next_line(), and float128_ILLread_lp_state::p.

Referenced by float128_ILLcheck_subject_to(), float128_ILLread_lp_state_colon(), float128_ILLread_lp_state_has_colon(), float128_ILLread_lp_state_init(), float128_ILLread_lp_state_next_constraint(), float128_ILLread_lp_state_next_var(), float128_ILLread_lp_state_possible_bound_value(), float128_ILLread_lp_state_sign(), float128_ILLread_lp_state_value(), float128_ILLtest_lp_state_next_is(), float128_ILLtest_lp_state_sense(), float128_lp_err(), float128_next_field(), and float128_read_objective().

Here is the call graph for this function:

int float128_ILLread_lp_state_value ( float128_ILLread_lp_state state,
float128 *  coef 
)

Definition at line 396 of file float128_read_lp.c.

References float128_ILLget_value(), float128_ILLread_lp_state_skip_blanks(), and ILL_RESULT.

Referenced by float128_add_col(), float128_ILLread_lp_state_possible_bound_value(), float128_ILLread_lp_state_possible_coef(), and float128_ILLread_one_constraint().

Here is the call graph for this function:

void float128_ILLtest_lp_state_bound_sense ( float128_ILLread_lp_state state  ) 

Definition at line 548 of file float128_read_lp.c.

References float128_ILLtest_lp_state_sense().

Referenced by float128_read_bounds().

Here is the call graph for this function:

int float128_ILLtest_lp_state_keyword ( float128_ILLread_lp_state state,
const char *  kwd[] 
)

Definition at line 280 of file float128_read_lp.c.

References float128_ILLread_lp_state::eof, float128_ILLread_lp_state::field, float128_ILLread_lp_state::fieldOnFirstCol, and NULL.

Referenced by float128_ILLread_lp_state_keyword(), and float128_ILLread_lp_state_next_constraint().

int float128_ILLtest_lp_state_next_is ( float128_ILLread_lp_state state,
const char *  str 
)

Definition at line 383 of file float128_read_lp.c.

References float128_ILLread_lp_state_skip_blanks(), and float128_ILLread_lp_state::p.

Referenced by float128_read_bounds().

Here is the call graph for this function:

int float128_ILLtest_lp_state_sense ( float128_ILLread_lp_state state,
int  all 
)

Definition at line 487 of file float128_read_lp.c.

References float128_ILLread_lp_state_skip_blanks(), and float128_ILLread_lp_state::sense_val.

Referenced by float128_ILLread_lp_state_sense(), and float128_ILLtest_lp_state_bound_sense().

Here is the call graph for this function:

static void float128_lp_err ( float128_ILLread_lp_state state,
int  isError,
const char *  format,
va_list  args 
) [static]

Definition at line 614 of file float128_read_lp.c.

References float128_qsline_reader::error_collector, float128_ILLread_lp_state::file, float128_ILLread_lp_state::file_name, float128_ILLformat_error, float128_ILLformat_error_create(), float128_ILLformat_error_delete(), float128_ILLread_lp_state_print_at(), float128_ILLread_lp_state_skip_blanks(), float128_ILLread_lp_state::float128_interactive, ILL_FAILfalse, float128_ILLread_lp_state::line, float128_ILLread_lp_state::line_num, NULL, float128_ILLread_lp_state::p, QS_LP_FORMAT_ERROR, QS_LP_FORMAT_WARN, and float128_ILLread_lp_state::realline.

Referenced by float128_ILLlp_error(), and float128_ILLlp_warn().

Here is the call graph for this function:

static int float128_next_field ( float128_ILLread_lp_state state,
int  acrossLines 
) [static]

Definition at line 172 of file float128_read_lp.c.

References float128_ILLread_lp_state_skip_blanks().

Referenced by float128_ILLread_lp_state_next_field(), and float128_ILLread_lp_state_next_field_on_line().

Here is the call graph for this function:


Variable Documentation

const char* float128_all_keyword[] [static]

Initial value:

 {
  "MIN", "MINIMUM", "MINIMIZE",
  "MAX", "MAXIMUM", "MAXIMIZE",
  "SUBJECT", "ST", "PROBLEM", "PROB",
  "BOUNDS", "BOUND", "INTEGER", "END", NULL
}

Definition at line 51 of file float128_read_lp.c.

Referenced by float128_ILLread_lp_state_next_constraint(), and float128_ILLread_lp_state_next_var().

int float128_all_keyword_len[] [static]

Initial value:

 {
  3, 7, 8,
  3, 7, 8,
  7, 2, 7, 4,
  6, 5, 7, 3, -1
}

Definition at line 57 of file float128_read_lp.c.

Referenced by float128_ILLread_lp_state_next_var().

int TRACE = 0 [static]

Definition at line 47 of file float128_read_lp.c.


Generated on Thu Mar 29 09:37:06 2012 for QSopt_ex by  doxygen 1.4.7