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


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 82 of file picture.cpp.

Member Typedef Documentation

◆ Key

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

Definition at line 84 of file picture.cpp.

Constructor & Destructor Documentation

◆ cache_type()

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

Member Function Documentation

◆ flush()

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

Definition at line 106 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)

Member Data Documentation

◆ content_

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

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