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

Public Types

enum  { maxlevels = 32 }
 

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 175 of file ComputeMsm.C.

Member Enumeration Documentation

anonymous enum
Enumerator
maxlevels 

Definition at line 177 of file ComputeMsm.C.

Member Function Documentation

void MsmC1HermiteBlockProxyMsg::get ( msm::Array< CProxy_MsmC1HermiteBlock > &  a)
inline

Definition at line 192 of file ComputeMsm.C.

References msmBlockProxyData, and nlevels.

Referenced by ComputeMsmMgr::recvMsmC1HermiteBlockProxy().

192  {
193  a.resize(nlevels);
194  memcpy(a.buffer(), msmBlockProxyData,
195  nlevels*sizeof(CProxy_MsmC1HermiteBlock));
196  }
void resize(int n)
Definition: MsmMap.h:254
char msmBlockProxyData[maxlevels *sizeof(CProxy_MsmC1HermiteBlock)]
Definition: ComputeMsm.C:178
const T * buffer() const
Definition: MsmMap.h:259
void MsmC1HermiteBlockProxyMsg::put ( const msm::Array< CProxy_MsmC1HermiteBlock > &  a)
inline

Definition at line 182 of file ComputeMsm.C.

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

Referenced by ComputeMsmMgr::initialize_create().

182  {
183  nlevels = a.len();
184  if (nlevels > maxlevels) {
185  NAMD_die("Exceeded maximum number of MSM levels\n");
186  }
187  memcpy(msmBlockProxyData, a.buffer(),
188  nlevels*sizeof(CProxy_MsmC1HermiteBlock));
189  }
int len() const
Definition: MsmMap.h:218
char msmBlockProxyData[maxlevels *sizeof(CProxy_MsmC1HermiteBlock)]
Definition: ComputeMsm.C:178
void NAMD_die(const char *err_msg)
Definition: common.C:83
const T * buffer() const
Definition: MsmMap.h:259

Member Data Documentation

char MsmC1HermiteBlockProxyMsg::msmBlockProxyData[maxlevels *sizeof(CProxy_MsmC1HermiteBlock)]

Definition at line 178 of file ComputeMsm.C.

Referenced by get(), and put().

int MsmC1HermiteBlockProxyMsg::nlevels

Definition at line 179 of file ComputeMsm.C.

Referenced by get(), and put().


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