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 | |
| GenericOptionalMaterialProperty & | operator= (const GenericOptionalMaterialProperty< T, is_ad > &)=delete |
| no copy assignment is permitted | |
| const Moose::GenericType< T, is_ad > & | operator[] (const unsigned int i) const |
| pass through operator[] to provide a similar API as MaterialProperty | |
| unsigned int | size () const |
| pass through size calls | |
| operator bool () const | |
| implicit cast to bool to check the if the material property exists | |
| const P * | get () const |
| get a pointer to the underlying property (only do this in initialSetup or later) | |
Private Types | |
| typedef GenericMaterialProperty< T, is_ad > | P |
Private Member Functions | |
| GenericOptionalMaterialProperty () | |
| the default constructor is only called from the friend class | |
| void | set (const P *pointer) |
| setting the pointer is only permitted through the optional material proxy system | |
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 457 of file MaterialProperty.h.
|
private |
Definition at line 459 of file MaterialProperty.h.
|
inline |
Definition at line 462 of file MaterialProperty.h.
|
delete |
no copy construction is permitted
|
inlineprivate |
the default constructor is only called from the friend class
Definition at line 492 of file MaterialProperty.h.
|
inline |
get a pointer to the underlying property (only do this in initialSetup or later)
Definition at line 488 of file MaterialProperty.h.
|
inline |
implicit cast to bool to check the if the material property exists
Definition at line 485 of file MaterialProperty.h.
|
delete |
no copy assignment is permitted
|
inline |
pass through operator[] to provide a similar API as MaterialProperty
Definition at line 471 of file MaterialProperty.h.
|
inlineprivate |
setting the pointer is only permitted through the optional material proxy system
Definition at line 495 of file MaterialProperty.h.
|
inline |
pass through size calls
Definition at line 482 of file MaterialProperty.h.
|
friend |
Definition at line 496 of file MaterialProperty.h.
|
friend |
Definition at line 496 of file MaterialProperty.h.
|
private |