00001 #ifndef Se_Vector_Included
00002 #define Se_Vector_Included
00003
00004 #include <vector>
00005 #include <iostream>
00006
00007 namespace Se{
00008
00009 template<class T>class Vector : public std::vector<T>{
00010 public:
00011 Vector():std::vector<T>(){}
00012 Vector(int s):std::vector<T>(s){}
00013 T& operator[](int i){
00014 return(at(i));
00015 }
00016 const T& operator[] (int i) const{
00017 return(at(i));
00018 }
00019 friend std::ostream& operator<< (std::ostream& s,const Vector& the_vect){
00020 s<<"Pv_Vector:\n";
00021 for(int i=0;i<(int)the_vect.size();i++){
00022 s<<i<<": "<<the_vect[i]<<"--\n";
00023 }
00024 return(s);
00025 }
00026 };
00027
00028 }
00029
00030 #endif