|
A Hopf, Skip and a Jump
|
Template of a pure virtual class which populates a Segment with entities. More...
#include <slidingbuffer.h>
Public Member Functions | |
| virtual | ~SegmentProducer () |
| Destructor: to be provided by derived class. | |
| virtual std::size_t | generate (T seg[], const std::size_t idx, const std::size_t size)=0 |
| Populate the array supplied by the Segment with newly constructed entities. More... | |
| virtual bool | more (void)=0 |
Determine whether a subsequent call to generate() would result in more entities becoming available. More... | |
Template of a pure virtual class which populates a Segment with entities.
| T | Type of entity produced by the SegmentProducer |
Definition at line 92 of file slidingbuffer.h.
|
pure virtual |
Populate the array supplied by the Segment with newly constructed entities.
The first such entity shall have the supplied index with in the SlidingBuffer.
| seg | Storage for the constructed entities supplied by the caller. |
| idx | The origin (index of the first entity from the point of view of the SlidingBuffer). |
| size | The number of entities to construct. |
Implemented in detectorcache::Producer.
|
pure virtual |
Determine whether a subsequent call to generate() would result in more entities becoming available.
true if more data can be read, false if not. Implemented in detectorcache::Producer.
1.8.13