Public Member Functions | Protected Attributes

TableIndicesBase< N > Class Template Reference
[Data storage primitives]

Inheritance diagram for TableIndicesBase< N >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

unsigned int operator[] (const unsigned int i) const
bool operator== (const TableIndicesBase< N > &other) const
bool operator!= (const TableIndicesBase< N > &other) const
void sort ()
template<class Archive >
void serialize (Archive &ar, const unsigned int version)

Protected Attributes

unsigned indices [N]

Detailed Description

template<int N>
class TableIndicesBase< N >

Base class for an array of indices of fixed size used for the TableBase and SymmetricTensor classes. Actually, this class serves a dual purpose, as it not only stores indices into the TableBase class, but also the sizes of the table in its various coordinates.

Author:
Wolfgang Bangerth, 2002

Definition at line 42 of file table_indices.h.


Member Function Documentation

template<int N>
unsigned int TableIndicesBase< N >::operator[] ( const unsigned int  i ) const [inline]

Access the value of the ith index.

Definition at line 426 of file table_indices.h.

References Assert, StandardExceptions::ExcIndexRange(), and LAPACKSupport::N.

template<int N>
bool TableIndicesBase< N >::operator== ( const TableIndicesBase< N > &  other ) const [inline]

Compare two index fields for equality.

Definition at line 437 of file table_indices.h.

References TableIndicesBase< N >::indices, and LAPACKSupport::N.

template<int N>
bool TableIndicesBase< N >::operator!= ( const TableIndicesBase< N > &  other ) const [inline]

Compare two index fields for inequality.

Definition at line 450 of file table_indices.h.

template<int N>
void TableIndicesBase< N >::sort (  )

Sort the indices in ascending order. While this operation is not very useful for Table objects, it is used for the SymmetricTensor class.

template<int N>
template<class Archive >
void TableIndicesBase< N >::serialize ( Archive &  ar,
const unsigned int  version 
) [inline]

Write or read the data of this object to or from a stream for the purpose of serialization.

Definition at line 461 of file table_indices.h.


Member Data Documentation

template<int N>
unsigned TableIndicesBase< N >::indices[N] [protected]

Store the indices in an array.

Definition at line 82 of file table_indices.h.

Referenced by TableIndicesBase< N >::operator==(), TableIndicesBase< 3 >::sort(), and TableIndicesBase< 2 >::sort().


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