PIP 5.6.1
Platform-Independent Primitives
Public Member Functions | List of all members
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.
 
PIObjectsourceObject () const
 Returns the source object that emits the event.
 
PIObjectdestinationObject () const
 Returns the destination object, or nullptr for a lambda connection.
 
PIObjectperformerObject () const
 Returns the performer object, or nullptr for direct delivery. More...
 
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.