Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

SimpleBroadcastObject< T > Class Template Reference

#include <BroadcastObject.h>

Inheritance diagram for SimpleBroadcastObject< T >:

BroadcastClient List of all members.

Public Member Functions

 SimpleBroadcastObject (int id)
 ~SimpleBroadcastObject ()
get (int tag)
void publish (int tag, const T &t)

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 20 of file BroadcastObject.h.


Constructor & Destructor Documentation

template<class T>
SimpleBroadcastObject< T >::SimpleBroadcastObject int  id  )  [inline]
 

Definition at line 24 of file BroadcastObject.h.

00024                                   : BroadcastClient(id) { 
00025       if ( sizeof(T) > BCASTMSGSIZE ) {
00026         NAMD_bug("SimpleBroadcastObject instantiated on class larger than BCASTMSGSIZE");
00027       }
00028     }

template<class T>
SimpleBroadcastObject< T >::~SimpleBroadcastObject  )  [inline]
 

Definition at line 29 of file BroadcastObject.h.

00029 { }


Member Function Documentation

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

Definition at line 31 of file BroadcastObject.h.

Referenced by Sequencer::algorithm(), Controller::algorithm(), Sequencer::berendsenPressure(), Sequencer::correctMomentum(), Sequencer::langevinPiston(), Sequencer::minimize(), Sequencer::rescaleVelocities(), and Sequencer::tcoupleVelocities().

00031                    {
00032       T tmp;
00033       while ( BroadcastMgr::Object()->getbuf(*this, tag, (void*)(&tmp)) < 0 ) {
00034         suspendFor(tag);
00035       }
00036       return tmp;
00037     }

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

Definition at line 39 of file BroadcastObject.h.

Referenced by Controller::berendsenPressure(), Controller::correctMomentum(), Controller::langevinPiston1(), Controller::minimize(), Controller::rescaleVelocities(), and Controller::tcoupleVelocities().

00039                                       {
00040       BroadcastMgr::Object()->send(*this, tag, (void*)(&t), sizeof(T));
00041     }


The documentation for this class was generated from the following file:
Generated on Fri Jul 25 04:07:23 2008 for NAMD by  doxygen 1.3.9.1