5 #if !defined(_RASTERBUFFER_X_) 6 #define _RASTERBUFFER_X_ 16 #if !defined(_RASTER_
) 93 void ThrowOutOldestOccupiedBuffer ();
95 std::queue<RasterPtr> buffer;
96 GoalKeeperPtr gateKeeper;
RasterPtr GetCopyOfLastImage()
Returns a copy of the last Raster instance added to the queue; if buffer is empty will return NULL...
kkint32 MemoryConsumedEstimated()
Returns an estimate of the amount of memory consumed in bytes.
RasterBuffer * RasterBufferPtr
kkint32 RastersDropped() const
Returns the number of 'Raster' instances that had to be deleted because the size of the queue had rea...
RasterBuffer(const KKStr &_name, kkint32 _maxNumOfBuffers)
Constructor.
static KKStr Concat(const std::vector< std::string > &values)
Concatenates the list of 'std::string' strings.
kkint32 NumAvailable() const
The number of entries that are left in the buffer before 'maxNumOfBuffers' is reached.
RasterPtr GetNextRaster()
Removes from the buffer the oldest instance of 'Raster' and returns it to caller; if buffer is empty ...
Will manage a buffer that will allow multiple threads to add and remove instances of 'Raster' objects...
kkint32 NumPopulated() const
kkint32 MaxNumOfBuffers() const
void MaxNumOfBuffers(kkint32 _maxNumOfBuffers)
void AddRaster(RasterPtr raster)
Adds 'raster' to the end of the queue giving the queue ownership of the instance. ...