Reference documentation for deal.II version 8.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Attributes | List of all members
TableIndicesBase< N > Class Template Reference

#include <table_indices.h>

Inheritance diagram for TableIndicesBase< N >:
[legend]

Public Member Functions

unsigned int operator[] (const unsigned int i) const
 
unsigned intoperator[] (const unsigned int i)
 
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 int 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 41 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 432 of file table_indices.h.

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

Write access the value of the ith index.

Definition at line 441 of file table_indices.h.

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

Compare two index fields for equality.

Definition at line 451 of file table_indices.h.

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

Compare two index fields for inequality.

Definition at line 464 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 475 of file table_indices.h.

Member Data Documentation

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

Store the indices in an array.

Definition at line 87 of file table_indices.h.


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