SPH
Public Member Functions | List of all members
ComponentGetter Class Reference

Public Member Functions

 ComponentGetter (const Storage &storage)
 
Storage getComponent (const Size idx)
 
ArrayView< const FloatgetMasses () const
 
ArrayView< const VectorgetPositions () const
 
ArrayView< const VectorgetVelocities () const
 

Detailed Description

Definition at line 150 of file GridPage.cpp.

Constructor & Destructor Documentation

◆ ComponentGetter()

ComponentGetter::ComponentGetter ( const Storage storage)
inlineexplicit

Definition at line 163 of file GridPage.cpp.

Member Function Documentation

◆ getComponent()

Storage ComponentGetter::getComponent ( const Size  idx)
inline

Definition at line 170 of file GridPage.cpp.

◆ getMasses()

ArrayView<const Float> ComponentGetter::getMasses ( ) const
inline

Definition at line 182 of file GridPage.cpp.

◆ getPositions()

ArrayView<const Vector> ComponentGetter::getPositions ( ) const
inline

Definition at line 189 of file GridPage.cpp.

◆ getVelocities()

ArrayView<const Vector> ComponentGetter::getVelocities ( ) const
inline

Definition at line 196 of file GridPage.cpp.

Member Data Documentation

◆ masses

Array<Float> ComponentGetter::masses

Definition at line 157 of file GridPage.cpp.

◆ positions

Array<Vector> ComponentGetter::positions

Definition at line 158 of file GridPage.cpp.

◆ velocities

Array<Vector> ComponentGetter::velocities

Definition at line 159 of file GridPage.cpp.


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