MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
collStruct< nDim > Class Template Reference

#include <lptcollisiondata.h>

Collaboration diagram for collStruct< nDim >:
[legend]

Public Member Functions

 collStruct ()
 
 collStruct (const collStruct &copy)
 
 ~collStruct ()=default
 
collStructoperator= (const collStruct &rhs)
 
MInt operator== (const collStruct &rhs) const
 
MInt operator< (const collStruct &rhs) const
 
std::vector< LPTSpherical< nDim > >::iterator returnParticle0 () const
 
std::vector< LPTSpherical< nDim > >::iterator returnParticle1 () const
 

Public Attributes

MFloat collTime = -1.0
 
std::vector< LPTSpherical< nDim > >::iterator particle0
 
std::vector< LPTSpherical< nDim > >::iterator particle1
 
MInt bndryId
 

Detailed Description

template<MInt nDim>
class collStruct< nDim >

Definition at line 16 of file lptcollisiondata.h.

Constructor & Destructor Documentation

◆ collStruct() [1/2]

template<MInt nDim>
collStruct< nDim >::collStruct ( )
inline

Definition at line 23 of file lptcollisiondata.h.

23{};

◆ collStruct() [2/2]

template<MInt nDim>
collStruct< nDim >::collStruct ( const collStruct< nDim > &  copy)
inline

Definition at line 26 of file lptcollisiondata.h.

26 {
27 collTime = copy.collTime;
28 particle0 = copy.particle0;
29 particle1 = copy.particle1;
30 bndryId = copy.bndryId;
31 }
std::vector< LPTSpherical< nDim > >::iterator particle1
std::vector< LPTSpherical< nDim > >::iterator particle0

◆ ~collStruct()

template<MInt nDim>
collStruct< nDim >::~collStruct ( )
default

Member Function Documentation

◆ operator<()

template<MInt nDim>
MInt collStruct< nDim >::operator< ( const collStruct< nDim > &  rhs) const
inline

Definition at line 57 of file lptcollisiondata.h.

57 {
58 if(this->collTime < rhs.collTime) {
59 return 1;
60 }
61 return 0;
62 }

◆ operator=()

template<MInt nDim>
collStruct & collStruct< nDim >::operator= ( const collStruct< nDim > &  rhs)
inline

Definition at line 38 of file lptcollisiondata.h.

38 {
39 this->collTime = rhs.collTime;
40 this->particle0 = rhs.particle0;
41 this->particle1 = rhs.particle1;
42 this->bndryId = rhs.bndryId;
43 return *this;
44 }

◆ operator==()

template<MInt nDim>
MInt collStruct< nDim >::operator== ( const collStruct< nDim > &  rhs) const
inline

Definition at line 48 of file lptcollisiondata.h.

48 {
49 if(!approx(this->collTime, rhs.collTime, MFloatEps)) {
50 return 0;
51 }
52 return 1;
53 }
MBool approx(const T &, const U &, const T)
Definition: functions.h:272

◆ returnParticle0()

template<MInt nDim>
std::vector< LPTSpherical< nDim > >::iterator collStruct< nDim >::returnParticle0 ( ) const
inline

Definition at line 64 of file lptcollisiondata.h.

64{ return particle0; }

◆ returnParticle1()

template<MInt nDim>
std::vector< LPTSpherical< nDim > >::iterator collStruct< nDim >::returnParticle1 ( ) const
inline

Definition at line 66 of file lptcollisiondata.h.

66{ return particle1; }

Member Data Documentation

◆ bndryId

template<MInt nDim>
MInt collStruct< nDim >::bndryId

Definition at line 21 of file lptcollisiondata.h.

◆ collTime

template<MInt nDim>
MFloat collStruct< nDim >::collTime = -1.0

Definition at line 18 of file lptcollisiondata.h.

◆ particle0

template<MInt nDim>
std::vector<LPTSpherical<nDim>>::iterator collStruct< nDim >::particle0

Definition at line 19 of file lptcollisiondata.h.

◆ particle1

template<MInt nDim>
std::vector<LPTSpherical<nDim>>::iterator collStruct< nDim >::particle1

Definition at line 20 of file lptcollisiondata.h.


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