NAMD
Public Types | Public Member Functions | Public Attributes | List of all members
MsmBlockProxyMsg Class Reference
Inheritance diagram for MsmBlockProxyMsg:

Public Types

enum  { maxlevels = 32 }
 

Public Member Functions

void put (const msm::Array< CProxy_MsmBlock > &a)
 
void get (msm::Array< CProxy_MsmBlock > &a)
 

Public Attributes

char msmBlockProxyData [maxlevels *sizeof(CProxy_MsmBlock)]
 
int nlevels
 

Detailed Description

Definition at line 152 of file ComputeMsm.C.

Member Enumeration Documentation

anonymous enum
Enumerator
maxlevels 

Definition at line 154 of file ComputeMsm.C.

Member Function Documentation

void MsmBlockProxyMsg::get ( msm::Array< CProxy_MsmBlock > &  a)
inline

Definition at line 168 of file ComputeMsm.C.

References msmBlockProxyData, and nlevels.

Referenced by ComputeMsmMgr::recvMsmBlockProxy().

168  {
169  a.resize(nlevels);
170  memcpy(a.buffer(), msmBlockProxyData, nlevels*sizeof(CProxy_MsmBlock));
171  }
void resize(int n)
Definition: MsmMap.h:254
char msmBlockProxyData[maxlevels *sizeof(CProxy_MsmBlock)]
Definition: ComputeMsm.C:155
const T * buffer() const
Definition: MsmMap.h:259
void MsmBlockProxyMsg::put ( const msm::Array< CProxy_MsmBlock > &  a)
inline

Definition at line 159 of file ComputeMsm.C.

References msm::Array< T >::buffer(), msm::Array< T >::len(), maxlevels, msmBlockProxyData, NAMD_die(), and nlevels.

Referenced by ComputeMsmMgr::initialize_create().

159  {
160  nlevels = a.len();
161  if (nlevels > maxlevels) {
162  NAMD_die("Exceeded maximum number of MSM levels\n");
163  }
164  memcpy(msmBlockProxyData, a.buffer(), nlevels*sizeof(CProxy_MsmBlock));
165  }
int len() const
Definition: MsmMap.h:218
char msmBlockProxyData[maxlevels *sizeof(CProxy_MsmBlock)]
Definition: ComputeMsm.C:155
void NAMD_die(const char *err_msg)
Definition: common.C:83
const T * buffer() const
Definition: MsmMap.h:259

Member Data Documentation

char MsmBlockProxyMsg::msmBlockProxyData[maxlevels *sizeof(CProxy_MsmBlock)]

Definition at line 155 of file ComputeMsm.C.

Referenced by get(), and put().

int MsmBlockProxyMsg::nlevels

Definition at line 156 of file ComputeMsm.C.

Referenced by get(), and put().


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