Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

# APPSPACK_Value.hpp

Go to the documentation of this file.

    00001 // $Id: APPSPACK_Value.hpp,v 1.8 2004/03/29 05:25:34 wehart Exp $
    00002 // $Source: /space/CVS-Acro/acro/packages/appspack/appspack/src/APPSPACK_Value.hpp,v $
    00003
    00004 //@HEADER
    00005 // ************************************************************************
    00006 //
    00007 //          APPSPACK: Asynchronous Parallel Pattern Search
    00008 //                 Copyright (2003) Sandia Corporation
    00009 //
    00010 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
    00011 // license for use of this work by or on behalf of the U.S. Government.
    00012 //
    00013 // This library is free software; you can redistribute it and/or modify
    00014 // it under the terms of the GNU Lesser General Public License as
    00015 // published by the Free Software Foundation; either version 2.1 of the
    00016 // License, or (at your option) any later version.
    00017 //
    00018 // This library is distributed in the hope that it will be useful, but
    00019 // WITHOUT ANY WARRANTY; without even the implied warranty of
    00020 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00021 // Lesser General Public License for more details.
    00022 //
    00023 // You should have received a copy of the GNU Lesser General Public
    00024 // License along with this library; if not, write to the Free Software
    00025 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
    00026 // USA.                                                                           .
    00027 //
    00028 // Questions? Contact Tammy Kolda (tgkolda@sandia.gov)
    00029 //
    00030 // ************************************************************************
    00031 //@HEADER
    00032
    00037 #ifndef APPSPACK_VALUE_HPP
    00038 #define APPSPACK_VALUE_HPP
    00039
    00040 #include "APPSPACK_Common.hpp"
    00041
    00042 namespace APPSPACK
    00043 {
    00045
    00058 class Value
    00059 {
    00060 public:
    00061
    00063
    00065   Value();
    00066
    00071   Value(bool isValue_in, double value_in);
    00072
    00078   Value(double value_in);
    00079
    00081   Value(const Value& source);
    00082
    00084
    00086
    00088   ~Value();
    00089
    00091
    00093
    00094   bool getIsValue() const;
    00095   double getValue() const;
    00096
    00097   //@
    00098
    00100
    00102
    00104   void operator=(const Value& source);
    00105
    00107   void operator=(double source);
    00108
    00110   void setValueTo(bool isValue_in, double value_in);
    00111
    00113   void setValueTo(double value_in);
    00114
    00116   void setValueToUnknown();
    00117
    00119
    00121
    00123   bool operator<(const Value& w) const;
    00124
    00126   bool operator>(const Value& w) const;
    00127
    00129   bool operator==(const Value& w) const;
    00130
    00132   bool isSufficientDecrease(const Value& w, double rho) const;
    00133
    00135
    00137   ostream& leftshift(ostream& stream) const;
    00138
    00139 private:
    00140
    00142   bool isValue;
    00143
    00145   double value;
    00146
    00147 };
    00148
    00149 }
    00150
    00152 ostream& operator<<(ostream& stream, const APPSPACK::Value& value);
    00153
    00154 #endif

© Sandia Corporation | Site Contact | Privacy and Security

Generated on Wed Dec 14 18:41:05 2005 for APPSPACK 4.0.2 by 1.3.8 written by Dimitri van Heesch, © 1997-2002