Main Page | Class Hierarchy | Class List | File List | Class Members

variables/Double.h

00001 // Double.h -- Double precision floating point CSP variables
00002 // interface.
00003 
00004 /*
00005  * Copyright (C) 1998 Tudor Hulubei <tudor@hulubei.net>.
00006  *
00007  * This library is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU Lesser General Public License as
00009  * published by the Free Software Foundation; either version 2, or (at
00010  * your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA,
00020  * 02111-1307, USA.
00021  */
00022 
00023 // $Id: variables_2Double_8h-source.html,v 1.1 2005/05/25 12:37:18 tudor Exp $
00024 
00025 #ifndef _CSP_VARIABLES_Double_H
00026 #define _CSP_VARIABLES_Double_H
00027 
00028 
00029 CSP_NAMESPACE_BEGIN(csp);
00030 CSP_NAMESPACE_BEGIN(variables);
00031 
00032 
00033 class CSP_API Double :
00034     public Variable
00035 {
00036   public:
00037     Double(const Problem& problem) :
00038         Variable(problem) {}
00039 
00040     Double(
00041         const Problem& problem,
00042         const values::Double min,
00043         const values::Double max,
00044         const double step = 1);
00045 
00046     Double(
00047         const Problem& problem,
00048         const vector<values::Double>& array);
00049 
00050     virtual ~Double();
00051 
00052     values::Double& value() const {
00053         return static_cast<values::Double&>(Variable::value()); }
00054 
00055   private:
00057     Double(const Double&);
00058 
00060     Double& operator=(const Double&);
00061 };
00062 
00063 
00064 CSP_NAMESPACE_END(variables);
00065 CSP_NAMESPACE_END(csp);
00066 
00067 
00068 #endif // _CSP_VARIABLES_Double_H
00069 
00070 // Local Variables:
00071 // mode: C++
00072 // End:

Generated on Wed May 25 12:21:14 2005 for csp.kdevelop by  doxygen 1.3.9.1