multitype_join 类

multitype_join 消息块是一个多源、单目标的消息块,可以合并来自其每个源的不同类型的消息并将组合消息的元组提供给其目标。

template<
   typename _Type,
   join_type _Jtype = non_greedy
>
class multitype_join: public ISource<typename _Unwrap<_Type>::type>;

参数

  • _Type
    块联接并传播的消息的 tuple 负载类型。

  • _Jtype
    join 块的种类为 greedynon_greedy

成员

公共 Typedefs

Name

说明

type

_Type 的类型别名。

公共构造函数

Name

说明

multitype_join::multitype_join 构造函数

已重载。 构造 multitype_join 消息块。

multitype_join::~multitype_join 析构函数

销毁 multitype_join 消息块。

公共方法

Name

说明

multitype_join::accept 方法

接受由此 multitype_join 块提供的消息,将所有权转移给调用方。

multitype_join::acquire_ref 方法

获取此 multitype_join 消息块上的引用计数,以防止删除。

multitype_join::consume 方法

使用先前由 multitype_join 消息块提供并由目标成功保留的消息,将所有权转移给调用方。

multitype_join::link_target 方法

将目标块链接到此 multitype_join 消息块。

multitype_join::release 方法

释放以前成功的消息保留。

multitype_join::release_ref 方法

释放此 multiple_join 消息块上的引用数。

multitype_join::reserve 方法

保留此 multitype_join 消息块之前提供的消息。

multitype_join::unlink_target 方法

从此 multitype_join 消息块取消目标块的链接。

multitype_join::unlink_targets 方法

从此 multitype_join 消息块断开所有目标的链接。 (重写 ISource::unlink_targets。)

备注

有关更多信息,请参见 异步消息块

继承层次结构

ISource

multitype_join

要求

**标头:**agents.h

命名空间: 并发

请参见

参考

Concurrency 命名空间

choice 类

join 类

join_type 枚举

make_join 函数

make_greedy_join 函数

tuple Class