DataExchanger Class Reference

#include <DataExchanger.h>

List of all members.

Public Types

 TREE_WIDTH = 2
enum  { TREE_WIDTH = 2 }

Public Member Functions

 DataExchanger ()
 ~DataExchanger (void)

Public Attributes

 DataExchanger_SDAG_CODE
int loop
int recvred
int sendbcast
int numChildren
int firstChild
int parent
int recv_data_idx
int recv_ack_idx
int recv_bcast_idx
int recv_red_idx
int recv_eval_command_idx
int recv_eval_result_idx


Detailed Description

Definition at line 58 of file DataExchanger.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
TREE_WIDTH 

Definition at line 66 of file DataExchanger.h.

00066 { TREE_WIDTH=2};


Constructor & Destructor Documentation

DataExchanger::DataExchanger (  ) 

Definition at line 284 of file DataExchanger.C.

References firstChild, numChildren, parent, recv_ack_idx, recv_bcast_idx, recv_data_idx, recv_eval_command_idx, recv_eval_result_idx, recv_red_idx, and TREE_WIDTH.

00285 {
00286   CpvInitialize(int, breakScheduler);
00287   CpvAccess(breakScheduler) = 1;
00288   CpvInitialize(int, inEval);
00289   CpvAccess(inEval) = 0;
00290   if(CmiMyPartition() == 0) 
00291     parent = -1;
00292   else 
00293     parent = (CmiMyPartition()+1)/TREE_WIDTH - 1;
00294   firstChild = (CmiMyPartition()+1)*TREE_WIDTH - 1;
00295   numChildren = CmiNumPartitions() - firstChild;
00296   if(numChildren > TREE_WIDTH)
00297     numChildren = TREE_WIDTH;
00298   
00299   recv_data_idx = CkpvAccess(recv_data_idx);
00300   recv_ack_idx = CkpvAccess(recv_ack_idx);
00301   recv_red_idx = CkpvAccess(recv_red_idx);
00302   recv_bcast_idx = CkpvAccess(recv_bcast_idx);
00303   recv_eval_command_idx = CkpvAccess(recv_eval_command_idx);
00304   recv_eval_result_idx = CkpvAccess(recv_eval_result_idx);
00305 }

DataExchanger::~DataExchanger ( void   ) 

Definition at line 308 of file DataExchanger.C.

00309 { }


Member Data Documentation

DataExchanger::DataExchanger_SDAG_CODE

Definition at line 61 of file DataExchanger.h.

int DataExchanger::firstChild

Definition at line 67 of file DataExchanger.h.

Referenced by DataExchanger().

int DataExchanger::loop

Definition at line 65 of file DataExchanger.h.

int DataExchanger::numChildren

Definition at line 67 of file DataExchanger.h.

Referenced by DataExchanger().

int DataExchanger::parent

Definition at line 67 of file DataExchanger.h.

Referenced by DataExchanger().

int DataExchanger::recv_ack_idx

Definition at line 71 of file DataExchanger.h.

Referenced by DataExchanger().

int DataExchanger::recv_bcast_idx

Definition at line 72 of file DataExchanger.h.

Referenced by DataExchanger().

int DataExchanger::recv_data_idx

Definition at line 70 of file DataExchanger.h.

Referenced by DataExchanger().

int DataExchanger::recv_eval_command_idx

Definition at line 74 of file DataExchanger.h.

Referenced by DataExchanger().

int DataExchanger::recv_eval_result_idx

Definition at line 75 of file DataExchanger.h.

Referenced by DataExchanger().

int DataExchanger::recv_red_idx

Definition at line 73 of file DataExchanger.h.

Referenced by DataExchanger().

int DataExchanger::recvred

Definition at line 65 of file DataExchanger.h.

int DataExchanger::sendbcast

Definition at line 65 of file DataExchanger.h.


The documentation for this class was generated from the following files:
Generated on Sun Sep 24 01:17:18 2017 for NAMD by  doxygen 1.4.7