
#include <XArraySectionReducer.h>

Public Member Functions | |
| XArraySectionReducer (int _numSubSections, CkCallback *_finalCB) | |
| ~XArraySectionReducer () | |
| void | acceptSectionContribution (CkReductionMsg *msg) |
| Each subsection reduction message needs to be passed in here. | |
Private Member Functions | |
| void | finalReducer () |
| Triggered after all subsections have completed their reductions. | |
Private Attributes | |
| const int | numSubSections |
| const CkCallback * | finalCB |
| int | numReceived |
| CkReductionMsg ** | msgList |
Simply buffers a bunch of reduction messages as they arrive via subsection reductions and performs a final reduction on these to generate the final reduced message which is passed on to the client.
Definition at line 18 of file XArraySectionReducer.h.
| ck::impl::XArraySectionReducer::XArraySectionReducer | ( | int | _numSubSections, | |
| CkCallback * | _finalCB | |||
| ) | [inline] |
| ck::impl::XArraySectionReducer::~XArraySectionReducer | ( | ) | [inline] |
| void ck::impl::XArraySectionReducer::acceptSectionContribution | ( | CkReductionMsg * | msg | ) | [inline] |
Each subsection reduction message needs to be passed in here.
Definition at line 38 of file XArraySectionReducer.h.
References finalReducer(), msgList, numReceived, and numSubSections.
| void ck::impl::XArraySectionReducer::finalReducer | ( | ) | [inline, private] |
Triggered after all subsections have completed their reductions.
Definition at line 47 of file XArraySectionReducer.h.
References finalCB, msgList, numReceived, numSubSections, CkReduction::reducerTable, and CkCallback::send().
Referenced by acceptSectionContribution().
const int ck::impl::XArraySectionReducer::numSubSections [private] |
Definition at line 64 of file XArraySectionReducer.h.
Referenced by acceptSectionContribution(), finalReducer(), and XArraySectionReducer().
const CkCallback* ck::impl::XArraySectionReducer::finalCB [private] |
Definition at line 66 of file XArraySectionReducer.h.
Referenced by finalReducer(), and ~XArraySectionReducer().
Definition at line 68 of file XArraySectionReducer.h.
Referenced by acceptSectionContribution(), and finalReducer().
CkReductionMsg** ck::impl::XArraySectionReducer::msgList [private] |
Definition at line 70 of file XArraySectionReducer.h.
Referenced by acceptSectionContribution(), finalReducer(), XArraySectionReducer(), and ~XArraySectionReducer().
1.5.5