Share via


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.

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