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
00031
00032
00033 #ifndef __BCVECT_H
00034 #define __BCVECT_H
00035
00036 #include "Vect.h"
00037
00038 namespace OFELI {
00039
00056 template<class T_> class Vect;
00057 template<class T_> class NodeVect;
00058
00059 template<class T_>
00060 class BCVect : public Vect<T_> {
00061
00062 public:
00063
00065 BCVect();
00066
00069 BCVect(size_t dim);
00070
00074 BCVect(size_t n, T_ *x);
00075
00078 BCVect(const BCVect<T_> &v);
00079
00082 BCVect(const Vect<T_> &v);
00083
00086 BCVect(const NodeVect<T_> &v) : Vect<T_>(v) { }
00087
00089 ~BCVect();
00090 };
00091
00093
00095
00096 template<class T_>
00097 BCVect<T_>::BCVect()
00098 {
00099 #ifdef _OFELI_DEBUG
00100 std::clog << "An instance of class BCVect is constructed.\n";
00101 std::clog << "File : " << __FILE__ << ", Line : " << __LINE__ << endl;
00102 #endif
00103 }
00104
00105
00106 template<class T_>
00107 BCVect<T_>::BCVect(size_t dim) : Vect<T_>(dim)
00108 {
00109 #ifdef _OFELI_DEBUG
00110 std::clog << "An instance of class BCVect is constructed.\n";
00111 std::clog << "File : " << __FILE__ << ", Line : " << __LINE__ << endl;
00112 #endif
00113 }
00114
00115
00116 template<class T_>
00117 BCVect<T_>::BCVect(size_t n, T_ *x) : Vect<T_>(n,x)
00118 {
00119 #ifdef _OFELI_DEBUG
00120 std::clog << "An instance of class BCVect is constructed.\n";
00121 std::clog << "File : " << __FILE__ << ", Line : " << __LINE__ << endl;
00122 #endif
00123 }
00124
00125
00126 template<class T_>
00127 BCVect<T_>::BCVect(const BCVect<T_> &v) : Vect<T_>(v)
00128 {
00129 #ifdef _OFELI_DEBUG
00130 std::clog << "An instance of class BCVect is constructed.\n";
00131 std::clog << "File : " << __FILE__ << ", Line : " << __LINE__ << endl;
00132 #endif
00133 }
00134
00135 template<class T_>
00136 BCVect<T_>::BCVect(const Vect<T_> &v) : Vect<T_>(v)
00137 {
00138 #ifdef _OFELI_DEBUG
00139 std::clog << "An instance of class Vect is constructed.\n";
00140 std::clog << "File : " << __FILE__ << ", Line : " << __LINE__ << endl;
00141 #endif
00142 }
00143
00144
00145 template<class T_>
00146 BCVect<T_>::~BCVect()
00147 {
00148 #ifdef _OFELI_DEBUG
00149 std::clog << "An instance of class BCVect is destructed.\n";
00150 std::clog << "File : " << __FILE__ << ", Line : " << __LINE__ << endl;
00151 #endif
00152 }
00153
00154 }
00155
00156 #endif