proxyTreeNode Struct Reference

#include <NamdTypes.h>

List of all members.

Public Member Functions

 proxyTreeNode ()
 proxyTreeNode (int nid, int numPes_, int *pes)
 proxyTreeNode (const proxyTreeNode &n)
proxyTreeNodeoperator= (const proxyTreeNode &n)
 ~proxyTreeNode ()

Public Attributes

int nodeID
int * peIDs
int numPes


Detailed Description

Definition at line 214 of file NamdTypes.h.


Constructor & Destructor Documentation

proxyTreeNode::proxyTreeNode (  )  [inline]

Definition at line 219 of file NamdTypes.h.

References nodeID, numPes, and peIDs.

00219                    {
00220         nodeID = -1;
00221         peIDs = NULL;
00222         numPes = 0;
00223     }

proxyTreeNode::proxyTreeNode ( int  nid,
int  numPes_,
int *  pes 
) [inline]

Definition at line 224 of file NamdTypes.h.

References nodeID, numPes, and peIDs.

00224                                                  {
00225         nodeID = nid;
00226         numPes = numPes_;
00227         peIDs = new int[numPes];
00228         memcpy(peIDs, pes, sizeof(int)*numPes);
00229     }

proxyTreeNode::proxyTreeNode ( const proxyTreeNode n  )  [inline]

Definition at line 231 of file NamdTypes.h.

References nodeID, numPes, and peIDs.

00231                                                 {
00232         nodeID = n.nodeID;
00233         numPes = n.numPes;
00234         if(numPes==0) {
00235             peIDs = NULL;
00236         }else{
00237             peIDs = new int[n.numPes];
00238             memcpy(peIDs, n.peIDs, sizeof(int)*numPes);
00239         }
00240     }

proxyTreeNode::~proxyTreeNode (  )  [inline]

Definition at line 253 of file NamdTypes.h.

References peIDs.

00253                     {
00254         delete [] peIDs;
00255     }


Member Function Documentation

proxyTreeNode& proxyTreeNode::operator= ( const proxyTreeNode n  )  [inline]

Definition at line 241 of file NamdTypes.h.

References nodeID, numPes, and peIDs.

00241                                                            {
00242         nodeID = n.nodeID;
00243         numPes = n.numPes;
00244         delete [] peIDs;
00245         if(numPes==0) {
00246             peIDs = NULL;
00247             return (*this);
00248         }
00249         peIDs = new int[n.numPes];
00250         memcpy(peIDs, n.peIDs, sizeof(int)*numPes);
00251         return (*this);
00252     }


Member Data Documentation

int proxyTreeNode::nodeID

Definition at line 215 of file NamdTypes.h.

Referenced by operator=(), and proxyTreeNode().

int proxyTreeNode::numPes

Definition at line 217 of file NamdTypes.h.

Referenced by ProxyNodeAwareSpanningTreeMsg::getANewMsg(), operator=(), proxyTreeNode(), NodeProxyMgr::recvImmediateProxyAll(), and NodeProxyMgr::recvImmediateProxyData().

int* proxyTreeNode::peIDs

Definition at line 216 of file NamdTypes.h.

Referenced by ProxyNodeAwareSpanningTreeMsg::getANewMsg(), operator=(), proxyTreeNode(), NodeProxyMgr::recvImmediateProxyAll(), NodeProxyMgr::recvImmediateProxyData(), and ~proxyTreeNode().


The documentation for this struct was generated from the following file:
Generated on Sat Sep 23 01:17:21 2017 for NAMD by  doxygen 1.4.7