include/qcparameter.h

00001 /***************************************************************************
00002  *   Quantum Construct (qC++)                                                                  *
00003  *   The Quantum Physics Computational Library                                         *
00004  *   Copyright (C) 2005 by Shekhar S. Chandra                                      *
00005  *   Shekhar.Chandra@sci.monash,edu.au                                     *
00006  *                                                                         *
00007  *   This program is free software; you can redistribute it and/or modify  *
00008  *   it under the terms of the GNU General Public License as published by  *
00009  *   the Free Software Foundation; either version 2 of the License, or     *
00010  *   (at your option) any later version.                                   *
00011  *                                                                         *
00012  *   This program 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 General Public License for more details.                          *
00016  *                                                                         *
00017  *   You should have received a copy of the GNU General Public License     *
00018  *   along with this program; if not, write to the                         *
00019  *   Free Software Foundation, Inc.,                                       *
00020  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00021  ***************************************************************************/
00022 /*
00023         Ver Info - QCParameter.h
00024         1.0.0 - Original Implementation
00025 */
00026 
00027 #ifndef QCPARAMETER_H
00028 #define QCPARAMETER_H
00029 
00030 #include <blitz/array.h>
00031 
00032 using namespace blitz;
00033 
00037 typedef double parameterType;
00038 
00043 class QCParameter
00044 {
00045 public:
00046     //-------------------------------------------------------
00052     QCParameter();
00056     ~QCParameter();
00058 
00059     //-------------------------------------------------------
00065     void setNoOfParameters(int parameterNo)
00066     {   Parameters.resizeAndPreserve(parameterNo); }
00070     void setParameter(int index, parameterType &value)
00071     {   Parameters(index) = value;                 }
00075     bool withinBounds(int parameterIndex);
00080     parameterType getParameter(int parameterIndex);
00082 
00083 private:
00084     Array<parameterType,1> Parameters;
00085 
00086 };
00087 
00088 #endif // QCPARAMETER_H

Generated on Sat May 13 13:22:48 2006 for Quantum Construct (qC++) by  doxygen 1.4.6-NO