dxFeed Graal CXX API
Loading...
Searching...
No Matches
dxfcpp::EventFlagsMask Class Referencefinal

The event flags' mask (a set of bit flags) More...

#include <EventFlag.hpp>

Public Member Functions

 EventFlagsMask () noexcept
 Creates an empty event flags mask.
 
template<Integral MaskType>
 EventFlagsMask (MaskType mask) noexcept
 Create event flags mask by integer value.
 
template<typename EventFlagIt >
 EventFlagsMask (EventFlagIt begin, EventFlagIt end) noexcept
 Creates event flags mask by iterators of container with flags.
 
 EventFlagsMask (std::initializer_list< EventFlag > eventFlags) noexcept
 Creates event flags mask by initializer list with flags.
 
constexpr std::uint32_t getMask () const noexcept
 Returns an integer representation of event mask.
 

Friends

EventFlagsMask operator| (const EventFlagsMask &eventFlagsMask, const EventFlag &eventFlag) noexcept
 Performs a bit or operation with an event flags' mask and an event flag.
 
EventFlagsMask operator& (const EventFlagsMask &eventFlagsMask, const EventFlag &eventFlag) noexcept
 Performs a bit and operation with an event flags' mask and an event flag.
 
EventFlagsMask operator| (const EventFlag &eventFlag1, const EventFlag &eventFlag2) noexcept
 Performs a bit or operation with two event flags.
 

Detailed Description

The event flags' mask (a set of bit flags)

Constructor & Destructor Documentation

◆ EventFlagsMask() [1/3]

template<Integral MaskType>
dxfcpp::EventFlagsMask::EventFlagsMask ( MaskType mask)
inlineexplicitnoexcept

Create event flags mask by integer value.

Template Parameters
MaskTypeThe type of integer mask
Parameters
maskThe integer mask value

◆ EventFlagsMask() [2/3]

template<typename EventFlagIt >
dxfcpp::EventFlagsMask::EventFlagsMask ( EventFlagIt begin,
EventFlagIt end )
inlinenoexcept

Creates event flags mask by iterators of container with flags.

Template Parameters
EventFlagItThe iterator type
Parameters
beginThe start position
endThe end position

◆ EventFlagsMask() [3/3]

dxfcpp::EventFlagsMask::EventFlagsMask ( std::initializer_list< EventFlag > eventFlags)
inlinenoexcept

Creates event flags mask by initializer list with flags.

Parameters
eventTypesThe list with flags

Member Function Documentation

◆ getMask()

constexpr std::uint32_t dxfcpp::EventFlagsMask::getMask ( ) const
inlineconstexprnoexcept

Returns an integer representation of event mask.

Returns
an integer representation

Friends And Related Symbol Documentation

◆ operator&

EventFlagsMask operator& ( const EventFlagsMask & eventFlagsMask,
const EventFlag & eventFlag )
friend

Performs a bit and operation with an event flags' mask and an event flag.

Parameters
eventFlagsMaskThe event flags' mask
eventFlagThe event flag
Returns
The result (event flags' mask)

◆ operator| [1/2]

EventFlagsMask operator| ( const EventFlag & eventFlag1,
const EventFlag & eventFlag2 )
friend

Performs a bit or operation with two event flags.

Parameters
eventType1The first event flag
eventType2The second event flag
Returns
The result (event flags' mask )

◆ operator| [2/2]

EventFlagsMask operator| ( const EventFlagsMask & eventFlagsMask,
const EventFlag & eventFlag )
friend

Performs a bit or operation with an event flags' mask and an event flag.

Parameters
eventFlagsMaskThe event flags' mask
eventFlagThe event flag
Returns
The result (event flags' mask)