DescTranslation Class Reference

#include <desctranslation.h>

Public Types

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

Public Member Functions

 DescTranslation ()
 
Result< void > CopyFrom (const DescTranslation &src)
 
const DescEntryStructFindTranslationDescID (const DescID &id) const
 
const DescEntryMap::Entry * ReverseFindTranslationDescID (const Block< const InternedId > &emulKey) const
 

Public Attributes

DescEntryMap _descIdMap
 
GroupIdMap _groupIdMap
 
HashSet< InternedId_conditionalIds
 

Member Typedef Documentation

◆ DescEntryMap

◆ GroupIdMap

Constructor & Destructor Documentation

◆ DescTranslation()

Member Function Documentation

◆ CopyFrom()

Result<void> CopyFrom ( const DescTranslation src)

◆ 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

◆ _conditionalIds

HashSet<InternedId> _conditionalIds