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

#include <ParallelIOMgr.h>

Public Member Functions

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

Public Attributes

int clusterId
 
int atomsCnt
 

Detailed Description

Definition at line 104 of file ParallelIOMgr.h.

Constructor & Destructor Documentation

◆ ClusterElem() [1/2]

ClusterElem::ClusterElem ( )
inline

Definition at line 108 of file ParallelIOMgr.h.

108 : clusterId(-1), atomsCnt(0) {}

◆ ClusterElem() [2/2]

ClusterElem::ClusterElem ( int  cid)
inline

Definition at line 109 of file ParallelIOMgr.h.

109 : clusterId(cid), atomsCnt(0) {}

Member Function Documentation

◆ hash()

int ClusterElem::hash ( void  ) const
inline

Definition at line 110 of file ParallelIOMgr.h.

References clusterId.

110  {
111  return clusterId;
112  }

◆ operator==()

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

Definition at line 113 of file ParallelIOMgr.h.

References clusterId.

113  {
114  return clusterId == a.clusterId;
115  }

Member Data Documentation

◆ atomsCnt

int ClusterElem::atomsCnt

Definition at line 106 of file ParallelIOMgr.h.

Referenced by ParallelIOMgr::recvFinalClusterSize().

◆ clusterId

int ClusterElem::clusterId

Definition at line 105 of file ParallelIOMgr.h.

Referenced by hash(), operator==(), and ParallelIOMgr::recvFinalClusterSize().


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