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

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