SST/macro
process_context.h
Go to the documentation of this file.
1 /*
2  * This file is part of SST/macroscale:
3  * The macroscale architecture simulator from the SST suite.
4  * Copyright (c) 2009 Sandia Corporation.
5  * This software is distributed under the BSD License.
6  * Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
7  * the U.S. Government retains certain rights in this software.
8  * For more information, see the LICENSE file in the top
9  * SST/macroscale directory.
10  */
11 
12 #ifndef SSTMAC_SOFTWARE_PROCESS_PROCESS_CONTEXT_H_INCLUDED
13 #define SSTMAC_SOFTWARE_PROCESS_PROCESS_CONTEXT_H_INCLUDED
14 
15 #include <string>
16 
17 namespace sstmac {
18 namespace sw {
19 
21  long ctxt;
22 
23  process_context(long id) : ctxt(id) {}
24 
25  void operator=(long id){
26  ctxt = id;
27  }
28 
29  operator long() const {
30  return ctxt;
31  }
32 
33  bool
34  operator==(long id) const {
35  return ctxt == id;
36  }
37 
38  static const long none = -1;
39 };
40 
41 }
42 }
43 
44 #endif
45 
bool operator==(long id) const
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...