NAMD
Public Member Functions | Public Attributes | List of all members
SimpleBroadcastObject< T > Class Template Reference

#include <BroadcastObject.h>

Inheritance diagram for SimpleBroadcastObject< T >:
BroadcastClient

Public Member Functions

 SimpleBroadcastObject (int id, const LDObjHandle *h=0)
 
 ~SimpleBroadcastObject ()
 
get (int tag)
 
int getSize ()
 
int getBcastSize ()
 
int getTaggedSize ()
 
void publish (int tag, const T &t)
 
- Public Member Functions inherited from BroadcastClient
 BroadcastClient (int id)
 
 ~BroadcastClient ()
 
void awaken (int id, int tag)
 

Public Attributes

const LDObjHandle * ldObjPtr
 
- Public Attributes inherited from BroadcastClient
int id
 

Additional Inherited Members

- Protected Member Functions inherited from BroadcastClient
void suspendFor (int tag)
 
- Protected Attributes inherited from BroadcastClient
int suspended
 
int waitForTag
 
CthThread thread
 

Detailed Description

template<class T>
class SimpleBroadcastObject< T >

Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by The Board of Trustees of the University of Illinois. All rights reserved.

Definition at line 21 of file BroadcastObject.h.

Constructor & Destructor Documentation

◆ SimpleBroadcastObject()

template<class T>
SimpleBroadcastObject< T >::SimpleBroadcastObject ( int  id,
const LDObjHandle *  h = 0 
)
inline

Definition at line 27 of file BroadcastObject.h.

27  : BroadcastClient(id), ldObjPtr(h) {
28  if ( sizeof(T) > BCASTMSGSIZE ) {
29  NAMD_bug("SimpleBroadcastObject instantiated on class larger than BCASTMSGSIZE");
30  }
31  }
const LDObjHandle * ldObjPtr
void NAMD_bug(const char *err_msg)
Definition: common.C:195
#define BCASTMSGSIZE
Definition: BroadcastMgr.h:22
BroadcastClient(int id)

◆ ~SimpleBroadcastObject()

template<class T>
SimpleBroadcastObject< T >::~SimpleBroadcastObject ( )
inline

Definition at line 32 of file BroadcastObject.h.

32 { }

Member Function Documentation

◆ get()

template<class T>
T SimpleBroadcastObject< T >::get ( int  tag)
inline

◆ getBcastSize()

template<class T>
int SimpleBroadcastObject< T >::getBcastSize ( )
inline

Definition at line 46 of file BroadcastObject.h.

46  {
48  }
int boidBroadcastSize()
Definition: BroadcastMgr.C:28
static BroadcastMgr * Object()
Definition: BroadcastMgr.h:95

◆ getSize()

template<class T>
int SimpleBroadcastObject< T >::getSize ( )
inline

Definition at line 43 of file BroadcastObject.h.

43  {
44  return BroadcastMgr::Object()->boidSize();
45  }
static BroadcastMgr * Object()
Definition: BroadcastMgr.h:95

◆ getTaggedSize()

template<class T>
int SimpleBroadcastObject< T >::getTaggedSize ( )
inline

Definition at line 49 of file BroadcastObject.h.

49  {
51  }
int boidTaggedMsgSize()
Definition: BroadcastMgr.C:38
static BroadcastMgr * Object()
Definition: BroadcastMgr.h:95

◆ publish()

template<class T>
void SimpleBroadcastObject< T >::publish ( int  tag,
const T &  t 
)
inline

Member Data Documentation

◆ ldObjPtr

template<class T>
const LDObjHandle* SimpleBroadcastObject< T >::ldObjPtr

Definition at line 25 of file BroadcastObject.h.

Referenced by SimpleBroadcastObject< Tensor >::get().


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