# CbcCompare.hpp

Go to the documentation of this file.

    00001 /* $Id: CbcCompare.hpp 1286 2009-11-09 23:33:07Z EdwinStraver $ */
    00002 // Copyright (C) 2002, International Business Machines
    00003 // Corporation and others.  All Rights Reserved.
    00004 // This code is licensed under the terms of the Eclipse Public License (EPL).
    00005
    00006 #ifndef CbcCompare_H
    00007 #define CbcCompare_H
    00008
    00009 class CbcCompareBase;
    00010
    00011 class CbcCompare {
    00012 public:
    00013     CbcCompareBase * test_;
    00014     // Default Constructor
    00015     CbcCompare () {
    00016         test_ = NULL;
    00017     }
    00018
    00019     virtual ~CbcCompare() {}
    00020
    00021     bool operator() (CbcNode * x, CbcNode * y) {
    00022         return test_->test(x, y);
    00023     }
    00024     bool compareNodes (CbcNode * x, CbcNode * y) {
    00025         return test_->test(x, y);
    00026     }
    00028     inline bool alternateTest (CbcNode * x, CbcNode * y) {
    00029         return test_->alternateTest(x, y);
    00030     }
    00031
    00033     inline CbcCompareBase * comparisonObject() const {
    00034         return test_;
    00035     }
    00036 };
    00037
    00038 #endif
    00039

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines