OpenMD  2.5
Molecular Dynamics in the Open
OpenMD::Grid3D< Elem > Class Template Reference

#include <Grid3d.hpp>

Public Member Functions

 Grid3D (unsigned int dim1, unsigned int dim2, unsigned int dim3)
 
Elem & operator() (unsigned int i, unsigned int j, unsigned int k)
 
const Elem & operator() (unsigned int i, unsigned int j, unsigned int k) const
 
vector< Elem > getAllNeighbors (unsigned int i, unsigned int j, unsigned int k)
 

Private Member Functions

int isValidGrid (unsigned int i, unsigned int j, unsigned int k) const
 

Private Attributes

unsigned int dim1_
 
unsigned int dim2_
 
unsigned int dim3_
 
vector< Elem > data_
 

Detailed Description

template<class Elem>
class OpenMD::Grid3D< Elem >

Definition at line 52 of file Grid3d.hpp.

Constructor & Destructor Documentation

◆ Grid3D()

template<class Elem>
OpenMD::Grid3D< Elem >::Grid3D ( unsigned int  dim1,
unsigned int  dim2,
unsigned int  dim3 
)
inline

Definition at line 54 of file Grid3d.hpp.

Member Function Documentation

◆ getAllNeighbors()

template<class Elem>
vector<Elem> OpenMD::Grid3D< Elem >::getAllNeighbors ( unsigned int  i,
unsigned int  j,
unsigned int  k 
)
inline

Definition at line 69 of file Grid3d.hpp.

Referenced by OpenMD::RoughShell::createBeads().

◆ isValidGrid()

template<class Elem>
int OpenMD::Grid3D< Elem >::isValidGrid ( unsigned int  i,
unsigned int  j,
unsigned int  k 
) const
inlineprivate

Definition at line 101 of file Grid3d.hpp.

◆ operator()() [1/2]

template<class Elem>
Elem& OpenMD::Grid3D< Elem >::operator() ( unsigned int  i,
unsigned int  j,
unsigned int  k 
)
inline

Definition at line 57 of file Grid3d.hpp.

◆ operator()() [2/2]

template<class Elem>
const Elem& OpenMD::Grid3D< Elem >::operator() ( unsigned int  i,
unsigned int  j,
unsigned int  k 
) const
inline

Definition at line 63 of file Grid3d.hpp.

Member Data Documentation

◆ data_

template<class Elem>
vector<Elem> OpenMD::Grid3D< Elem >::data_
private

Definition at line 109 of file Grid3d.hpp.

◆ dim1_

template<class Elem>
unsigned int OpenMD::Grid3D< Elem >::dim1_
private

Definition at line 104 of file Grid3d.hpp.

◆ dim2_

template<class Elem>
unsigned int OpenMD::Grid3D< Elem >::dim2_
private

Definition at line 107 of file Grid3d.hpp.

◆ dim3_

template<class Elem>
unsigned int OpenMD::Grid3D< Elem >::dim3_
private

Definition at line 108 of file Grid3d.hpp.


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