A wrapper class for an integer that is only allowed to take the values 0 and 1. More...
#include <per_thread_bool_indicator.h>
Public Member Functions | |
| BoolIndicatorUInt64 () | |
| BoolIndicatorUInt64 (const bool status) | |
| bool | is_true () const |
| bool | is_false () const |
Protected Member Functions | |
| void | set_true () |
| void | set_false () |
| void | logical_and (const bool status) |
Private Attributes | |
| std::uint_fast64_t | status_ |
Static Private Attributes | |
| static constexpr std::uint_fast64_t | true_uint64 = true |
| static constexpr std::uint_fast64_t | false_uint64 = false |
Friends | |
| class | PerThreadBoolIndicator |
A wrapper class for an integer that is only allowed to take the values 0 and 1.
Used by PerThreadBoolIndicator to create a thread-safe vector indicating per-thread status. See issue #1394.
| nest::BoolIndicatorUInt64::BoolIndicatorUInt64 | ( | ) |
References false_uint64, and status_.
| nest::BoolIndicatorUInt64::BoolIndicatorUInt64 | ( | const bool | status | ) |
References status_.
|
inline |
References false_uint64, and status_.
|
inline |
References status_, and true_uint64.
|
inlineprotected |
References status_.
|
inlineprotected |
References false_uint64, and status_.
|
inlineprotected |
References status_, and true_uint64.
|
friend |
References PerThreadBoolIndicator.
Referenced by PerThreadBoolIndicator.
|
staticconstexprprivate |
Referenced by BoolIndicatorUInt64(), is_false(), and set_false().
|
private |
Referenced by BoolIndicatorUInt64(), BoolIndicatorUInt64(), is_false(), is_true(), logical_and(), set_false(), and set_true().
|
staticconstexprprivate |
Referenced by is_true(), and set_true().