PIP 6.1.0
Platform-Independent Primitives
Loading...
Searching...
No Matches
PIObject::Connection Class Reference

Handle of one connection between a source object and a destination object or functor. More...

#include <piobject.h>

Public Member Functions

 Connection ()
 Constructs an invalid connection handle.
bool isValid () const
 Returns true when the connection was created successfully.
PIObject * sourceObject () const
 Returns the source object that emits the event.
PIObject * destinationObject () const
 Returns the destination object, or nullptr for a lambda connection.
PIObject * performerObject () const
 Returns the performer object, or nullptr for direct delivery.
bool disconnect () const
 Disconnects this single connection.

Detailed Description

Handle of one connection between a source object and a destination object or functor.

Member Function Documentation

◆ performerObject()

PIObject * PIObject::Connection::performerObject ( ) const
inline

Returns the performer object, or nullptr for direct delivery.

Queued delivery runs only when the performer drains its queue.