fix8
version 1.4.0
Open Source C++ FIX Framework
|
Atomic bitset for enums. More...
#include <f8utils.hpp>
Public Member Functions | |
ebitset_r () | |
Ctor. More... | |
ebitset_r (const ebitset_r< T, B > &from) | |
ebitset_r (const integral_type a) | |
ebitset_r (const T sbit) | |
ebitset_r< T, B > & | operator= (const ebitset_r< T, B > &that) |
integral_type | has (const T sbit) const |
integral_type | operator& (const T sbit) const |
void | set (const T sbit, bool on=true) |
bool | set (const std::vector< std::string > &sset, const std::string &what, bool ignorecase=false, bool on=true) |
void | set (const integral_type bset) |
void | clear (const T sbit) |
void | clearall () |
Clear all bits. More... | |
void | setall (const T sbit) |
integral_type | get () const |
void | operator|= (const T sbit) |
void | operator&= (const T sbit) |
ebitset_r & | operator<< (const T sbit) |
Private Types | |
using | integral_type = B |
Private Attributes | |
f8_atomic< integral_type > | a_ |
Atomic bitset for enums.
T | the enum type |
B | the integral type of the enumeration |
Definition at line 941 of file f8utils.hpp.
|
private |
Definition at line 943 of file f8utils.hpp.
|
inline |
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
Clear a bit on or off.
sbit | enum to set |
Definition at line 1011 of file f8utils.hpp.
Referenced by FIX8::Session::start().
|
inline |
|
inline |
Get the enum integral_type.
Definition at line 1022 of file f8utils.hpp.
|
inline |
Check if an enum is in the set.
sbit | enum to check |
Definition at line 975 of file f8utils.hpp.
Referenced by FIX8::Session::is_shutdown().
|
inline |
Check if an enum is in the set.
sbit | enum to check |
Definition at line 980 of file f8utils.hpp.
|
inline |
And a bit value with the current set.
sbit | to set |
Definition at line 1030 of file f8utils.hpp.
|
inline |
Or a bit value with the current set.
sbit | to set |
Definition at line 1035 of file f8utils.hpp.
|
inline |
Assignment operator.
that | ebitset_r to assign from |
Definition at line 965 of file f8utils.hpp.
|
inline |
Or a bit value with the current set.
sbit | to set |
Definition at line 1026 of file f8utils.hpp.
|
inline |
Set a bit on or off.
sbit | enum to set |
on | set on or off |
Definition at line 985 of file f8utils.hpp.
Referenced by FIX8::ebitset_r< SessionControl >::set().
|
inline |
From a set of strings representing the names of each bit in order, set the named bit on.
sset | the set of strings |
what | the string to find and set |
ignorecase | if true, ignore case |
on | set or clear the found bit |
Definition at line 993 of file f8utils.hpp.
|
inline |
Set a bit on or off.
bset | integral_type to set |
Definition at line 1007 of file f8utils.hpp.
|
inline |
Set all bits to a value.
sbit | value to set to |
Definition at line 1018 of file f8utils.hpp.
|
private |
Definition at line 944 of file f8utils.hpp.
Referenced by FIX8::ebitset_r< SessionControl >::clear(), FIX8::ebitset_r< SessionControl >::ebitset_r(), FIX8::ebitset_r< SessionControl >::get(), FIX8::ebitset_r< SessionControl >::operator&=(), FIX8::ebitset_r< SessionControl >::operator=(), and FIX8::ebitset_r< SessionControl >::operator|=().