Galois
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UserContextAccess.h
Go to the documentation of this file.
1 /*
2  * This file belongs to the Galois project, a C++ library for exploiting
3  * parallelism. The code is being released under the terms of the 3-Clause BSD
4  * License (a copy is located in LICENSE.txt at the top-level directory).
5  *
6  * Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
7  * UNIVERSITY EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES CONCERNING THIS
8  * SOFTWARE AND DOCUMENTATION, INCLUDING ANY WARRANTIES OF MERCHANTABILITY,
9  * FITNESS FOR ANY PARTICULAR PURPOSE, NON-INFRINGEMENT AND WARRANTIES OF
10  * PERFORMANCE, AND ANY WARRANTY THAT MIGHT OTHERWISE ARISE FROM COURSE OF
11  * DEALING OR USAGE OF TRADE. NO WARRANTY IS EITHER EXPRESS OR IMPLIED WITH
12  * RESPECT TO THE USE OF THE SOFTWARE OR DOCUMENTATION. Under no circumstances
13  * shall University be liable for incidental, special, indirect, direct or
14  * consequential damages or loss of profits, interruption of business, or
15  * related expenses which may arise from use of Software or Documentation,
16  * including but not limited to those resulting from defects in Software and/or
17  * Documentation, or loss or inaccuracy of data of any kind.
18  */
19 
20 #ifndef GALOIS_RUNTIME_USERCONTEXTACCESS_H
21 #define GALOIS_RUNTIME_USERCONTEXTACCESS_H
22 
23 #include "galois/config.h"
24 #include "galois/UserContext.h"
25 
26 namespace galois {
27 namespace runtime {
28 
30 template <typename T>
32 public:
36 
40  SuperTy& data() { return *static_cast<SuperTy*>(this); }
43  void setBreakFlag(bool* b) {
45  } // NOLINT(readability-non-const-parameter)
46 
49 };
50 
51 } // namespace runtime
52 } // end namespace galois
53 
54 #endif
galois::UserContext< T > SuperTy
Definition: UserContextAccess.h:33
PushBufferTy & getPushBuffer()
Definition: UserContextAccess.h:38
void setLocalState(void *p)
Definition: UserContextAccess.h:41
void __setLocalState(void *p)
Definition: UserContext.h:67
void __resetFirstPass(void)
Definition: UserContext.h:61
SuperTy::PushBufferTy PushBufferTy
Definition: UserContextAccess.h:34
void __resetAlloc()
Definition: UserContext.h:57
void __setFirstPass(void)
Definition: UserContext.h:59
void resetPushBuffer()
Definition: UserContextAccess.h:39
SuperTy & data()
Definition: UserContextAccess.h:40
bool * didBreak
used by all
Definition: UserContext.h:50
void setBreakFlag(bool *b)
Definition: UserContextAccess.h:43
void resetFirstPass(void)
Definition: UserContextAccess.h:48
This is the object passed to the user&#39;s parallel loop.
Definition: UserContext.h:37
PushBufferTy & __getPushBuffer()
Definition: UserContext.h:63
std::function< void(PushBufferTy &)> FastPushBack
Definition: UserContext.h:42
Backdoor to allow runtime methods to access private data in UserContext.
Definition: UserContextAccess.h:31
SuperTy::FastPushBack FastPushBack
Definition: UserContextAccess.h:35
void __setFastPushBack(FastPushBack f)
Definition: UserContext.h:69
void setFirstPass(void)
Definition: UserContextAccess.h:47
void resetAlloc()
Definition: UserContextAccess.h:37
void __resetPushBuffer()
Definition: UserContext.h:65
void setFastPushBack(FastPushBack f)
Definition: UserContextAccess.h:42