call::call Constructor

Constructs a call messaging block.

call(
   _Call_method const& _Func
);

call(
   _Call_method const& _Func,
   filter_method const& _Filter
);

call(
   Scheduler& _PScheduler,
   _Call_method const& _Func
);

call(
   Scheduler& _PScheduler,
   _Call_method const& _Func,
   filter_method const& _Filter
);

call(
   ScheduleGroup& _PScheduleGroup,
   _Call_method const& _Func
);

call(
   ScheduleGroup& _PScheduleGroup,
   _Call_method const& _Func,
   filter_method const& _Filter
);

Parameters

  • _Func
    A function that will be invoked for each accepted message.

  • _Filter
    A filter function which determines whether offered messages should be accepted.

  • _PScheduler
    The Scheduler object within which the propagation task for the call messaging block is scheduled.

  • _PScheduleGroup
    The ScheduleGroup object within which the propagation task for the call messaging block is scheduled. The Scheduler object used is implied by the schedule group.

Remarks

The runtime uses the default scheduler if you do not specify the _PScheduler or _PScheduleGroup parameters.

The type _Call_method is a functor with signature void (_Type const &) which is invoked by this call messaging block to process a message.

The type filter_method is a functor with signature bool (_Type const &) which is invoked by this call messaging block to determine whether or not it should accept an offered message.

Requirements

Header: agents.h

Namespace: concurrency

See Also

Reference

call Class

Scheduler Class

ScheduleGroup Class