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

Box< Owner, Data > Class Template Reference

#include <Box.h>

List of all members.

Public Member Functions

Data * open (void)
void close (Data **const t)

Friends

class OwnerBox<Owner,Data>


Detailed Description

template<class Owner, class Data>
class Box< Owner, Data >

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

Definition at line 12 of file Box.h.


Member Function Documentation

template<class Owner, class Data>
void Box< Owner, Data >::close Data **const   t  )  [inline]
 

Definition at line 34 of file Box.h.

Referenced by ComputePatchPair::doWork(), ComputePatch::doWork(), ComputeHomePatch::doWork(), ComputeNonbondedPair::noWork(), OwnerBox< Patch, CompAtom >::open(), and HomePatch::receiveResults().

00034                                 {
00035       if (state != CLOSED) {
00036         state = CLOSED;
00037         *t = NULL;
00038 
00039         // Trigger callback!
00040         if ( ! --ownerBox->closeCount ) {
00041           ownerBox->close();
00042         }
00043       }
00044     }

template<class Owner, class Data>
Data* Box< Owner, Data >::open void   )  [inline]
 

Definition at line 27 of file Box.h.

Referenced by ComputePatchPair::doWork(), ComputePatch::doWork(), ComputeHomePatch::doWork(), ComputeNonbondedPair::noWork(), and HomePatch::receiveResults().

00027                      {
00028       if (state != OPEN) {
00029         state = OPEN; 
00030         ownerBox->openCount--;
00031       }
00032       return ownerBox->data; 
00033     }


Friends And Related Function Documentation

template<class Owner, class Data>
friend class OwnerBox<Owner,Data> [friend]
 

Definition at line 14 of file Box.h.


The documentation for this class was generated from the following file:
Generated on Thu Jul 3 04:08:14 2008 for NAMD by  doxygen 1.3.9.1