chombo-discharge
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
NonCommParticle< M, N > Class Template Reference

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>
Realreal ()
 Get one of the scalars.
 
template<size_t K>
const Realreal () const
 Get one of the scalars.
 
template<size_t K>
RealVectvect ()
 Get one of the RealVects.
 
template<size_t K>
const RealVectvect () 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, Mm_scalars
 Scalar storage array.
 
std::array< RealVect, Nm_vectors
 vector storage array
 

Detailed Description

template<size_t M, size_t N>
class NonCommParticle< M, N >

A generic non-communicated particle class.

Constructor & Destructor Documentation

◆ NonCommParticle()

template<size_t M, size_t N>
NonCommParticle< M, N >::NonCommParticle ( const NonCommParticle< M, N > &  a_other)
inline

Copy constructor. Copies all fields.

Parameters
[in]a_otherOther particle.

Member Function Documentation

◆ operator!=()

template<size_t M, size_t N>
bool NonCommParticle< M, N >::operator!= ( const NonCommParticle< M, N > &  a_other) const
inline

Comparison operator with other particle.

Parameters
[in]a_otherOther particle
Note
Does not compare the M and N Reals and RealVects.

◆ operator==()

template<size_t M, size_t N>
bool NonCommParticle< M, N >::operator== ( const NonCommParticle< M, N > &  a_other) const
inline

Comparison operator with other particle.

Parameters
[in]a_otherOther particle
Note
Does not compare the M and N Reals and RealVects.

◆ real() [1/2]

template<size_t M, size_t N>
template<size_t K>
Real & NonCommParticle< M, N >::real ( )
inline

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.

Returns
m_scalars[K]

◆ real() [2/2]

template<size_t M, size_t N>
template<size_t K>
const Real & NonCommParticle< M, N >::real ( ) const
inline

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.

Returns
m_scalars[K]

◆ vect() [1/2]

template<size_t M, size_t N>
template<size_t K>
RealVect & NonCommParticle< M, N >::vect ( )
inline

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.

Returns
m_vectors[K]

◆ vect() [2/2]

template<size_t M, size_t N>
template<size_t K>
const RealVect & NonCommParticle< M, N >::vect ( ) const
inline

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.

Returns
m_vectors[K]

The documentation for this class was generated from the following files: