engine-mk1
Public Member Functions | Public Attributes | List of all members
rz::eventstream::Event Struct Reference

Contains the data required to receive and process an Event. More...

#include <EventStream.hpp>

Collaboration diagram for rz::eventstream::Event:
[legend]

Public Member Functions

 Event (UUID64 recipient=UUID64{0}, EventType type=EventType{}, std::shared_ptr< void > data=nullptr, unsigned lifetime=0) noexcept
 
bool operator== (const Event &rhs) noexcept
 Evaluates equality between two Event structs. More...
 
bool operator!= (const Event &rhs) noexcept
 Evaluates inequality between two Event structs. More...
 

Public Attributes

UUID64 recipient
 The unique id of the recipient. More...
 
EventType type
 The EventType. More...
 
std::shared_ptr< void > data
 A pointer to the data being sent. More...
 
unsigned lifetime
 How long the Event will live for. More...
 
unsigned id { uid++ }
 This Events unique id. More...
 

Detailed Description

Contains the data required to receive and process an Event.

Member Function Documentation

bool rz::eventstream::Event::operator!= ( const Event rhs)
inlinenoexcept

Evaluates inequality between two Event structs.

bool rz::eventstream::Event::operator== ( const Event rhs)
inlinenoexcept

Evaluates equality between two Event structs.

Member Data Documentation

std::shared_ptr<void> rz::eventstream::Event::data

A pointer to the data being sent.

unsigned rz::eventstream::Event::id { uid++ }

This Events unique id.

unsigned rz::eventstream::Event::lifetime

How long the Event will live for.

UUID64 rz::eventstream::Event::recipient

The unique id of the recipient.

EventType rz::eventstream::Event::type

The EventType.


The documentation for this struct was generated from the following files: