fix8
version 1.4.0
Open Source C++ FIX Framework
|
Bitset for enums. More...
#include <f8utils.hpp>
Public Member Functions | |
ebitset () | |
Ctor. More... | |
ebitset (const ebitset< T, B > &from) | |
ebitset (const integral_type a) | |
ebitset (const T sbit) | |
ebitset< T, B > & | operator= (const ebitset< 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) |
void | set (const integral_type bset) |
int | set (const std::vector< std::string > &sset, const std::string &what, bool ignorecase, bool on=true) |
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) |
ebitset & | operator<< (const T sbit) |
Private Types | |
using | integral_type = B |
Private Attributes | |
integral_type | a_ |
Bitset for enums.
T | the enum type |
B | the integral type of the enumeration |
Definition at line 842 of file f8utils.hpp.
|
private |
Definition at line 844 of file f8utils.hpp.
|
inline |
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
Clear a bit on or off.
sbit | enum to set |
Definition at line 913 of file f8utils.hpp.
Referenced by FIX8::FieldTraits::clear(), and FIX8::FieldTraits::clear_flag().
|
inline |
|
inline |
Get the enum integral_type.
Definition at line 924 of file f8utils.hpp.
Referenced by FIX8::FieldTraits::getval(), and FIX8::operator<<().
|
inline |
Check if an enum is in the set.
sbit | enum to check |
Definition at line 876 of file f8utils.hpp.
Referenced by FIX8::FieldTraits::get(), FIX8::FieldTraits::getPos(), FIX8::Logger::has_flag(), and FIX8::FileLogger::rotate().
|
inline |
Check if an enum is in the set.
sbit | enum to check |
Definition at line 881 of file f8utils.hpp.
|
inline |
Or a bit value with the current set.
sbit | to set |
Definition at line 933 of file f8utils.hpp.
|
inline |
Assignment operator.
that | ebitset_r to assign from |
Definition at line 866 of file f8utils.hpp.
|
inline |
Or a bit value with the current set.
sbit | to set |
Definition at line 928 of file f8utils.hpp.
|
inline |
Set a bit on or off.
sbit | enum to set |
on | set on or off |
Definition at line 886 of file f8utils.hpp.
Referenced by FIX8::FieldTraits::set(), and FIX8::ebitset< TraitTypes, unsigned short >::set().
|
inline |
Set a bit on or off.
bset | integral_type to set |
Definition at line 890 of file f8utils.hpp.
|
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 898 of file f8utils.hpp.
|
inline |
|
private |
Definition at line 845 of file f8utils.hpp.
Referenced by FIX8::ebitset< TraitTypes, unsigned short >::get(), and FIX8::ebitset< TraitTypes, unsigned short >::operator=().