Loading...
Searching...
No Matches
Classes | Functions
Messenger.h File Reference

Provides the BMessenger class and some BMessenger operator functions. More...

Classes

class  BMessenger
 A class to send messages to a target BLooper or BHandler. More...
 

Functions

bool operator!= (const BMessenger &a, const BMessenger &b)
 Returns whether two BMessengers do NOT have the same target.
 
bool operator< (const BMessenger &a, const BMessenger &b)
 Returns whether the first messenger is less than the second one.
 

Detailed Description

Provides the BMessenger class and some BMessenger operator functions.

Function Documentation

◆ operator!=()

bool operator!= ( const BMessenger a,
const BMessenger b 
)

Returns whether two BMessengers do NOT have the same target.

Parameters
aThe first messenger.
bThe second messenger.
Returns
false, if a and b had the same targets or both were not properly initialized, true otherwise.

◆ operator<()

bool operator< ( const BMessenger _a,
const BMessenger _b 
)

Returns whether the first messenger is less than the second one.

This method defines an order on BMessengers based on their member variables fPort, fHandlerToken and fPreferredTarget.

Parameters
_aThe first messenger.
_bThe second messenger.
Returns
true, if a was less than b, false otherwise.