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

◆ Image()

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

Definition at line 52 of file image_cache.cpp.

◆ ~Image()

tile_map::Image::~Image ( )

Definition at line 62 of file image_cache.cpp.

Member Function Documentation

◆ AddFailure()

void tile_map::Image::AddFailure ( )

Definition at line 76 of file image_cache.cpp.

◆ ClearImage()

void tile_map::Image::ClearImage ( )

Definition at line 71 of file image_cache.cpp.

◆ Failed()

bool tile_map::Image::Failed ( ) const
inline

Definition at line 69 of file image_cache.h.

◆ GetImage()

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

Definition at line 63 of file image_cache.h.

◆ IncreasePriority()

void tile_map::Image::IncreasePriority ( )
inline

Definition at line 71 of file image_cache.h.

◆ InitializeImage()

void tile_map::Image::InitializeImage ( )

Definition at line 66 of file image_cache.cpp.

◆ Loading()

bool tile_map::Image::Loading ( ) const
inline

Definition at line 81 of file image_cache.h.

◆ Priority()

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

Definition at line 79 of file image_cache.h.

◆ SetLoading()

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

Definition at line 82 of file image_cache.h.

◆ SetPriority()

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

Definition at line 78 of file image_cache.h.

◆ Uri()

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

Definition at line 60 of file image_cache.h.

◆ UriHash()

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

Definition at line 61 of file image_cache.h.

Member Data Documentation

◆ failed_

bool tile_map::Image::failed_
private

Definition at line 91 of file image_cache.h.

◆ failures_

int32_t tile_map::Image::failures_
private

Definition at line 90 of file image_cache.h.

◆ image_

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

Definition at line 94 of file image_cache.h.

◆ loading_

bool tile_map::Image::loading_
private

Definition at line 89 of file image_cache.h.

◆ MAXIMUM_FAILURES

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

Definition at line 96 of file image_cache.h.

◆ priority_

uint64_t tile_map::Image::priority_
private

Definition at line 92 of file image_cache.h.

◆ uri_

QString tile_map::Image::uri_
private

Definition at line 85 of file image_cache.h.

◆ uri_hash_

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 Sun Sep 8 2024 02:27:24