hdnum::Array< T > Class Template Reference

A basic dynamic array class. More...

#include <array.hh>

Inheritance diagram for hdnum::Array< T >:

hdnum::CountableArray< T >

List of all members.

Public Types

typedef T value_type
 Remember the storage type.
typedef value_typereference
 Reference to an object.
typedef const value_typeconst_reference
 Const reference to an object.
typedef std::size_t size_type
 Type used for array indices.
typedef std::ptrdiff_t difference_type
 Difference type.

Public Member Functions

 Array ()
 make empty array
 Array (size_type _n)
 make array with _n uninitialized components
 Array (size_type _n, const T &_t)
 make array with _n initialized components
 Array (const Array &a)
 copy constructor
 ~Array ()
 destructor, free dynamic memory
void resize (size_type _n)
 reallocate array to given size, any data is lost
void resize (size_type _n, const T &_t)
 reallocate array to given size, any data is lost
Arrayoperator= (const Array &a)
 assignment
reference operator[] (size_type i)
 Component access.
const_reference operator[] (size_type i) const
 Const component access.
size_type size () const
 get array size


Detailed Description

template<class T>
class hdnum::Array< T >

A basic dynamic array class.

Provides a dyamically allocated array with access operator, resizing and size method.


The documentation for this class was generated from the following file:

Generated on Thu Nov 5 11:47:00 2009 for Heidelberg Educational Numerics Library by  doxygen 1.5.5