|
chombo-discharge
|
A generic non-communicated particle class. More...
#include <CD_NonCommParticle.H>
Public Member Functions | |
| NonCommParticle () | |
| Default constructor – initializes everything to zero. | |
| NonCommParticle (const NonCommParticle< M, N > &a_other) | |
| Copy constructor. Copies all fields. | |
| virtual | ~NonCommParticle () |
| Destructor (deallocates runtime memory storage) | |
| template<size_t K> | |
| Real & | real () |
| Get one of the scalars. | |
| template<size_t K> | |
| const Real & | real () const |
| Get one of the scalars. | |
| template<size_t K> | |
| RealVect & | vect () |
| Get one of the RealVects. | |
| template<size_t K> | |
| const RealVect & | vect () const |
| Get one of the RealVects. | |
| bool | operator== (const NonCommParticle< M, N > &a_other) const |
| Comparison operator with other particle. | |
| bool | operator!= (const NonCommParticle< M, N > &a_other) const |
| Comparison operator with other particle. | |
Protected Attributes | |
| std::array< Real, M > | m_scalars |
| Scalar storage array. | |
| std::array< RealVect, N > | m_vectors |
| vector storage array | |
A generic non-communicated particle class.
|
inline |
Copy constructor. Copies all fields.
| [in] | a_other | Other particle. |
|
inline |
Comparison operator with other particle.
| [in] | a_other | Other particle |
|
inline |
Comparison operator with other particle.
| [in] | a_other | Other particle |
Get one of the scalars.
Template parameter is the position in the m_scalars array. This is templated so that compilers may throw compile-time errors if trying to fetch elements out of range.
Get one of the scalars.
Template parameter is the position in the m_scalars array. This is templated so that compilers may throw compile-time errors if trying to fetch elements out of range.
Get one of the RealVects.
Template parameter is the position in the m_vectors array. This is templated so that compilers may throw compile-time errors if trying to fetch elements out of range.
Get one of the RealVects.
Template parameter is the position in the m_vectors array. This is templated so that compilers may throw compile-time errors if trying to fetch elements out of range.