Limbo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Typedefs | Functions
LpParser Namespace Reference

namespace for LpParser More...

Classes

class  Driver
 
class  LpDataBase
 Base class for lp database. Only pure virtual functions are defined. User needs to inheritate this class and derive a custom database type with all callback functions defined. More...
 
struct  Term
 a term denotes coefficient times a variable More...
 

Typedefs

typedef std::vector< int64_t > IntegerArray
 integer array
 
typedef std::vector< std::string > StringArray
 string array
 
typedef std::vector< TermTermArray
 array of terms
 
typedef int int32_t
 
typedef unsigned int uint32_t
 
typedef long int64_t
 

Functions

bool read (LpDataBase &db, const string &lpFile)
 API for LpParser. Read LP file and initialize database by calling user-defined callback functions. More...
 

Detailed Description

namespace for LpParser

The example namespace is used to encapsulate the three parser classes example::Parser, example::Scanner and example::Driver

Function Documentation

bool LpParser::read ( LpDataBase db,
const string &  lpFile 
)

API for LpParser. Read LP file and initialize database by calling user-defined callback functions.

Parameters
dbdatabase which is derived from LpParser::LpDataBase
lpFileLP file