SPH
|
Non-owning wrapper of a material and particles with this material. More...
#include <IMaterial.h>
Public Member Functions | |
INLINE | MaterialView (RawPtr< IMaterial > &&material, IndexSequence seq) |
INLINE IMaterial & | material () |
Returns the reference to the material of the particles. More... | |
INLINE IMaterial & | material () const |
Returns the const reference to the material of the particles. More... | |
INLINE | operator IMaterial & () |
Implicit conversion to the material. More... | |
INLINE | operator const IMaterial & () const |
Implicit conversion to the material. More... | |
INLINE RawPtr< IMaterial > | operator-> () |
Overloaded -> operator for convenient access to material functions. More... | |
INLINE RawPtr< const IMaterial > | operator-> () const |
Overloaded -> operator for convenient access to material functions. More... | |
INLINE IndexSequence | sequence () |
Returns iterable index sequence. More... | |
INLINE const IndexSequence | sequence () const |
Returns iterable index sequence, const version. More... | |
Non-owning wrapper of a material and particles with this material.
This object serves as a junction between particle storage and a material. It can be used to access material parameters and member function, but also provides means to iterate over particle indices in the storage.
Material accessed through MaterialView shares the constness of the view, i.e. material parameters cannot be modified through const MaterialView.
Definition at line 30 of file IMaterial.h.
|
inline |
Definition at line 36 of file IMaterial.h.
Returns the reference to the material of the particles.
Definition at line 43 of file IMaterial.h.
Returns the const reference to the material of the particles.
Definition at line 49 of file IMaterial.h.
Implicit conversion to the material.
Definition at line 60 of file IMaterial.h.
Implicit conversion to the material.
Definition at line 55 of file IMaterial.h.
Overloaded -> operator for convenient access to material functions.
Definition at line 65 of file IMaterial.h.
Overloaded -> operator for convenient access to material functions.
Definition at line 70 of file IMaterial.h.
|
inline |
Returns iterable index sequence.
Definition at line 75 of file IMaterial.h.
|
inline |
Returns iterable index sequence, const version.
Definition at line 80 of file IMaterial.h.