NAMD
Public Member Functions | Public Attributes | List of all members
ClusterCoorElem Struct Reference

#include <ParallelIOMgr.h>

Public Member Functions

 ClusterCoorElem ()
 
 ClusterCoorElem (int cid)
 
int hash () const
 
int operator== (const ClusterCoorElem &a) const
 

Public Attributes

int clusterId
 
Vector dsum
 

Detailed Description

Definition at line 129 of file ParallelIOMgr.h.

Constructor & Destructor Documentation

◆ ClusterCoorElem() [1/2]

ClusterCoorElem::ClusterCoorElem ( )
inline

Definition at line 133 of file ParallelIOMgr.h.

133 : clusterId(-1), dsum(0.0) {}

◆ ClusterCoorElem() [2/2]

ClusterCoorElem::ClusterCoorElem ( int  cid)
inline

Definition at line 134 of file ParallelIOMgr.h.

134 : clusterId(cid), dsum(0.0) {}

Member Function Documentation

◆ hash()

int ClusterCoorElem::hash ( void  ) const
inline

Definition at line 135 of file ParallelIOMgr.h.

References clusterId.

135  {
136  return clusterId;
137  }

◆ operator==()

int ClusterCoorElem::operator== ( const ClusterCoorElem a) const
inline

Definition at line 138 of file ParallelIOMgr.h.

References clusterId.

138  {
139  return clusterId == a.clusterId;
140  }

Member Data Documentation

◆ clusterId

int ClusterCoorElem::clusterId

◆ dsum

Vector ClusterCoorElem::dsum

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