Luanti 5.15.0-dev
 
Loading...
Searching...
No Matches
IdIdMapping Class Reference
+ Collaboration diagram for IdIdMapping:

Public Member Functions

 IdIdMapping ()
 
content_t get (content_t k) const
 
void set (content_t k, content_t v)
 
void clear ()
 

Static Public Member Functions

static IdIdMappinggiveClearedThreadLocalInstance ()
 

Private Attributes

std::unique_ptr< content_t[]> m_mapping
 
std::vector< content_tm_dirty
 

Constructor & Destructor Documentation

◆ IdIdMapping()

IdIdMapping::IdIdMapping ( )
inline

References CONTENT_MAX, and m_mapping.

Member Function Documentation

◆ clear()

void IdIdMapping::clear ( )
inline

References m_dirty, and m_mapping.

Referenced by giveClearedThreadLocalInstance().

+ Here is the caller graph for this function:

◆ get()

content_t IdIdMapping::get ( content_t k) const
inline

References m_mapping.

Referenced by MapBlock::correctBlockNodeIds(), and MapBlock::getBlockNodeIdMapping().

+ Here is the caller graph for this function:

◆ giveClearedThreadLocalInstance()

static IdIdMapping & IdIdMapping::giveClearedThreadLocalInstance ( )
inlinestatic

References clear().

Referenced by MapBlock::correctBlockNodeIds(), and MapBlock::getBlockNodeIdMapping().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ set()

void IdIdMapping::set ( content_t k,
content_t v )
inline

References m_dirty, and m_mapping.

Referenced by MapBlock::correctBlockNodeIds(), and MapBlock::getBlockNodeIdMapping().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_dirty

std::vector<content_t> IdIdMapping::m_dirty
private

Referenced by clear(), and set().

◆ m_mapping

std::unique_ptr<content_t[]> IdIdMapping::m_mapping
private

Referenced by IdIdMapping(), clear(), get(), and set().


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