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 221 of file NamdTypes.h.


Constructor & Destructor Documentation

proxyTreeNode::proxyTreeNode (  )  [inline]

Definition at line 226 of file NamdTypes.h.

References nodeID, numPes, and peIDs.

00226                    {
00227         nodeID = -1;
00228         peIDs = NULL;
00229         numPes = 0;
00230     }

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

Definition at line 231 of file NamdTypes.h.

References nodeID, numPes, and peIDs.

00231                                                  {
00232         nodeID = nid;
00233         numPes = numPes_;
00234         peIDs = new int[numPes];
00235         memcpy(peIDs, pes, sizeof(int)*numPes);
00236     }

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

Definition at line 238 of file NamdTypes.h.

References nodeID, numPes, and peIDs.

00238                                                 {
00239         nodeID = n.nodeID;
00240         numPes = n.numPes;
00241         if(numPes==0) {
00242             peIDs = NULL;
00243         }else{
00244             peIDs = new int[n.numPes];
00245             memcpy(peIDs, n.peIDs, sizeof(int)*numPes);
00246         }
00247     }

proxyTreeNode::~proxyTreeNode (  )  [inline]

Definition at line 260 of file NamdTypes.h.

References peIDs.

00260                     {
00261         delete [] peIDs;
00262     }


Member Function Documentation

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

Definition at line 248 of file NamdTypes.h.

References nodeID, numPes, and peIDs.

00248                                                            {
00249         nodeID = n.nodeID;
00250         numPes = n.numPes;
00251         delete [] peIDs;
00252         if(numPes==0) {
00253             peIDs = NULL;
00254             return (*this);
00255         }
00256         peIDs = new int[n.numPes];
00257         memcpy(peIDs, n.peIDs, sizeof(int)*numPes);
00258         return (*this);
00259     }


Member Data Documentation

int proxyTreeNode::nodeID

Definition at line 222 of file NamdTypes.h.

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

int proxyTreeNode::numPes

Definition at line 224 of file NamdTypes.h.

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

int* proxyTreeNode::peIDs

Definition at line 223 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 Mon Nov 20 01:17:20 2017 for NAMD by  doxygen 1.4.7