DescTranslation Class Reference

#include <desctranslation.h>

Public Types

using DescEntryMap = HashMap< DescID, DescEntryStruct >
 
using GroupIdMap = HashMap< InternedId, DescID >
 

Public Member Functions

 DescTranslation ()
 
 DescTranslation (DescTranslation &&other)=default
 
 MAXON_OPERATOR_MOVE_ASSIGNMENT (DescTranslation)
 
const DescEntryStructFindTranslationDescID (const DescID &id) const
 
const DescEntryMap::Entry * ReverseFindTranslationDescID (const Block< const InternedId > &emulKey) const
 

Public Attributes

DescEntryMap _descIdMap
 
GroupIdMap _groupIdMap
 

Private Member Functions

 MAXON_DISALLOW_COPY_AND_ASSIGN (DescTranslation)
 

Member Typedef Documentation

◆ DescEntryMap

◆ GroupIdMap

Constructor & Destructor Documentation

◆ DescTranslation() [1/2]

◆ DescTranslation() [2/2]

DescTranslation ( DescTranslation &&  other)
default

Member Function Documentation

◆ MAXON_DISALLOW_COPY_AND_ASSIGN()

MAXON_DISALLOW_COPY_AND_ASSIGN ( DescTranslation  )
private

◆ MAXON_OPERATOR_MOVE_ASSIGNMENT()

MAXON_OPERATOR_MOVE_ASSIGNMENT ( DescTranslation  )

◆ FindTranslationDescID()

const DescEntryStruct* FindTranslationDescID ( const DescID id) const

Finds the translation structure matching the given DescID.

Note
Would be best to have a reverse HashMap<BaseArray<InternedId>, DescID> for a fast reverse mapping, when we can edit DescTranslation content.
Parameters
[in]idThe description identifier to search for.
Returns
Entry pointer on success, nullptr otherwise.

◆ ReverseFindTranslationDescID()

const DescEntryMap::Entry* ReverseFindTranslationDescID ( const Block< const InternedId > &  emulKey) const

Finds the legacy DescID corresponding to the given identifier. This is a reverse search in regards of FindTranslationDescID;

Parameters
[in]emulKeyThe emulation key to search for.
Returns
Entry pointer on success, nullptr otherwise.

Member Data Documentation

◆ _descIdMap

DescEntryMap _descIdMap

◆ _groupIdMap

GroupIdMap _groupIdMap