Wrapper around a material property pointer. More...
#include <MaterialProperty.h>
Public Member Functions | |
| GenericOptionalMaterialProperty (const P *pointer) | |
| GenericOptionalMaterialProperty (const GenericOptionalMaterialProperty< T, is_ad > &)=delete | |
| no copy construction is permitted More... | |
| GenericOptionalMaterialProperty & | operator= (const GenericOptionalMaterialProperty< T, is_ad > &)=delete |
| no copy assignment is permitted More... | |
| const Moose::GenericType< T, is_ad > & | operator[] (const unsigned int i) const |
| pass through operator[] to provide a similar API as MaterialProperty More... | |
| unsigned int | size () const |
| pass through size calls More... | |
| operator bool () const | |
| implicit cast to bool to check the if the material property exists More... | |
| const P * | get () const |
| get a pointer to the underlying property (only do this in initialSetup or later) More... | |
Private Types | |
| typedef GenericMaterialProperty< T, is_ad > | P |
Private Member Functions | |
| GenericOptionalMaterialProperty () | |
| the default constructor is only called from the friend class More... | |
| void | set (const P *pointer) |
| setting the pointer is only permitted through the optional material proxy system More... | |
Private Attributes | |
| const P * | _pointer |
Friends | |
| class | OptionalMaterialPropertyProxy< Material, T, is_ad > |
| class | OptionalMaterialPropertyProxy< MaterialPropertyInterface, T, is_ad > |
Wrapper around a material property pointer.
Copying this wrapper is disabled to enforce capture via reference. Used by the optional material property API, which requires late binding updates of the stored pointer.
Definition at line 459 of file MaterialProperty.h.
|
private |
Definition at line 461 of file MaterialProperty.h.
|
inline |
Definition at line 464 of file MaterialProperty.h.
|
delete |
no copy construction is permitted
|
inlineprivate |
the default constructor is only called from the friend class
Definition at line 494 of file MaterialProperty.h.
|
inline |
get a pointer to the underlying property (only do this in initialSetup or later)
Definition at line 490 of file MaterialProperty.h.
|
inline |
implicit cast to bool to check the if the material property exists
Definition at line 487 of file MaterialProperty.h.
|
delete |
no copy assignment is permitted
|
inline |
pass through operator[] to provide a similar API as MaterialProperty
Definition at line 473 of file MaterialProperty.h.
|
inlineprivate |
setting the pointer is only permitted through the optional material proxy system
Definition at line 497 of file MaterialProperty.h.
|
inline |
pass through size calls
Definition at line 484 of file MaterialProperty.h.
|
friend |
Definition at line 500 of file MaterialProperty.h.
|
friend |
Definition at line 501 of file MaterialProperty.h.
|
private |
Definition at line 498 of file MaterialProperty.h.
Referenced by GenericOptionalMaterialProperty< RankThreeTensorTempl, is_ad >::get(), GenericOptionalMaterialProperty< RankThreeTensorTempl, is_ad >::operator bool(), GenericOptionalMaterialProperty< RankThreeTensorTempl, is_ad >::operator[](), and GenericOptionalMaterialProperty< RankThreeTensorTempl, is_ad >::set().
1.8.14