Limbo 3.5.4
Loading...
Searching...
No Matches
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...
class  vector

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.

Detailed Description

namespace for LpParser

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

Typedef Documentation

◆ int32_t

typedef int LpParser::int32_t

Definition at line 32 of file LpDataBase.h.

◆ int64_t

typedef long LpParser::int64_t

Definition at line 34 of file LpDataBase.h.

◆ IntegerArray

typedef std::vector<int64_t> LpParser::IntegerArray

integer array

Definition at line 38 of file LpDataBase.h.

◆ StringArray

typedef std::vector<std::string> LpParser::StringArray

string array

Definition at line 40 of file LpDataBase.h.

◆ TermArray

typedef std::vector<Term> LpParser::TermArray

array of terms

Definition at line 105 of file LpDataBase.h.

◆ uint32_t

typedef unsigned int LpParser::uint32_t

Definition at line 33 of file LpDataBase.h.

Function Documentation

◆ read()

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