|
Photosine 0.5
|
#include <MemoryMappedFileMatArray.h>
Classes | |
| struct | ImageProcessorMatMemoryLocation |
Public Member Functions | |
| MemoryMappedFileMatArray (juce::File fileToLoad) | |
| ~MemoryMappedFileMatArray () | |
| void | addMat (ImageProcessorMat matToAdd) |
| ImageProcessorMat | getMat (int index) |
| void | move (int currentIndex, int newIndex) |
| void | sort () |
| void | clear () |
| void | remove (int indexToRemove) |
Private Member Functions | |
| void * | findMemoryLocationForIndex (int index) |
| void * | getNextPositionToAddTo () |
| JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MemoryMappedFileMatArray) | |
Private Attributes | |
| juce::MemoryMappedFile * | cacheFile |
| juce::Array< ImageProcessorMatMemoryLocation > | memoryLocations |
| juce::Array< ImageProcessorMatMemoryLocation > | deletedMemoryLocations |
| size_t | arrayObjectSize |
INCOMPLETE*
This class manages the get, set, sorting around ImageProcessorMats being stored in a binary file. The order of the file contents is not determined by the order of the sorting. Contains a juce::Array to memory locations within the file which keeps track of item indexes. Each chunk is a constant size calculated from width,height,etc.
TO DO
| ImageProcessing::MemoryMappedFileMatArray::MemoryMappedFileMatArray | ( | juce::File | fileToLoad | ) |
| ImageProcessing::MemoryMappedFileMatArray::~MemoryMappedFileMatArray | ( | ) |
| void ImageProcessing::MemoryMappedFileMatArray::addMat | ( | ImageProcessorMat | matToAdd | ) |
| void ImageProcessing::MemoryMappedFileMatArray::clear | ( | ) |
|
private |
| ImageProcessing::ImageProcessorMat ImageProcessing::MemoryMappedFileMatArray::getMat | ( | int | index | ) |
|
private |
|
private |
| void ImageProcessing::MemoryMappedFileMatArray::move | ( | int | currentIndex, |
| int | newIndex ) |
| void ImageProcessing::MemoryMappedFileMatArray::remove | ( | int | indexToRemove | ) |
| void ImageProcessing::MemoryMappedFileMatArray::sort | ( | ) |
|
private |
|
private |
|
private |
|
private |