Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ITarget Class
Collapse the table of content
Expand the table of content

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;

_Type

The data type of the payload within the messages accepted by the target block.

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

ITarget::~ITarget Destructor

Destroys the ITarget object.

Public Methods

Name

Description

ITarget::propagate Method

When overridden in a derived class, asynchronously passes a message from a source block to this target block.

ITarget::send Method

When overridden in a derived class, synchronously passes a message to the target block.

Protected Methods

Name

Description

ITarget::link_source Method

When overridden in a derived class, links a specified source block to this ITarget block.

ITarget::unlink_source Method

When overridden in a derived class, unlinks a specified source block from this ITarget block.

ITarget::unlink_sources Method

When overridden in a derived class, unlinks all source blocks from this ITarget block.

For more information, see Asynchronous Message Blocks.

Header: agents.h

Namespace: Concurrency

Community Additions

ADD
Show:
© 2015 Microsoft