|
ImpactX
|
#include <named.H>
Public Member Functions | |
| AMREX_GPU_HOST void | set_name (std::string const &new_name) |
| AMREX_GPU_HOST | Named (std::optional< std::string > name) |
| AMREX_GPU_HOST_DEVICE | ~Named () |
| AMREX_GPU_HOST | Named (Named const &other) |
| AMREX_GPU_HOST Named & | operator= (Named const &other) |
| AMREX_GPU_HOST_DEVICE | Named (Named &&other) noexcept |
| AMREX_GPU_HOST_DEVICE Named & | operator= (Named &&other) noexcept |
| AMREX_FORCE_INLINE std::string | name () const |
| AMREX_FORCE_INLINE bool | has_name () const |
Private Attributes | |
| char * | m_name = nullptr |
This is a helper class for lattice elements with a user-defined name
|
inline |
A user-named element
| name | a user defined and not necessarily unique name of the element |
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
Return true if the user provided a name for this element
|
inline |
Return the user provided name of the element
|
inlinenoexcept |
|
inline |
|
inline |
Overwrite the name of the element
| new_name | set a new name on the element |
|
private |