Share via


overwrite_buffer::overwrite_buffer Constructor

Constructs an overwrite_buffer messaging block.

overwrite_buffer();

overwrite_buffer(
   filter_method const& _Filter
);

overwrite_buffer(
   Scheduler& _PScheduler
);

overwrite_buffer(
   Scheduler& _PScheduler,
   filter_method const& _Filter
);

overwrite_buffer(
   ScheduleGroup& _PScheduleGroup
);

overwrite_buffer(
   ScheduleGroup& _PScheduleGroup,
   filter_method const& _Filter
);

Parameters

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

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

  • _PScheduleGroup
    The ScheduleGroup object within which the propagation task for the overwrite_buffer 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 filter_method is a functor with signature bool (_Type const &) which is invoked by this overwrite_buffer messaging block to determine whether or not it should accept an offered message.

Requirements

Header: agents.h

Namespace: concurrency

See Also

Reference

overwrite_buffer Class

Scheduler Class

ScheduleGroup Class