GEOSX
Public Types | Public Member Functions | Public Attributes | List of all members
geos::ToParticleRelation< BASETYPE > Class Template Reference

A relationship to a particle. More...

#include <ToParticleRelation.hpp>

Public Types

using base_type = BASETYPE
 The type of the underlying relationship storage object.
 

Public Member Functions

template<typename ... DIMS>
void resize (DIMS... newdims)
 Resize the underlying relationship storage. More...
 
localIndex size () const
 Get the current size of the relationship storage. More...
 
localIndex size (int const dim) const
 Get the size of a specific dimension of the relationship storage. More...
 
void setParticleManager (ParticleManager const &input)
 Set the ParticleRegionManager. More...
 
const ParticleManagergetParticleManager () const
 Get the ParticleRegionManager. More...
 

Public Attributes

array1d< localIndexm_numParticles
 The number of particles associated with the object.
 
BASETYPE m_toParticleRegion
 The relationship between object indices and particle regions.
 
BASETYPE m_toParticleSubRegion
 The relationship between object indices and particle subregions.
 
BASETYPE m_toParticleIndex
 The relationship between object indices and particle indices.
 
const ParticleManagerm_particleManager {}
 The current ParticleRegionManager.
 

Detailed Description

template<typename BASETYPE>
class geos::ToParticleRelation< BASETYPE >

A relationship to a particle.

Template Parameters
BASETYPEThe underlying relation type to use to store the relationsip information.

Definition at line 35 of file ToParticleRelation.hpp.

Member Function Documentation

◆ getParticleManager()

template<typename BASETYPE >
const ParticleManager* geos::ToParticleRelation< BASETYPE >::getParticleManager ( ) const
inline

Get the ParticleRegionManager.

Returns
The current ParticleRegionManager.

Definition at line 89 of file ToParticleRelation.hpp.

◆ resize()

template<typename BASETYPE >
template<typename ... DIMS>
void geos::ToParticleRelation< BASETYPE >::resize ( DIMS...  newdims)
inline

Resize the underlying relationship storage.

Template Parameters
DIMSThe types of each dimensions resize parameter.
Parameters
newdimsA parameter pack of appropriate size to resize each dimension of the relationship storage.

Definition at line 49 of file ToParticleRelation.hpp.

◆ setParticleManager()

template<typename BASETYPE >
void geos::ToParticleRelation< BASETYPE >::setParticleManager ( ParticleManager const &  input)
inline

Set the ParticleRegionManager.

Parameters
inputThe ParticleRegionManager to set.

Definition at line 80 of file ToParticleRelation.hpp.

◆ size() [1/2]

template<typename BASETYPE >
localIndex geos::ToParticleRelation< BASETYPE >::size ( ) const
inline

Get the current size of the relationship storage.

Returns
The current size of the relationship storage.

Definition at line 61 of file ToParticleRelation.hpp.

◆ size() [2/2]

template<typename BASETYPE >
localIndex geos::ToParticleRelation< BASETYPE >::size ( int const  dim) const
inline

Get the size of a specific dimension of the relationship storage.

Parameters
dimThe dimension to get the storage size of.
Returns
The dimension size

Definition at line 71 of file ToParticleRelation.hpp.


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