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 461 of file MaterialProperty.h.
|
private |
Definition at line 463 of file MaterialProperty.h.
|
inline |
Definition at line 466 of file MaterialProperty.h.
|
delete |
no copy construction is permitted
|
inlineprivate |
the default constructor is only called from the friend class
Definition at line 496 of file MaterialProperty.h.
|
inline |
get a pointer to the underlying property (only do this in initialSetup or later)
Definition at line 492 of file MaterialProperty.h.
|
inline |
implicit cast to bool to check the if the material property exists
Definition at line 489 of file MaterialProperty.h.
|
delete |
no copy assignment is permitted
|
inline |
pass through operator[] to provide a similar API as MaterialProperty
Definition at line 475 of file MaterialProperty.h.
|
inlineprivate |
setting the pointer is only permitted through the optional material proxy system
Definition at line 499 of file MaterialProperty.h.
|
inline |
pass through size calls
Definition at line 486 of file MaterialProperty.h.
|
friend |
Definition at line 502 of file MaterialProperty.h.
|
friend |
Definition at line 503 of file MaterialProperty.h.
|
private |
Definition at line 500 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().