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 102 of file ParallelIOMgr.h.

Constructor & Destructor Documentation

ClusterElem::ClusterElem ( )
inline

Definition at line 106 of file ParallelIOMgr.h.

106 : clusterId(-1), atomsCnt(0) {}
ClusterElem::ClusterElem ( int  cid)
inline

Definition at line 107 of file ParallelIOMgr.h.

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

Member Function Documentation

int ClusterElem::hash ( void  ) const
inline

Definition at line 108 of file ParallelIOMgr.h.

References clusterId.

108  {
109  return clusterId;
110  }
int ClusterElem::operator== ( const ClusterElem a) const
inline

Definition at line 111 of file ParallelIOMgr.h.

References clusterId.

111  {
112  return clusterId == a.clusterId;
113  }

Member Data Documentation

int ClusterElem::atomsCnt

Definition at line 104 of file ParallelIOMgr.h.

Referenced by ParallelIOMgr::recvFinalClusterSize().

int ClusterElem::clusterId

Definition at line 103 of file ParallelIOMgr.h.

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


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