00001
00002 #ifndef HDNUM_COUNTABLEARRAY_HH
00003 #define HDNUM_COUNTABLEARRAY_HH
00004
00005 #include "countingptr.hh"
00006 #include "array.hh"
00007
00012 namespace hdnum {
00013
00014 template<class T>
00015 class CountableArray : public Countable, public Array<T>
00016 {
00017 public:
00019 typedef std::size_t size_type;
00020
00022 CountableArray () : Countable(), Array<T>()
00023 {}
00024
00026 CountableArray (size_type _n) : Countable(), Array<T>(_n)
00027 {}
00028
00030 CountableArray (size_type _n, const T& _t) : Countable(), Array<T>(_n,_t)
00031 {}
00032 };
00033
00034 }
00035
00036 #endif