WSF
WsfEventManager::Event Struct Reference

#include <WsfEventManager.hpp>

Public Types

using Key = std::tuple<double, int, unsigned int>

Public Member Functions

 Event (const Key &aKey, std::unique_ptr< WsfEvent > aEventPtr)
bool operator> (const Event &rhs) const

Public Attributes

Key mKey
std::unique_ptr< WsfEventmEventPtr

Detailed Description

Event struct used for storing a key that allows for stable ordering in the priority_queue events are sorted by time first, then by priority, and then by the unsigned integer counter if times and priorities are equal.

Member Typedef Documentation

◆ Key

using WsfEventManager::Event::Key = std::tuple<double, int, unsigned int>

Constructor & Destructor Documentation

◆ Event()

WsfEventManager::Event::Event ( const Key & aKey,
std::unique_ptr< WsfEvent > aEventPtr )
inline

References mEventPtr, and mKey.

Referenced by operator>().

Member Function Documentation

◆ operator>()

bool WsfEventManager::Event::operator> ( const Event & rhs) const
inline

References Event(), and mKey.

Member Data Documentation

◆ mEventPtr

std::unique_ptr<WsfEvent> WsfEventManager::Event::mEventPtr
mutable

Referenced by Event().

◆ mKey

Key WsfEventManager::Event::mKey

Referenced by Event(), and operator>().


The documentation for this struct was generated from the following file:
Copyrights Multiple, All Rights Reserved