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

variables/Float.h

00001 // Float.h -- Single 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_2Float_8h-source.html,v 1.1 2005/05/25 12:37:18 tudor Exp $
00024 
00025 #ifndef _CSP_VARIABLES_Float_H
00026 #define _CSP_VARIABLES_Float_H
00027 
00028 
00029 CSP_NAMESPACE_BEGIN(csp);
00030 CSP_NAMESPACE_BEGIN(variables);
00031 
00032 
00033 class CSP_API Float :
00034     public Variable
00035 {
00036   public:
00037     Float(const Problem& problem) :
00038         Variable(problem) {}
00039 
00040     Float(
00041         const Problem& problem,
00042         const values::Float min,
00043         const values::Float max,
00044         const float step = 1);
00045 
00046     Float(
00047         const Problem& problem,
00048         const vector<values::Float>& array);
00049 
00050     virtual ~Float();
00051 
00052     values::Float& value() const {
00053         return static_cast<values::Float&>(Variable::value()); }
00054 
00055   private:
00057     Float(const Float&);
00058 
00060     Float& operator=(const Float&);
00061 };
00062 
00063 
00064 CSP_NAMESPACE_END(variables);
00065 CSP_NAMESPACE_END(csp);
00066 
00067 
00068 #endif // _CSP_VARIABLES_Float_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