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

An identifier for sources of events in a Reactor (I/O, timers, etc). More...

#include <tsEventId.h>

Public Member Functions

 EventId ()
 Default constructor.
 
void invalidate ()
 Invalidate the content of this object.
 
bool isValid () const
 Check if the source id is valid.
 
bool operator< (const EventId &other) const
 Less than operator (for use in hash tables).
 
bool operator== (const EventId &other) const
 Equality operator.
 
UString toString () const
 Get a string representation, for debug purpose.
 

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.

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.

◆ 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: