![]() |
deal.II version 9.7.0
|
#include <deal.II/base/symmetric_tensor.h>
Definition at line 622 of file symmetric_tensor.h.

Public Types | |
| using | reference |
| using | tensor_type |
Public Member Functions | |
| DEAL_II_HOST constexpr reference | operator[] (const unsigned int) |
| DEAL_II_HOST constexpr reference | operator[] (const unsigned int) const |
Private Member Functions | |
| DEAL_II_HOST constexpr | Accessor (tensor_type &tensor, const TableIndices< rank > &previous_indices) |
| DEAL_II_HOST constexpr | Accessor (const Accessor &)=default |
Private Attributes | |
| tensor_type & | tensor |
| const TableIndices< rank > | previous_indices |
Friends | |
| template<int, int, typename> | |
| class | ::SymmetricTensor |
| template<int, int, bool, int, typename> | |
| class | SymmetricTensorAccessors::Accessor |
| class | ::SymmetricTensor< rank, dim, Number > |
| class | SymmetricTensorAccessors::Accessor< rank, dim, constness, 2, Number > |
| class | Accessor< rank, dim, constness, P+1, Number > |
| using internal::SymmetricTensorAccessors::Accessor< rank, dim, constness, 1, Number >::reference |
Import two alias from the switch class above.
Definition at line 628 of file symmetric_tensor.h.
| using internal::SymmetricTensorAccessors::Accessor< rank, dim, constness, 1, Number >::tensor_type |
Definition at line 630 of file symmetric_tensor.h.
|
constexprprivate |
Constructor. Take a reference to the tensor object which we will access.
The second argument denotes the values of previous indices into the tensor. For example, for a rank-4 tensor, if P=2, then we will already have had two successive element selections (e.g. through tensor[1][2]), and the two index values have to be stored somewhere. This class therefore only makes use of the first rank-P elements of this array, but passes it on to the next level with P-1 which fills the next entry, and so on.
For this particular specialization, i.e. for P==1, all but the last index are already filled.
The constructor is made private in order to prevent you having such objects around. The only way to create such objects is via the Table class, which only generates them as temporary objects. This guarantees that the accessor objects go out of scope earlier than the parent object, avoid problems with data consistency.
|
constexprprivatedefault |
Copy constructor.
|
constexpr |
Index operator.
|
constexpr |
Index operator.
|
friend |
Definition at line 691 of file symmetric_tensor.h.
|
friend |
Definition at line 693 of file symmetric_tensor.h.
|
friend |
Definition at line 693 of file symmetric_tensor.h.
|
friend |
Definition at line 693 of file symmetric_tensor.h.
|
friend |
Definition at line 607 of file symmetric_tensor.h.
|
private |
Store the data given to the constructor.
Definition at line 685 of file symmetric_tensor.h.
|
private |
Definition at line 686 of file symmetric_tensor.h.