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 消息块。 |
受保护的方法
Name |
说明 |
---|---|
处理此 call 消息块接受的消息。 |
|
将 ISource 块中的消息异步传递到此 call 消息块中。 在由源块调用时,其由 propagate 方法调用。 |
|
将消息从 ISource 块同步传递到此 call 消息块中。 在由源块调用时,其由 send 方法调用。 |
备注
有关更多信息,请参见 异步消息块。
继承层次结构
要求
**标头:**agents.h
命名空间: 并发