Reference documentation for deal.II version 9.4.1
|
#include <deal.II/base/table.h>
Public Types | |
using | TableType = typename Types< N, T, C >::TableType |
using | iterator = typename Types< N, T, C >::iterator |
using | const_iterator = typename Types< N, T, C >::const_iterator |
using | size_type = size_t |
using | difference_type = ptrdiff_t |
Public Member Functions | |
Accessor (const Accessor &a) | |
Accessor< N, T, C, P - 1 > | operator[] (const size_type i) const |
Static Public Member Functions | |
static ::ExceptionBase & | ExcIndexRange (size_type arg1, size_type arg2, size_type arg3) |
Private Member Functions | |
Accessor (const TableType &table, const iterator data) | |
Private Attributes | |
const TableType & | table |
const iterator | data |
Friends | |
template<int N1, typename T1 > | |
class | ::Table |
template<int N1, typename T1 , bool C1, unsigned int P1> | |
class | Accessor |
class | ::Table< N, T > |
class | Accessor< N, T, C, P+1 > |
using internal::TableBaseAccessors::Accessor< N, T, C, P >::TableType = typename Types<N, T, C>::TableType |
using internal::TableBaseAccessors::Accessor< N, T, C, P >::iterator = typename Types<N, T, C>::iterator |
using internal::TableBaseAccessors::Accessor< N, T, C, P >::const_iterator = typename Types<N, T, C>::const_iterator |
using internal::TableBaseAccessors::Accessor< N, T, C, P >::size_type = size_t |
using internal::TableBaseAccessors::Accessor< N, T, C, P >::difference_type = ptrdiff_t |
|
private |
Constructor. Take a pointer to the table object to know about the sizes of the various dimensions, and a pointer to the subset of data we may access.
internal::TableBaseAccessors::Accessor< N, T, C, P >::Accessor | ( | const Accessor< N, T, C, P > & | a | ) |
Copy constructor. This constructor is public so that one can pass sub-tables to functions as arguments, as in f(table[i])
.
Using this constructor is risky if accessors are stored longer than the table it points to. Don't do this.
Accessor< N, T, C, P - 1 > internal::TableBaseAccessors::Accessor< N, T, C, P >::operator[] | ( | const size_type | i | ) | const |
Index operator. Performs a range check.
|
friend |
|
private |
|
private |