#include <image_cache.h>
Public Member Functions | |
| void | AddFailure () |
| void | ClearImage () |
| bool | Failed () const |
| boost::shared_ptr< QImage > | GetImage () |
| Image (const QString &uri, size_t uri_hash, uint64_t priority=0) | |
| void | IncreasePriority () |
| void | InitializeImage () |
| bool | Loading () const |
| uint64_t | Priority () const |
| void | SetLoading (bool loading) |
| void | SetPriority (uint64_t priority) |
| QString | Uri () const |
| size_t | UriHash () const |
| ~Image () | |
Private Attributes | |
| bool | failed_ |
| int32_t | failures_ |
| boost::shared_ptr< QImage > | image_ |
| bool | loading_ |
| uint64_t | priority_ |
| QString | uri_ |
| size_t | uri_hash_ |
Static Private Attributes | |
| static const int | MAXIMUM_FAILURES = 5 |
Definition at line 53 of file image_cache.h.
| tile_map::Image::Image | ( | const QString & | uri, |
| size_t | uri_hash, | ||
| uint64_t | priority = 0 |
||
| ) |
Definition at line 52 of file image_cache.cpp.
Definition at line 62 of file image_cache.cpp.
| void tile_map::Image::AddFailure | ( | ) |
Definition at line 76 of file image_cache.cpp.
| void tile_map::Image::ClearImage | ( | ) |
Definition at line 71 of file image_cache.cpp.
| bool tile_map::Image::Failed | ( | ) | const [inline] |
Definition at line 68 of file image_cache.h.
| boost::shared_ptr<QImage> tile_map::Image::GetImage | ( | ) | [inline] |
Definition at line 62 of file image_cache.h.
| void tile_map::Image::IncreasePriority | ( | ) | [inline] |
Definition at line 70 of file image_cache.h.
| void tile_map::Image::InitializeImage | ( | ) |
Definition at line 66 of file image_cache.cpp.
| bool tile_map::Image::Loading | ( | ) | const [inline] |
Definition at line 80 of file image_cache.h.
| uint64_t tile_map::Image::Priority | ( | ) | const [inline] |
Definition at line 78 of file image_cache.h.
| void tile_map::Image::SetLoading | ( | bool | loading | ) | [inline] |
Definition at line 81 of file image_cache.h.
| void tile_map::Image::SetPriority | ( | uint64_t | priority | ) | [inline] |
Definition at line 77 of file image_cache.h.
| QString tile_map::Image::Uri | ( | ) | const [inline] |
Definition at line 59 of file image_cache.h.
| size_t tile_map::Image::UriHash | ( | ) | const [inline] |
Definition at line 60 of file image_cache.h.
bool tile_map::Image::failed_ [private] |
Definition at line 90 of file image_cache.h.
int32_t tile_map::Image::failures_ [private] |
Definition at line 89 of file image_cache.h.
boost::shared_ptr<QImage> tile_map::Image::image_ [mutable, private] |
Definition at line 93 of file image_cache.h.
bool tile_map::Image::loading_ [private] |
Definition at line 88 of file image_cache.h.
const int tile_map::Image::MAXIMUM_FAILURES = 5 [static, private] |
Definition at line 95 of file image_cache.h.
uint64_t tile_map::Image::priority_ [private] |
Definition at line 91 of file image_cache.h.
QString tile_map::Image::uri_ [private] |
Definition at line 84 of file image_cache.h.
size_t tile_map::Image::uri_hash_ [private] |
Definition at line 86 of file image_cache.h.