Export (0) Print
Expand All

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.

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.

Name

Description

ITarget::~ITarget Destructor

Destroys the ITarget object.

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.

ITarget::supports_anonymous_source Method

When overridden in a derived class, returns true or false depending on whether the message block accepts messages offered by a source that is not linked to it. If the overridden method returns true, the target cannot postpone an offered message, as consumption of a postponed message at a later time requires the source to be identified in its sourse link registry.

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

Show:
© 2014 Microsoft