OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
FieldLayoutUser.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /***************************************************************************
3  *
4  * The IPPL Framework
5  *
6  *
7  * Visit http://people.web.psi.ch/adelmann/ for more details
8  *
9  ***************************************************************************/
10 
11 #ifndef FIELD_LAYOUT_USER_H
12 #define FIELD_LAYOUT_USER_H
13 
14 /***********************************************************************
15  *
16  * FieldLayoutUser is a base class for all classes which need to use
17  * a FieldLayout - it is derived from User, which provides a virtual
18  * function 'notifyUserOfDelete' which is called when the FieldLayout
19  * is deleted, and the virtual function 'Repartition' which is called
20  * when a Field needs to be redistributed between processors.
21  *
22  ***********************************************************************/
23 
24 // include files
25 #include "Utility/User.h"
26 #include "Utility/UserList.h"
27 
28 
29 // class definition
30 class FieldLayoutUser : public User {
31 
32 public:
33  // constructor - the base class selects a unique ID value
35 
36  // destructor, nothing to do here
37  virtual ~FieldLayoutUser();
38 
39  //
40  // virtual functions for FieldLayoutUser's
41  //
42 
43  // Repartition onto a new layout
44  virtual void Repartition(UserList *) = 0;
45 };
46 
47 #endif // FIELD_LAYOUT_USER_H
48 
49 /***************************************************************************
50  * $RCSfile: FieldLayoutUser.h,v $ $Author: adelmann $
51  * $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:27 $
52  * IPPL_VERSION_ID: $Id: FieldLayoutUser.h,v 1.1.1.1 2003/01/23 07:40:27 adelmann Exp $
53  ***************************************************************************/
virtual void Repartition(UserList *)=0
Definition: User.h:31
virtual ~FieldLayoutUser()