Compartir a través de


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

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.

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.

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.

Remarks

For more information, see Asynchronous Message Blocks.

Inheritance Hierarchy

ITarget

Requirements

Header: agents.h

Namespace: concurrency

See Also

Reference

concurrency Namespace

ISource Class