SST/macro
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
sstmac
software
process
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
20
struct
process_context
{
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
sstmac::sw::process_context::none
static const long none
Definition:
process_context.h:38
sstmac::sw::process_context
Definition:
process_context.h:20
sstmac::sw::process_context::operator==
bool operator==(long id) const
Definition:
process_context.h:34
sstmac
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...
Definition:
parallel_runtime.h:18
sstmac::sw::process_context::process_context
process_context(long id)
Definition:
process_context.h:23
sstmac::sw::process_context::operator=
void operator=(long id)
Definition:
process_context.h:25
sstmac::sw::process_context::ctxt
long ctxt
Definition:
process_context.h:21
Generated by
1.8.11