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

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:123
#define BCASTMSGSIZE
Definition: BroadcastMgr.h:23
BroadcastClient(int id)
template<class T>
SimpleBroadcastObject< T >::~SimpleBroadcastObject ( )
inline

Definition at line 32 of file BroadcastObject.h.

32 { }

Member Function Documentation

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

Member Data Documentation

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: