Yurttas/PL/OOL/Cplusplus/F/05/10/00/R.h
Jump to navigation
Jump to search
1/*
2 Copyright(C) 2007
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 : December 1, 2007.
11 author : Salih Yurttas.
12
13 R.h
14*/
15
16
17#ifndef R_H
18#define R_H
19
20#include "P.h"
21
22template<class T>
23class R : public P<T> {
24public:
25 R();
26
27 R(const R<T>&);
28
29 virtual R<T>& operator=(const R<T>&);
30
31 virtual T get_a(const int) const; // in: index, out: value
32
33 virtual void set_a(const int, // size
34 const T); // value
35
36 template<class U> // this syntax changed several times
37 friend ostream& operator<<(ostream&,
38 const R<T>&);
39};
40#endif