Vector_parameter.h

Go to the documentation of this file.
00001 /*
00002 **    Mesh Converter
00003 **    Copyright (C) 2008 Damien Rohmer
00004 **
00005 **    This program is free software: you can redistribute it and/or modify
00006 **    it under the terms of the GNU General Public License as published by
00007 **    the Free Software Foundation, either version 3 of the License, or
00008 **    (at your option) any later version.
00009 **
00010 **   This program is distributed in the hope that it will be useful,
00011 **    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 **    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 **    GNU General Public License for more details.
00014 **
00015 **    You should have received a copy of the GNU General Public License
00016 **    along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017 */
00018 
00019 
00020 /*
00021 ** Vector_parameter.h
00022 ** 
00023 ** Made by damien
00024 ** Login   <damien@ortie>
00025 ** 
00026 ** Started on  Fri Jun  6 19:54:01 2008 damien
00027 ** Last update Fri Jun  6 19:54:01 2008 damien
00028 */
00029 
00030 #ifndef         VECTOR_PARAMETER_H_
00031 # define        VECTOR_PARAMETER_H_
00032 
00033 #include <stdlib.h>
00034 #include <iostream>
00035 #include <cmath>
00036 #include <string>
00037 #include <errno.h>
00038 #include <stdio.h>
00039 #include <vector>
00040 
00041 #include <int_vector.h>
00042 #include <double_vector.h>
00043 
00045 
00052 class Vector_parameter
00053 {
00054 public:
00055 
00056   //************************************************//
00057   //************************************************//
00058   //CONSTRUCTORS
00059   //************************************************//
00060   //************************************************//
00061 
00063   Vector_parameter();
00065   Vector_parameter(const Vector_parameter& );
00067   ~Vector_parameter();
00068   
00070   int destroy();
00071 
00072 
00073   //************************************************//
00074   //************************************************//
00075   //Size
00076   //************************************************//
00077   //************************************************//
00078 
00080   int size_int() const;
00082   int size_double() const;
00084   int resize_int(int N_size);
00086   int resize_double(int N_size);
00087 
00089   int size_int(int k_vector) const;
00091   int size_double(int k_vector) const;
00093   int resize_int(int k_vector,int N_size);
00095   int resize_double(int k_vector,int N_size);
00096 
00097   //************************************************//
00098   //************************************************//
00099   //Access
00100   //************************************************//
00101   //************************************************//
00102 
00104   const int_vector& get_int(int k_index) const;
00105   int_vector      & get_int(int k_index);
00106 
00108   const double_vector& get_double(int k_index) const;
00109   double_vector      & get_double(int k_index);
00110 
00112   int& get_int(int k_vector,int k_index);
00113   int  get_int(int k_vector,int k_index) const;
00114 
00116   double& get_double(int k_vector,int k_index);
00117   double  get_double(int k_vector,int k_index) const;
00118 
00119 
00120   //************************************************//
00121   //************************************************//
00122   //Operator
00123   //************************************************//
00124   //************************************************//
00125 
00127   Vector_parameter& operator=(const Vector_parameter& );
00128 
00129 private:
00130 
00132   std::vector <int_vector> vector_int;
00133   std::vector <double_vector> vector_double;
00134 
00135 };
00136 
00137 
00138 
00139 #endif      /* !VECTOR_PARAMETER_H_ */

Generated on Mon Mar 30 16:55:54 2009 by  doxygen 1.5.6