ITarget Class
The ITarget class is the interface for all target blocks. Target blocks consume messages offered to them by ISource blocks.
template<
class _Type
>
class ITarget;
Parameters
- _Type
The data type of the payload within the messages accepted by the target block.
Members
Public Typedefs
Name |
Description |
---|---|
filter_method |
The signature of any method used by the block that returns a bool value to determine whether an offered message should be accepted. |
type |
A type alias for _Type. |
Public Constructors
Name |
Description |
---|---|
Destroys the ITarget object. |
Public Methods
Name |
Description |
---|---|
When overridden in a derived class, asynchronously passes a message from a source block to this target block. |
|
When overridden in a derived class, synchronously passes a message to the target block. |
Protected Methods
Name |
Description |
---|---|
When overridden in a derived class, links a specified source block to this ITarget block. |
|
When overridden in a derived class, unlinks a specified source block from this ITarget block. |
|
When overridden in a derived class, unlinks all source blocks from this ITarget block. |
Remarks
For more information, see Asynchronous Message Blocks.
Inheritance Hierarchy
Requirements
Header: agents.h
Namespace: Concurrency