Heidelberg Educational Numerics Library Version 0.24 (from 9 September 2011)

src/countablearray.hh

Go to the documentation of this file.
00001 // -*- tab-width: 4; indent-tabs-mode: nil -*-
00002 #ifndef HDNUM_COUNTABLEARRAY_HH
00003 #define HDNUM_COUNTABLEARRAY_HH
00004 
00005 #include "countingptr.hh"
00006 #include "array.hh"
00007 
00012 namespace hdnum {
00013 
00019   template<class T>
00020   class CountableArray : public Countable, public Array<T>
00021   {
00022   public:
00024         typedef std::size_t size_type;
00025 
00027         CountableArray () : Countable(), Array<T>()
00028         {}
00029 
00031         CountableArray (size_type _n) : Countable(), Array<T>(_n)
00032         {}
00033 
00035         CountableArray (size_type _n, const T& _t) : Countable(), Array<T>(_n,_t)
00036         {}
00037   };
00038 
00039 } // namespace hdnum
00040 
00041 #endif