![]() |
Reference documentation for deal.II version 8.1.0
|
Public Types | |
typedef Types< N, T, C >::TableType | TableType |
typedef Types< N, T, C >::iterator | iterator |
typedef Types< N, T, C >::const_iterator | const_iterator |
Public Member Functions | |
Accessor (const Accessor &a) | |
Accessor< N, T, C, P-1 > | operator[] (const unsigned int i) const |
DeclException3 (ExcIndexRange, int, int, int,<< "Index "<< N-P+1<< "has a value of "<< arg1<< " but needs to be in the range ["<< arg2<< ","<< arg3<< "[") | |
Private Member Functions | |
Accessor (const TableType &table, const iterator data) | |
Accessor () | |
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 > |
|
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.
|
private |
Default constructor. Not needed, and invisible, so private.
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 unsigned int | i | ) | const |
Index operator. Performs a range check.
internal::TableBaseAccessors::Accessor< N, T, C, P >::DeclException3 | ( | ExcIndexRange | , |
int | , | ||
int | , | ||
int | , | ||
<< "Index "<< N-P+1<< "has a value of "<< arg1<< " but needs to be in the range ["<< arg2<< " | , | ||
"<< arg3<< "[" | |||
) |
Exception for range check. Do not use global exception since this way we can output which index is the wrong one.
|
private |