The Battle for Wesnoth  1.19.0-dev
Classes | Public Member Functions | Private Types | Private Attributes | List of all members
image::cache_type< T > Class Template Reference

Classes

struct  cache_item
 

Public Member Functions

 cache_type ()=default
 
cache_itemget_element (const Key &item)
 
void flush ()
 

Private Types

using Key = locator::value
 

Private Attributes

std::unordered_map< Key, cache_itemcontent_
 

Detailed Description

template<typename T>
class image::cache_type< T >

Definition at line 77 of file picture.cpp.

Member Typedef Documentation

◆ Key

template<typename T >
using image::cache_type< T >::Key = locator::value
private

Definition at line 79 of file picture.cpp.

Constructor & Destructor Documentation

◆ cache_type()

template<typename T >
image::cache_type< T >::cache_type ( )
default

Member Function Documentation

◆ flush()

template<typename T >
void image::cache_type< T >::flush ( )
inline

Definition at line 101 of file picture.cpp.

References image::cache_type< T >::content_.

◆ get_element()

template<typename T >
cache_item& image::cache_type< T >::get_element ( const Key item)
inline

Member Data Documentation

◆ content_

template<typename T >
std::unordered_map<Key, cache_item> image::cache_type< T >::content_
private

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