MsmBlockProxyMsg Class Reference

List of all members.

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.

00154 { maxlevels = 32 };


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().

00168                                            {
00169       a.resize(nlevels);
00170       memcpy(a.buffer(), msmBlockProxyData, nlevels*sizeof(CProxy_MsmBlock));
00171     }

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().

00159                                                  {
00160       nlevels = a.len();
00161       if (nlevels > maxlevels) {
00162         NAMD_die("Exceeded maximum number of MSM levels\n");
00163       }
00164       memcpy(msmBlockProxyData, a.buffer(), nlevels*sizeof(CProxy_MsmBlock));
00165     }


Member Data Documentation

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

Definition at line 155 of file ComputeMsm.C.

Referenced by get(), and put().

Definition at line 156 of file ComputeMsm.C.

Referenced by get(), and put().


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

Generated on 8 Dec 2019 for NAMD by  doxygen 1.6.1