YAMI4 - core
yami::core::channel_descriptor Class Reference

Descriptor handle for the physical channel. More...

#include <channel_descriptor.h>

List of all members.

Public Member Functions

 channel_descriptor ()
 Constructor.
bool operator== (const channel_descriptor &other) const
 Comparison operator.
bool operator!= (const channel_descriptor &other) const
 Comparison operator.

Detailed Description

The descriptor handle for the physical channel that provides immediate access to the underlying channel object.

The descriptor provides safe access in the sense that dangling descriptors are recognized and reported.


Constructor & Destructor Documentation

yami::core::channel_descriptor::channel_descriptor ( ) [inline]

Creates a default descriptor that is not associated with any existing channel.

Two default descriptors are considered equal.


Member Function Documentation

bool yami::core::channel_descriptor::operator== ( const channel_descriptor other) const [inline]

Compares two descriptors for equality.

Returns:
  • true if the other descriptor points to the same physical channel
  • false otherwise
bool yami::core::channel_descriptor::operator!= ( const channel_descriptor other) const [inline]

Compares two descriptors.

Returns:
Reverse to operator==