MDStressLab++
Triplet Class Reference

#include <SpatialHash.h>

Inheritance diagram for Triplet:
Collaboration diagram for Triplet:

Public Member Functions

 Triplet ()=default
 
 Triplet (int i, int j, int k)
 
 Triplet (const Vector3i &base)
 
bool operator< (const Triplet &rhs) const
 
std::vector< TripletneighborList ()
 
virtual ~Triplet ()
 

Detailed Description

A Triplet object is a triplet of integers provided with a \(<\) relation and a member function to enumerates its neighbors. The \(<\) relation allows us to use Triplets as keys to an std::map, which is used to spatially hash a configuration of particles (see the SpatialHash class)

Definition at line 24 of file SpatialHash.h.

Constructor & Destructor Documentation

Triplet::Triplet ( )
default
Triplet::Triplet ( int  i,
int  j,
int  k 
)
inline

Definition at line 28 of file SpatialHash.h.

Triplet::Triplet ( const Vector3i base)
inline

Definition at line 29 of file SpatialHash.h.

virtual Triplet::~Triplet ( )
inlinevirtual

Definition at line 55 of file SpatialHash.h.

Member Function Documentation

std::vector<Triplet> Triplet::neighborList ( )
inline

Definition at line 42 of file SpatialHash.h.

bool Triplet::operator< ( const Triplet rhs) const
inline

Definition at line 32 of file SpatialHash.h.


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