MDStressLab++
BoxPoints Class Reference

#include <SpatialHash.h>

Inheritance diagram for BoxPoints:
Collaboration diagram for BoxPoints:

Public Member Functions

 BoxPoints (Vector3d origin, Vector3d step, MatrixXd &coordinates)
 
 BoxPoints (Vector3d origin, Vector3d step, std::vector< Vector3d > &coordinates)
 
virtual ~BoxPoints ()
 
void fold (const Vector3i &pbc)
 
- Public Member Functions inherited from SpatialHash< false >
 SpatialHash ()
 
 SpatialHash (Vector3d origin, Vector3d step, A &coordinates)
 
 SpatialHash (Vector3d origin, Vector3d step, C &coordinates)
 
Triplet hashFunction (const int &i)
 
virtual ~SpatialHash ()
 

Additional Inherited Members

- Public Types inherited from SpatialHash< false >
typedef Select< isConst, const MatrixXd, MatrixXd >::Result A
 
typedef Select< isConst, const Vector3d, Vector3d >::Result B
 
typedef Select< isConst, const std::vector< Vector3d >, std::vector< Vector3d > >::Result C
 
- Public Attributes inherited from SpatialHash< false >
Vector3d origin
 
Vector3d step
 
std::vector< Eigen::Map< B > > coordinates
 
std::map< Triplet, std::vector< int > > hashTable
 

Detailed Description

A class to fold a collection of points back into a given orthogonal box

Definition at line 160 of file SpatialHash.h.

Constructor & Destructor Documentation

BoxPoints::BoxPoints ( Vector3d  origin,
Vector3d  step,
MatrixXd coordinates 
)
inline

Definition at line 163 of file SpatialHash.h.

BoxPoints::BoxPoints ( Vector3d  origin,
Vector3d  step,
std::vector< Vector3d > &  coordinates 
)
inline

Definition at line 166 of file SpatialHash.h.

virtual BoxPoints::~BoxPoints ( )
inlinevirtual

Definition at line 170 of file SpatialHash.h.

Member Function Documentation

void BoxPoints::fold ( const Vector3i pbc)
inline

Folds the points into the box using spatial hashing

Parameters
[in]pbcA binary triplet to describe periodic boundary conditions

Definition at line 176 of file SpatialHash.h.


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