OR-Tools  8.2
Status

Detailed Description

Definition at line 24 of file status.h.

Public Types

enum  ErrorCode {
  GLOP_OK = 0 , ERROR_LU = 1 , ERROR_BOUND = 2 , ERROR_NULL = 3 ,
  ERROR_INVALID_PROBLEM = 4
}
 

Public Member Functions

 Status ()
 
 Status (ErrorCode error_code, std::string error_message)
 
ErrorCode error_code () const
 
const std::string & error_message () const
 
bool ok () const
 

Static Public Member Functions

static const Status OK ()
 

Member Enumeration Documentation

◆ ErrorCode

enum ErrorCode
Enumerator
GLOP_OK 
ERROR_LU 
ERROR_BOUND 
ERROR_NULL 
ERROR_INVALID_PROBLEM 

Definition at line 27 of file status.h.

Constructor & Destructor Documentation

◆ Status() [1/2]

Status ( )

Definition at line 23 of file status.cc.

◆ Status() [2/2]

Status ( ErrorCode  error_code,
std::string  error_message 
)

Definition at line 25 of file status.cc.

Member Function Documentation

◆ error_code()

ErrorCode error_code ( ) const
inline

Definition at line 57 of file status.h.

◆ error_message()

const std::string& error_message ( ) const
inline

Definition at line 58 of file status.h.

◆ OK()

static const Status OK ( )
inlinestatic

Definition at line 54 of file status.h.

◆ ok()

bool ok ( ) const
inline

Definition at line 59 of file status.h.


The documentation for this class was generated from the following files: