1/*
2 Copyright(C) 2002
3 All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
4
5 Permission to use, copy, modify, and distribute this
6 software and its documentation for EDUCATIONAL purposes
7 and without fee is hereby granted provided that this
8 copyright notice appears in all copies.
9
10 date : June 1, 2002.
11 authorĀ : Salih Yurttas.
12
13 vector_e.h
14*/
15
16
17#ifndef VECTOR_E_H
18#define VECTOR_E_H
19
20#include <iostream>
21
22#include <vector>
23
24using namespace std;
25
26template <class T>
27class vector_e : public vector<T> {
28public:
29 vector_e(const int,
30 const T);
31
32 vector_e(const vector_e<T>&);
33
34 vector_e<T>& operator=(const vector_e<T>&);
35
36 T& operator[](const int);
37
38 int get_size() const;
39
40 T get_element(const int) const;
41
42 vector<T> get_element(const int,
43 const int) const;
44
45 void set_element(const int,
46 const T);
47
48 friend ostream& operator<< <T>(ostream&,
49 const vector_e<T>&);
50
51private:
52 vector<T> d;
53};
54#endif