From 07da06a0e2dbaa40966fdb44081390c832d636db Mon Sep 17 00:00:00 2001 From: bangerth Date: Mon, 5 Mar 2007 01:03:36 +0000 Subject: [PATCH] Make a number of functions 'inline' that apparently have been forgotten git-svn-id: https://svn.dealii.org/trunk@14518 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/table.h | 42 +++++++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/deal.II/base/include/base/table.h b/deal.II/base/include/base/table.h index 62faa8532e..d2dcb437ae 100644 --- a/deal.II/base/include/base/table.h +++ b/deal.II/base/include/base/table.h @@ -1921,6 +1921,7 @@ TableBase::~TableBase () template +inline TableBase& TableBase::operator = (const TableBase& m) { @@ -1935,6 +1936,7 @@ TableBase::operator = (const TableBase& m) template template +inline TableBase& TableBase::operator = (const TableBase& m) { @@ -1971,6 +1973,7 @@ TableBase::fill (const T& value) template +inline void TableBase::reinit (const TableIndices &new_sizes) { @@ -2029,6 +2032,7 @@ TableBase::reinit (const TableIndices &new_sizes) template +inline const TableIndices & TableBase::size () const { @@ -2038,8 +2042,9 @@ TableBase::size () const template +inline unsigned int -TableBase::size (unsigned int i) const +TableBase::size (const unsigned int i) const { Assert (i::size (unsigned int i) const template +inline unsigned int TableBase::n_elements () const { @@ -2060,6 +2066,7 @@ TableBase::n_elements () const template +inline bool TableBase::empty () const { @@ -2083,6 +2090,7 @@ TableBase::fill (const T2* entries) template +inline unsigned int TableBase::memory_consumption () const { @@ -2123,7 +2131,8 @@ TableBase::position (const TableIndices &indices) const template -inline const T & +inline +const T & TableBase::operator() (const TableIndices &indices) const { for (unsigned int n=0; n::operator() (const TableIndices &indices) const template -inline T & +inline +T & TableBase::operator() (const TableIndices &indices) { for (unsigned int n=0; n::operator() (const TableIndices &indices) template -inline const T & +inline +const T & TableBase::el (const TableIndices &indices) const { return val[position(indices)]; @@ -2156,7 +2167,8 @@ TableBase::el (const TableIndices &indices) const template -inline T & +inline +T & TableBase::el (const TableIndices &indices) { return val[position(indices)]; @@ -2176,12 +2188,14 @@ TableBase::data () const template +inline Table<1,T>::Table () {} template +inline Table<1,T>::Table (const unsigned int size) : TableBase<1,T> (TableIndices<1> (size)) @@ -2190,6 +2204,7 @@ Table<1,T>::Table (const unsigned int size) template +inline const T & Table<1,T>::operator [] (const unsigned int i) const { @@ -2201,6 +2216,7 @@ Table<1,T>::operator [] (const unsigned int i) const template +inline T & Table<1,T>::operator [] (const unsigned int i) { @@ -2257,12 +2273,14 @@ Table<1,T>::operator () (const TableIndices<1> &indices) //--------------------------------------------------------------------------- template +inline Table<2,T>::Table () {} template +inline Table<2,T>::Table (const unsigned int size1, const unsigned int size2) : @@ -2272,6 +2290,7 @@ Table<2,T>::Table (const unsigned int size1, template +inline void Table<2,T>::reinit (const unsigned int size1, const unsigned int size2) @@ -2402,12 +2421,14 @@ Table<2,T>::n_cols () const //--------------------------------------------------------------------------- template +inline TransposeTable::TransposeTable () {} template +inline TransposeTable::TransposeTable (const unsigned int size1, const unsigned int size2) : @@ -2417,6 +2438,7 @@ TransposeTable::TransposeTable (const unsigned int size1, template +inline void TransposeTable::reinit (const unsigned int size1, const unsigned int size2) @@ -2502,12 +2524,14 @@ TransposeTable::n_cols () const template +inline Table<3,T>::Table () {} template +inline Table<3,T>::Table (const unsigned int size1, const unsigned int size2, const unsigned int size3) @@ -2608,12 +2632,14 @@ Table<3,T>::operator () (const TableIndices<3> &indices) template +inline Table<4,T>::Table () {} template +inline Table<4,T>::Table (const unsigned int size1, const unsigned int size2, const unsigned int size3, @@ -2726,12 +2752,14 @@ Table<4,T>::operator () (const TableIndices<4> &indices) template +inline Table<5,T>::Table () {} template +inline Table<5,T>::Table (const unsigned int size1, const unsigned int size2, const unsigned int size3, @@ -2854,12 +2882,14 @@ Table<5,T>::operator () (const TableIndices<5> &indices) template +inline Table<6,T>::Table () {} template +inline Table<6,T>::Table (const unsigned int size1, const unsigned int size2, const unsigned int size3, @@ -2993,12 +3023,14 @@ Table<6,T>::operator () (const TableIndices<6> &indices) template +inline Table<7,T>::Table () {} template +inline Table<7,T>::Table (const unsigned int size1, const unsigned int size2, const unsigned int size3, -- 2.39.5