Public Member Functions | Private Attributes | Static Private Attributes | List of all members
tile_map::Image Class Reference

#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
 

Detailed Description

Definition at line 54 of file image_cache.h.

Constructor & Destructor Documentation

tile_map::Image::Image ( const QString &  uri,
size_t  uri_hash,
uint64_t  priority = 0 
)

Definition at line 52 of file image_cache.cpp.

tile_map::Image::~Image ( )

Definition at line 62 of file image_cache.cpp.

Member Function Documentation

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 69 of file image_cache.h.

boost::shared_ptr<QImage> tile_map::Image::GetImage ( )
inline

Definition at line 63 of file image_cache.h.

void tile_map::Image::IncreasePriority ( )
inline

Definition at line 71 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 81 of file image_cache.h.

uint64_t tile_map::Image::Priority ( ) const
inline

Definition at line 79 of file image_cache.h.

void tile_map::Image::SetLoading ( bool  loading)
inline

Definition at line 82 of file image_cache.h.

void tile_map::Image::SetPriority ( uint64_t  priority)
inline

Definition at line 78 of file image_cache.h.

QString tile_map::Image::Uri ( ) const
inline

Definition at line 60 of file image_cache.h.

size_t tile_map::Image::UriHash ( ) const
inline

Definition at line 61 of file image_cache.h.

Member Data Documentation

bool tile_map::Image::failed_
private

Definition at line 91 of file image_cache.h.

int32_t tile_map::Image::failures_
private

Definition at line 90 of file image_cache.h.

boost::shared_ptr<QImage> tile_map::Image::image_
mutableprivate

Definition at line 94 of file image_cache.h.

bool tile_map::Image::loading_
private

Definition at line 89 of file image_cache.h.

const int tile_map::Image::MAXIMUM_FAILURES = 5
staticprivate

Definition at line 96 of file image_cache.h.

uint64_t tile_map::Image::priority_
private

Definition at line 92 of file image_cache.h.

QString tile_map::Image::uri_
private

Definition at line 85 of file image_cache.h.

size_t tile_map::Image::uri_hash_
private

Definition at line 87 of file image_cache.h.


The documentation for this class was generated from the following files:


tile_map
Author(s): Marc Alban
autogenerated on Thu Jun 6 2019 19:25:35