The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
image::cache_type< T > Singleton Reference

#include <image.hpp>

Public Member Functions

 cache_type ()
 
cache_item< T > & get_element (int index)
 
void flush ()
 

Private Attributes

std::vector< cache_item< T > > content_
 

Detailed Description

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

Definition at line 78 of file image.cpp.

Constructor & Destructor Documentation

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

Definition at line 81 of file image.cpp.

Member Function Documentation

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

Definition at line 90 of file image.cpp.

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

template<typename T>
cache_item<T>& image::cache_type< T >::get_element ( int  index)
inline

Member Data Documentation

template<typename T>
std::vector<cache_item<T> > image::cache_type< T >::content_
private

Definition at line 93 of file image.cpp.

Referenced by image::cache_type< T >::flush(), and image::cache_type< T >::get_element().


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