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
    该块可接受的函数签名。

成员

公共构造函数

Name

说明

call::call 构造函数

已重载。 构造 call 消息块。

call::~call 析构函数

销毁 call 消息块。

受保护的方法

Name

说明

call::process_message 方法

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

call::propagate_message 方法

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

call::send_message 方法

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

备注

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

继承层次结构

ITarget

target_block

call

要求

**标头:**agents.h

命名空间: 并发

请参见

参考

Concurrency 命名空间

transformer 类