double_vector.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 ** double_vector.h
00022 ** 
00023 ** Made by damien
00024 ** Login   <damien@ortie>
00025 ** 
00026 ** Started on  Thu Mar 27 13:59:51 2008 damien
00027 ** Last update Thu Mar 27 13:59:51 2008 damien
00028 */
00029 
00030 #ifndef         DOUBLE_VECTOR_H_
00031 # define        DOUBLE_VECTOR_H_
00032 
00033 
00034 #include <stdlib.h>
00035 #include <iostream>
00036 #include <cmath>
00037 #include <string>
00038 #include <errno.h>
00039 #include <stdio.h>
00040 
00041 #include <vector>
00042 using namespace std;
00043 
00045 
00047 class double_vector
00048 {
00049  public:
00050   double_vector();
00051   double_vector(const double_vector&);
00052   ~double_vector();
00053 
00054   int size() const;
00055   int resize(int _size);
00056 
00057   double &operator[](int k_vertex);
00058   double operator[](int k_vertex) const;
00059   double_vector& operator=(const double_vector&);
00060 
00061   int add(double value);
00062   int add(std::vector <double>& _int_list);
00063 
00064 
00066   friend bool operator==(const double_vector& cont_1,const double_vector& cont_2);
00068   friend bool operator!=(const double_vector& cont_1,const double_vector& cont_2);
00069 
00070 
00071  private:
00072   
00073   std::vector <double> double_list;
00074 };
00075 
00076 
00077 #endif      /* !DOUBLE_VECTOR_H_ */

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