*/
T &
operator () (const unsigned int i);
+
+ /**
+ * Make the corresponding
+ * operator() from the TableBase
+ * base class available also in
+ * this class.
+ */
+ T &
+ operator() (const TableIndices<1> &indices);
+
+ /**
+ * Make the corresponding
+ * operator() from the TableBase
+ * base class available also in
+ * this class.
+ */
+ const T &
+ operator() (const TableIndices<1> &indices) const;
};
T & operator () (const unsigned int i,
const unsigned int j);
+ /**
+ * Make the corresponding
+ * operator() from the TableBase
+ * base class available also in
+ * this class.
+ */
+ T &
+ operator() (const TableIndices<2> &indices);
+
+ /**
+ * Make the corresponding
+ * operator() from the TableBase
+ * base class available also in
+ * this class.
+ */
+ const T &
+ operator() (const TableIndices<2> &indices) const;
+
/**
* Number of rows. This function
T & operator () (const unsigned int i,
const unsigned int j,
const unsigned int k);
+
+ /**
+ * Make the corresponding
+ * operator() from the TableBase
+ * base class available also in
+ * this class.
+ */
+ T & operator() (const TableIndices<3> &indices);
+
+ /**
+ * Make the corresponding
+ * operator() from the TableBase
+ * base class available also in
+ * this class.
+ */
+ const T & operator() (const TableIndices<3> &indices) const;
};
const unsigned int j,
const unsigned int k,
const unsigned int l);
+
+ /**
+ * Make the corresponding
+ * operator() from the TableBase
+ * base class available also in
+ * this class.
+ */
+ T &
+ operator() (const TableIndices<4> &indices);
+
+ /**
+ * Make the corresponding
+ * operator() from the TableBase
+ * base class available also in
+ * this class.
+ */
+ const T &
+ operator() (const TableIndices<4> &indices) const;
};
const unsigned int l,
const unsigned int m) const;
-
/**
* Direct access to one element
* of the table by specifying all
const unsigned int k,
const unsigned int l,
const unsigned int m);
+
+ /**
+ * Make the corresponding
+ * operator() from the TableBase
+ * base class available also in
+ * this class.
+ */
+ T &
+ operator() (const TableIndices<5> &indices);
+
+ /**
+ * Make the corresponding
+ * operator() from the TableBase
+ * base class available also in
+ * this class.
+ */
+ const T &
+ operator() (const TableIndices<5> &indices) const;
};
const unsigned int k,
const unsigned int l,
const unsigned int m,
- const unsigned int n) const;
-
+ const unsigned int n) const;
/**
* Direct access to one element
const unsigned int l,
const unsigned int m,
const unsigned int n);
+
+ /**
+ * Make the corresponding
+ * operator() from the TableBase
+ * base class available also in
+ * this class.
+ */
+ T &
+ operator() (const TableIndices<6> &indices);
+
+ /**
+ * Make the corresponding
+ * operator() from the TableBase
+ * base class available also in
+ * this class.
+ */
+ const T &
+ operator() (const TableIndices<6> &indices) const;
};
const unsigned int l,
const unsigned int m,
const unsigned int n,
- const unsigned int o) const;
-
+ const unsigned int o) const;
/**
* Direct access to one element
const unsigned int m,
const unsigned int n,
const unsigned int o);
+
+ /**
+ * Make the corresponding
+ * operator() from the TableBase
+ * base class available also in
+ * this class.
+ */
+ T &
+ operator() (const TableIndices<7> &indices);
+
+ /**
+ * Make the corresponding
+ * operator() from the TableBase
+ * base class available also in
+ * this class.
+ */
+ const T &
+ operator() (const TableIndices<7> &indices) const;
};
*/
const T & operator () (const unsigned int i,
const unsigned int j) const;
-
/**
* Direct access to one element
*/
T & operator () (const unsigned int i,
const unsigned int j);
-
/**
* Number of rows. This function
}
+
template <int N, typename T>
inline
unsigned int
-
template <int N, typename T>
inline const T &
TableBase<N,T>::operator() (const TableIndices<N> &indices) const
}
+
+template <typename T>
+inline
+const T &
+Table<1,T>::operator () (const TableIndices<1> &indices) const
+{
+ return TableBase<1,T>::operator() (indices);
+}
+
+
+
+template <typename T>
+inline
+T &
+Table<1,T>::operator () (const TableIndices<1> &indices)
+{
+ return TableBase<1,T>::operator() (indices);
+}
+
+
//---------------------------------------------------------------------------
template <typename T>
+template <typename T>
+inline
+const T &
+Table<2,T>::operator () (const TableIndices<2> &indices) const
+{
+ return TableBase<2,T>::operator() (indices);
+}
+
+
+
+template <typename T>
+inline
+T &
+Table<2,T>::operator () (const TableIndices<2> &indices)
+{
+ return TableBase<2,T>::operator() (indices);
+}
+
+
+
template <typename T>
inline
const T &
+template <typename T>
+inline
+const T &
+Table<3,T>::operator () (const TableIndices<3> &indices) const
+{
+ return TableBase<3,T>::operator() (indices);
+}
+
+
+
+template <typename T>
+inline
+T &
+Table<3,T>::operator () (const TableIndices<3> &indices)
+{
+ return TableBase<3,T>::operator() (indices);
+}
+
+
+
template <typename T>
Table<4,T>::Table ()
{}
+template <typename T>
+inline
+const T &
+Table<4,T>::operator () (const TableIndices<4> &indices) const
+{
+ return TableBase<4,T>::operator() (indices);
+}
+
+
+
+template <typename T>
+inline
+T &
+Table<4,T>::operator () (const TableIndices<4> &indices)
+{
+ return TableBase<4,T>::operator() (indices);
+}
+
+
+
template <typename T>
Table<5,T>::Table ()
+template <typename T>
+inline
+const T &
+Table<5,T>::operator () (const TableIndices<5> &indices) const
+{
+ return TableBase<5,T>::operator() (indices);
+}
+
+
+
+template <typename T>
+inline
+T &
+Table<5,T>::operator () (const TableIndices<5> &indices)
+{
+ return TableBase<5,T>::operator() (indices);
+}
+
+
+
template <typename T>
Table<6,T>::Table ()
{}
+template <typename T>
+inline
+const T &
+Table<6,T>::operator () (const TableIndices<6> &indices) const
+{
+ return TableBase<6,T>::operator() (indices);
+}
+
+
+
+template <typename T>
+inline
+T &
+Table<6,T>::operator () (const TableIndices<6> &indices)
+{
+ return TableBase<6,T>::operator() (indices);
+}
+
+
+
template <typename T>
Table<7,T>::Table ()
{}
*this->table_size[6] + o];
}
+
+
+template <typename T>
+inline
+const T &
+Table<7,T>::operator () (const TableIndices<7> &indices) const
+{
+ return TableBase<7,T>::operator() (indices);
+}
+
+
+
+template <typename T>
+inline
+T &
+Table<7,T>::operator () (const TableIndices<7> &indices)
+{
+ return TableBase<7,T>::operator() (indices);
+}
+
+
#endif // DOXYGEN
#endif