SourceXtractorPlusPlus
0.12
Please provide a description of the project.
|
#include <TileManager.h>
Public Member Functions | |
TileManager () | |
virtual | ~TileManager () |
void | setOptions (int tile_width, int tile_height, int max_memory) |
void | flush () |
template<typename T > | |
std::shared_ptr< ImageTile< T > > | getTileForPixel (int x, int y, std::shared_ptr< const ImageSource< T >> source) |
void | saveAllTiles () |
int | getTileWidth () const |
int | getTileHeight () const |
Static Public Member Functions | |
static std::shared_ptr< TileManager > | getInstance () |
Private Member Functions | |
void | removeTile (TileKey tile_key) |
void | removeExtraTiles () |
void | addTile (TileKey key, std::shared_ptr< ImageTileBase > tile) |
Private Attributes | |
int | m_tile_width |
int | m_tile_height |
long | m_max_memory |
long | m_total_memory_used |
std::unordered_map< TileKey, std::shared_ptr< ImageTileBase > > | m_tile_map |
std::list< TileKey > | m_tile_list |
std::recursive_mutex | m_mutex |
Elements::Logging | m_tile_logger |
Static Private Attributes | |
static std::shared_ptr< TileManager > | s_instance |
Definition at line 82 of file TileManager.h.
|
inline |
Definition at line 85 of file TileManager.h.
|
inlinevirtual |
Definition at line 89 of file TileManager.h.
References saveAllTiles().
|
inlineprivate |
Definition at line 184 of file TileManager.h.
References Elements::Logging::debug(), m_tile_list, m_tile_logger, m_tile_map, and m_total_memory_used.
Referenced by getTileForPixel().
|
inline |
Definition at line 104 of file TileManager.h.
References std::lock(), m_mutex, m_tile_list, m_tile_map, m_total_memory_used, and saveAllTiles().
Referenced by setOptions().
|
inlinestatic |
Definition at line 137 of file TileManager.h.
References s_instance.
Referenced by SourceXtractor::Lutz::labelImage(), SEMain::mainMethod(), and TestImage::mainMethod().
|
inline |
Definition at line 115 of file TileManager.h.
References addTile(), Elements::Logging::debug(), std::dynamic_pointer_cast(), std::lock(), m_mutex, m_tile_height, m_tile_logger, m_tile_map, m_tile_width, std::min(), removeExtraTiles(), std::static_pointer_cast(), x, and y.
|
inline |
Definition at line 156 of file TileManager.h.
References m_tile_height.
|
inline |
Definition at line 152 of file TileManager.h.
References m_tile_width.
|
inlineprivate |
Definition at line 175 of file TileManager.h.
References m_max_memory, m_tile_list, m_total_memory_used, and removeTile().
Referenced by getTileForPixel().
|
inlineprivate |
Definition at line 162 of file TileManager.h.
References Elements::Logging::debug(), m_tile_logger, m_tile_map, and m_total_memory_used.
Referenced by removeExtraTiles().
|
inline |
Definition at line 144 of file TileManager.h.
References std::lock(), m_mutex, m_tile_list, and m_tile_map.
Referenced by flush(), and ~TileManager().
|
inline |
Definition at line 94 of file TileManager.h.
References flush(), std::lock(), m_max_memory, m_mutex, m_tile_height, and m_tile_width.
|
private |
Definition at line 195 of file TileManager.h.
Referenced by removeExtraTiles(), and setOptions().
|
private |
Definition at line 201 of file TileManager.h.
Referenced by flush(), getTileForPixel(), saveAllTiles(), and setOptions().
|
private |
Definition at line 194 of file TileManager.h.
Referenced by getTileForPixel(), getTileHeight(), and setOptions().
Definition at line 199 of file TileManager.h.
Referenced by addTile(), flush(), removeExtraTiles(), and saveAllTiles().
|
private |
Definition at line 203 of file TileManager.h.
Referenced by addTile(), getTileForPixel(), and removeTile().
|
private |
Definition at line 198 of file TileManager.h.
Referenced by addTile(), flush(), getTileForPixel(), removeTile(), and saveAllTiles().
|
private |
Definition at line 194 of file TileManager.h.
Referenced by getTileForPixel(), getTileWidth(), and setOptions().
|
private |
Definition at line 196 of file TileManager.h.
Referenced by addTile(), flush(), removeExtraTiles(), and removeTile().
|
staticprivate |
Definition at line 205 of file TileManager.h.
Referenced by getInstance().