KiCad PCB EDA Suite
Loading...
Searching...
No Matches
MARKUP_CACHE Class Reference

Classes

struct  ENTRY
 

Public Types

typedef std::pair< wxString, ENTRYCACHE_ENTRY
 

Public Member Functions

 MARKUP_CACHE (size_t aMaxSize)
 
ENTRYPut (const CACHE_ENTRY::first_type &aQuery, ENTRY &&aResult)
 
ENTRYGet (const CACHE_ENTRY::first_type &aQuery)
 
void Clear ()
 

Private Attributes

size_t m_maxSize
 
std::list< CACHE_ENTRYm_cacheMru
 
std::unordered_map< wxString, std::list< CACHE_ENTRY >::iterator > m_cache
 

Detailed Description

Definition at line 62 of file font.cpp.

Member Typedef Documentation

◆ CACHE_ENTRY

typedef std::pair<wxString, ENTRY> MARKUP_CACHE::CACHE_ENTRY

Definition at line 71 of file font.cpp.

Constructor & Destructor Documentation

◆ MARKUP_CACHE()

MARKUP_CACHE::MARKUP_CACHE ( size_t  aMaxSize)
inline

Definition at line 73 of file font.cpp.

Member Function Documentation

◆ Clear()

void MARKUP_CACHE::Clear ( )
inline

Definition at line 115 of file font.cpp.

◆ Get()

ENTRY * MARKUP_CACHE::Get ( const CACHE_ENTRY::first_type &  aQuery)
inline

Definition at line 103 of file font.cpp.

Referenced by KIFONT::FONT::drawMarkup().

◆ Put()

ENTRY & MARKUP_CACHE::Put ( const CACHE_ENTRY::first_type &  aQuery,
ENTRY &&  aResult 
)
inline

Definition at line 78 of file font.cpp.

Referenced by KIFONT::FONT::drawMarkup().

Member Data Documentation

◆ m_cache

std::unordered_map<wxString, std::list<CACHE_ENTRY>::iterator> MARKUP_CACHE::m_cache
private

Definition at line 124 of file font.cpp.

◆ m_cacheMru

std::list<CACHE_ENTRY> MARKUP_CACHE::m_cacheMru
private

Definition at line 123 of file font.cpp.

◆ m_maxSize

size_t MARKUP_CACHE::m_maxSize
private

Definition at line 122 of file font.cpp.


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