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 ** container_double_vector.h 00021 ** 00022 ** Made by damien 00023 ** Login <damien@ortie> 00024 ** 00025 ** Started on Wed Sep 3 09:39:49 2008 damien 00026 ** Last update Wed Sep 3 09:39:49 2008 damien 00027 */ 00028 00029 #ifndef CONTAINER_DOUBLE_VECTOR_H_ 00030 # define CONTAINER_DOUBLE_VECTOR_H_ 00031 00032 #include <stdlib.h> 00033 #include <iostream> 00034 #include <cmath> 00035 #include <string> 00036 #include <errno.h> 00037 #include <stdio.h> 00038 00039 00040 #include <vector> 00041 #include <double_vector.h> 00042 00043 00045 class container_double_vector 00046 { 00047 00048 public: 00049 00050 00051 //************************************************// 00052 //************************************************// 00053 // CONSTRUCTORS 00054 //************************************************// 00055 //************************************************// 00056 00058 container_double_vector(); 00060 container_double_vector(const container_double_vector& ); 00062 ~container_double_vector(); 00063 00064 00065 //************************************************// 00066 //************************************************// 00067 // Manipulation 00068 //************************************************// 00069 //************************************************// 00070 00071 00073 int size() const; 00074 00076 int add(const double_vector& to_add); 00077 00079 int destroy(); 00080 00081 00082 00083 //************************************************// 00084 //************************************************// 00085 // Operator 00086 //************************************************// 00087 //************************************************// 00088 00089 00090 //affectation operator 00091 const container_double_vector& operator=(const container_double_vector&); 00092 00094 friend bool operator==(const container_double_vector&,const container_double_vector&); 00096 friend bool operator!=(const container_double_vector&,const container_double_vector&); 00097 00099 const double_vector& operator[](int k_double_vector) const; 00100 double_vector& operator[](int k_double_vector); 00101 00102 00103 private: 00104 00105 std::vector <double_vector> double_list; 00106 00107 }; 00108 00109 #endif /* !CONTAINER_DOUBLE_VECTOR_H_ */
1.5.6