Yurttas/PL/OOL/Cplusplus/F/05/10/11/R.h

From ZCubes Wiki
Jump to navigation Jump to search
 1/*
 2   Copyright(C) 2005
 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   : September 1, 2005.
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  virtual void output() const;
37};
38#endif