Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

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


Constructor & Destructor Documentation

proxyTreeNode::proxyTreeNode  )  [inline]
 

Definition at line 196 of file NamdTypes.h.

00196                    {
00197         nodeID = -1;
00198         peIDs = NULL;
00199         numPes = 0;
00200     }

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

Definition at line 201 of file NamdTypes.h.

00201                                                  {
00202         nodeID = nid;
00203         numPes = numPes_;
00204         peIDs = new int[numPes];
00205         memcpy(peIDs, pes, sizeof(int)*numPes);
00206     }

proxyTreeNode::proxyTreeNode const proxyTreeNode n  )  [inline]
 

Definition at line 208 of file NamdTypes.h.

References nodeID, numPes, and peIDs.

00208                                                 {
00209         nodeID = n.nodeID;
00210         numPes = n.numPes;
00211         if(numPes==0) {
00212             peIDs = NULL;
00213         }else{
00214             peIDs = new int[n.numPes];
00215             memcpy(peIDs, n.peIDs, sizeof(int)*numPes);
00216         }
00217     }

proxyTreeNode::~proxyTreeNode  )  [inline]
 

Definition at line 230 of file NamdTypes.h.

00230                     {
00231         delete [] peIDs;
00232     }


Member Function Documentation

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

Definition at line 218 of file NamdTypes.h.

References nodeID, numPes, and peIDs.

00218                                                            {
00219         nodeID = n.nodeID;
00220         numPes = n.numPes;
00221         delete [] peIDs;
00222         if(numPes==0) {
00223             peIDs = NULL;
00224             return (*this);
00225         }
00226         peIDs = new int[n.numPes];
00227         memcpy(peIDs, n.peIDs, sizeof(int)*numPes);
00228         return (*this);
00229     }


Member Data Documentation

int proxyTreeNode::nodeID
 

Definition at line 192 of file NamdTypes.h.

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

int proxyTreeNode::numPes
 

Definition at line 194 of file NamdTypes.h.

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

int* proxyTreeNode::peIDs
 

Definition at line 193 of file NamdTypes.h.

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


The documentation for this struct was generated from the following file:
Generated on Sun Feb 12 04:08:04 2012 for NAMD by  doxygen 1.3.9.1