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 消息块接受的消息。 |
|
将 ISource 块中的消息异步传递到此 call 消息块中。 在由源块调用时,其由 propagate 方法调用。 |
|
将消息从 ISource 块同步传递到此 call 消息块中。 在由源块调用时,其由 send 方法调用。 |
|
重写 supports_anonymous_source 方法来指示该块可以接受提供的消息由未链接的源。 (重写 ITarget::supports_anonymous_source。) |
备注
有关更多信息,请参见 异步消息块。
继承层次结构
call
要求
**标头:**agents.h
命名空间: 并发