Dip  0.92.4
Classes | Macros | Functions
CoinError.hpp File Reference
#include <string>
#include <iostream>
#include <cassert>
#include <cstring>
#include "CoinUtilsConfig.h"
#include "CoinPragma.hpp"
Include dependency graph for CoinError.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CoinError
 Error Class thrown by an exception. More...
 

Macros

#define __STRING(x)   #x
 
#define __GNUC_PREREQ(maj, min)   (0)
 
#define CoinAssertDebug(expression)   assert(expression)
 
#define CoinAssertDebugHint(expression, hint)   assert(expression)
 
#define CoinAssert(expression)   assert(expression)
 
#define CoinAssertHint(expression, hint)   assert(expression)
 

Functions

void WindowsErrorPopupBlocker ()
 A function to block the popup windows that windows creates when the code crashes. More...
 
void CoinErrorUnitTest ()
 A function that tests the methods in the CoinError class. More...
 

Macro Definition Documentation

#define __STRING (   x)    #x

Definition at line 173 of file CoinError.hpp.

#define __GNUC_PREREQ (   maj,
  min 
)    (0)

Definition at line 177 of file CoinError.hpp.

#define CoinAssertDebug (   expression)    assert(expression)

Definition at line 181 of file CoinError.hpp.

Referenced by GAP_KnapPisinger::calcScaleFactor(), and MAD_DecompSolution::print().

#define CoinAssertDebugHint (   expression,
  hint 
)    assert(expression)

Definition at line 182 of file CoinError.hpp.

#define CoinAssert (   expression)    assert(expression)
#define CoinAssertHint (   expression,
  hint 
)    assert(expression)

Definition at line 184 of file CoinError.hpp.

Referenced by OsiNullSolverInterface::addCol(), OsiNullSolverInterface::addRow(), DecompMemPool::allocateMemory(), MAD_MemPool::allocateMemory(), AlpsDecompSolution::AlpsDecompSolution(), OsiNullSolverInterface::applyColCut(), OsiNullSolverInterface::applyRowCut(), OsiNullSolverInterface::assignProblem(), OsiNullSolverInterface::branchAndBound(), OsiNullSolverInterface::clone(), DecompSolution::DecompSolution(), OsiNullSolverInterface::deleteCols(), OsiNullSolverInterface::deleteRows(), MAD_Qualex::findMaxIndSetGreedy(), GAP_KnapPisinger::GAP_KnapPisinger(), GAP_Knapsack::GAP_Knapsack(), OsiNullSolverInterface::getDualRays(), OsiNullSolverInterface::getEmptyWarmStart(), OsiNullSolverInterface::getIterationCount(), OsiNullSolverInterface::getObjSense(), OsiNullSolverInterface::getObjValue(), OsiNullSolverInterface::getPrimalRays(), OsiNullSolverInterface::getReducedCost(), OsiNullSolverInterface::getRowPrice(), OsiNullSolverInterface::getWarmStart(), CVRPsep_LPSol::init(), ConcordeGraph::init(), VRP_Concorde::init(), OsiNullSolverInterface::isDualObjectiveLimitReached(), OsiNullSolverInterface::isIterationLimitReached(), OsiNullSolverInterface::isPrimalObjectiveLimitReached(), OsiNullSolverInterface::isProvenDualInfeasible(), OsiNullSolverInterface::isProvenOptimal(), OsiNullSolverInterface::isProvenPrimalInfeasible(), OsiNullSolverInterface::loadProblem(), MAD_Cliquer::MAD_Cliquer(), MAD_Qualex::MAD_Qualex(), DecompSolution::operator=(), AP3_Instance::readInstance(), OsiNullSolverInterface::resolve(), OsiNullSolverInterface::setColLower(), OsiNullSolverInterface::setColUpper(), OsiNullSolverInterface::setContinuous(), OsiNullSolverInterface::setInteger(), OsiNullSolverInterface::setObjCoeff(), OsiNullSolverInterface::setObjSense(), OsiNullSolverInterface::setRowLower(), OsiNullSolverInterface::setRowPrice(), OsiNullSolverInterface::setRowType(), OsiNullSolverInterface::setRowUpper(), MAD_Qualex::setUpForSolve(), OsiNullSolverInterface::setWarmStart(), UtilOpenFile(), and OsiNullSolverInterface::writeMps().

Function Documentation

void WindowsErrorPopupBlocker ( )

A function to block the popup windows that windows creates when the code crashes.

void CoinErrorUnitTest ( )

A function that tests the methods in the CoinError class.

The only reason for it not to be a member method is that this way it doesn't have to be compiled into the library. And that's a gain, because the library should be compiled with optimization on, but this method should be compiled with debugging.