Table< 1, T > Class Template Reference
[Data storage primitives]

Inheritance diagram for Table< 1, T >:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 Table ()
 Table (const unsigned int size)
const T & operator[] (const unsigned int i) const
T & operator[] (const unsigned int i)
const T & operator() (const unsigned int i) const
T & operator() (const unsigned int i)
T & operator() (const TableIndices< 1 > &indices)
const T & operator() (const TableIndices< 1 > &indices) const


Detailed Description

template<typename T>
class Table< 1, T >

A class representing a one-dimensional table, i.e. a vector-like class. Since the C++ library has a vector class, there is probably not much need for this particular class, but since it is so simple to implement on top of the template base class, we provide it anyway.

For the rationale of this class, and a description of the interface, see the base class.

Author:
Wolfgang Bangerth, 2002

Constructor & Destructor Documentation

template<typename T >
Table< 1, T >::Table (  ) 

Default constructor. Set all dimensions to zero.

template<typename T >
Table< 1, T >::Table ( const unsigned int  size  ) 

Constructor. Pass down the given dimension to the base class.


Member Function Documentation

template<typename T >
const T& Table< 1, T >::operator[] ( const unsigned int  i  )  const

Access operator. Since this is a one-dimensional object, this simply accesses the requested data element. Returns a read-only reference.

template<typename T >
T& Table< 1, T >::operator[] ( const unsigned int  i  ) 

Access operator. Since this is a one-dimensional object, this simply accesses the requested data element. Returns a read-write reference.

template<typename T >
const T& Table< 1, T >::operator() ( const unsigned int  i  )  const

Access operator. Since this is a one-dimensional object, this simply accesses the requested data element. Returns a read-only reference.

template<typename T >
T& Table< 1, T >::operator() ( const unsigned int  i  ) 

Access operator. Since this is a one-dimensional object, this simply accesses the requested data element. Returns a read-write reference.

template<typename T >
T& Table< 1, T >::operator() ( const TableIndices< 1 > &  indices  ) 

Make the corresponding operator() from the TableBase base class available also in this class.

template<typename T >
const T& Table< 1, T >::operator() ( const TableIndices< 1 > &  indices  )  const

Make the corresponding operator() from the TableBase base class available also in this class.


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

deal.II documentation generated on Sat Aug 15 16:52:25 2009 by doxygen 1.5.9