call 类

call 消息块是多源有序的 target_block,可以在接收消息时调用指定的函数。

template<
   class _Type,
   class _FunctorType = std::tr1::function<void(_Type const&)>
>
class call : public target_block<multi_link_registry<ISource<_Type>>>;

参数

  • _Type
    传播至该块的消息的负载类型。

  • _FunctorType
    该块可接受的函数签名。

成员

公共构造函数

名称

说明

call::call 构造函数

已重载。 构造 call 消息块。

call::~call 析构函数

销毁 call 消息块。

受保护的方法

名称

说明

call::process_input_messages 方法

对输入消息执行调用函数。

call::process_message 方法

处理此 call 消息块接受的消息。

call::propagate_message 方法

ISource 块中的消息异步传递到此 call 消息块中。 在由源块调用时,其由 propagate 方法调用。

call::send_message 方法

将消息从 ISource 块同步传递到此 call 消息块中。 在由源块调用时,其由 send 方法调用。

call::supports_anonymous_source 方法

重写 supports_anonymous_source 方法表示此块可以接受未链接的源为其提供的消息。重写 ( ITarget::supports_anonymous_source。)

备注

有关详细信息,请参阅异步消息块

继承层次结构

ITarget

target_block

call

要求

**标头:**agents.h

**命名空间:**并发

请参见

参考

concurrency 命名空间

transformer 类