Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ChannelSet Class Reference

ChannelSet class for a collection of channels. More...

#include <channel.h>

Public Member Functions

 ChannelSet (int nchannel=8)
 constructor. default number of channels is 8 for upward and downward in 4 dimensions. More...
 
int append (Channel *const p)
 append channel to the set. there is no way to remove a channel. More...
 
int start ()
 collective start More...
 
int wait ()
 collective wait More...
 
 ChannelSet (int nchannel=8)
 constructor. default number of channels is 8 for upward and downward in 4 dimensions. More...
 
int append (Channel *const p)
 append channel to the set. there is no way to remove a channel. More...
 
int start ()
 collective start More...
 
int wait ()
 collective wait More...
 

Private Attributes

std::vector< MPI_Request > m_array
 a collection of MPI request held in channels. More...
 
std::vector< MPI_Status > m_status
 a collection of MPI status. More...
 
unsigned int m_nreq
 number of channels to hold. More...
 

Detailed Description

ChannelSet class for a collection of channels.

ChannelSet defines a collection of channel class instances to invoke start and wait methods collectively for a set of channels.

Definition at line 83 of file channel.h.

Constructor & Destructor Documentation

ChannelSet::ChannelSet ( int  nchannel = 8)

constructor. default number of channels is 8 for upward and downward in 4 dimensions.

Definition at line 131 of file channel.cpp.

ChannelSet::ChannelSet ( int  nchannel = 8)

constructor. default number of channels is 8 for upward and downward in 4 dimensions.

Member Function Documentation

int ChannelSet::append ( Channel *const  p)

append channel to the set. there is no way to remove a channel.

int ChannelSet::append ( Channel *const  p)

append channel to the set. there is no way to remove a channel.

Definition at line 139 of file channel.cpp.

int ChannelSet::start ( )

collective start

int ChannelSet::start ( )

collective start

Definition at line 153 of file channel.cpp.

int ChannelSet::wait ( )

collective wait

int ChannelSet::wait ( )

collective wait

Definition at line 161 of file channel.cpp.

Member Data Documentation

std::vector<MPI_Request> ChannelSet::m_array
private

a collection of MPI request held in channels.

Definition at line 93 of file channel.h.

unsigned int ChannelSet::m_nreq
private

number of channels to hold.

Definition at line 95 of file channel.h.

std::vector<MPI_Status> ChannelSet::m_status
private

a collection of MPI status.

Definition at line 94 of file channel.h.


The documentation for this class was generated from the following files: