double_vector.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
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