MOOSE - Multiscale Object Oriented Simulation Environment
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
testScheduling.h
Go to the documentation of this file.
1 /**********************************************************************
2 ** This program is part of 'MOOSE', the
3 ** Messaging Object Oriented Simulation Environment.
4 ** Copyright (C) 2003-2009 Upinder S. Bhalla. and NCBS
5 ** It is made available under the terms of the
6 ** GNU Lesser General Public License version 2.1
7 ** See the file COPYING.LIB for the full notice.
8 **********************************************************************/
9 
10 class TestSched
11 {
12  public:
17  : index_( 0 )
18  {
19  if ( isInitPending_ ) {
20  globalIndex_ = 0;
21  isInitPending_ = 0;
22  }
23  }
25  {
26  isInitPending_ = 1;
27  }
28 
29  void process( const Eref& e, ProcPtr p );
30 
31  void zeroIndex() {
32  index_ = 0 ;
33  }
34 
35  static const Cinfo* initCinfo();
36  private:
37  int index_;
38  static int globalIndex_;
39  static bool isInitPending_;
40 };
41 
void process(const Eref &e, ProcPtr p)
Definition: Eref.h:26
static bool isInitPending_
void zeroIndex()
static const Cinfo * initCinfo()
static int globalIndex_
Definition: Cinfo.h:18