TSDuck v3.46-4930
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::EventId Class Reference

#include <tsEventId.h>

Public Member Functions

 EventId ()
void invalidate ()
bool isValid () const
bool operator< (const EventId &other) const
bool operator== (const EventId &other) const
UString toString () const

Detailed Description

An identifier for sources of events in a Reactor (I/O, timers, etc). This is a small object which can be passed by value at zero cost.

Constructor & Destructor Documentation

◆ EventId()

ts::EventId::EventId ( )
inline

Default constructor.

Member Function Documentation

◆ isValid()

bool ts::EventId::isValid ( ) const
inline

Check if the source id is valid.

Returns
True if the source id is valid.

◆ invalidate()

void ts::EventId::invalidate ( )
inline

Invalidate the content of this object.

◆ operator==()

bool ts::EventId::operator== ( const EventId & other) const
inline

Equality operator.

Parameters
[in]otherOther instance to compare.
Returns
True if this object is equal to other.

◆ operator<()

bool ts::EventId::operator< ( const EventId & other) const
inline

Less than operator (for use in hash tables).

Parameters
[in]otherOther instance to compare.
Returns
True if this object is less to other.

◆ toString()

UString ts::EventId::toString ( ) const
inline

Get a string representation, for debug purpose.

Returns
A string representation of this object (an integer value).

The documentation for this class was generated from the following file: