Public Member Functions

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)
std::vector< T >::const_reference operator[] (const unsigned int i) const
std::vector< T >::reference operator[] (const unsigned int i)
std::vector< T >::const_reference operator() (const unsigned int i) const
std::vector< T >::reference operator() (const unsigned int i)
std::vector< T >::reference operator() (const TableIndices< 1 > &indices)
std::vector< T >::const_reference 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

Definition at line 769 of file table.h.


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 >
std::vector<T>::const_reference 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 >
std::vector<T>::reference 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 >
std::vector<T>::const_reference 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 >
std::vector<T>::reference 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 >
std::vector<T>::reference 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 >
std::vector<T>::const_reference 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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Fri Feb 3 2012 06:04:12 by doxygen 1.7.2