LibreOffice Module idl (master) 1
Public Member Functions | Private Attributes | List of all members
SvStringHashTable Class Reference

#include <hash.hxx>

Public Member Functions

SvStringHashEntryInsert (OString const &rElement, sal_uInt32 *pInsertPos)
 
bool Test (OString const &rElement, sal_uInt32 *pInsertPos)
 
SvStringHashEntryGet (sal_uInt32 nInsertPos) const
 
OString GetNearString (std::string_view rName) const
 

Private Attributes

std::unordered_map< sal_uInt32, std::unique_ptr< SvStringHashEntry > > maInt2EntryMap
 
std::unordered_map< OString, sal_uInt32 > maString2IntMap
 
sal_uInt32 mnNextId = 0
 

Detailed Description

Definition at line 46 of file hash.hxx.

Member Function Documentation

◆ Get()

SvStringHashEntry * SvStringHashTable::Get ( sal_uInt32  nInsertPos) const

Definition at line 48 of file hash.cxx.

References maInt2EntryMap.

◆ GetNearString()

OString SvStringHashTable::GetNearString ( std::string_view  rName) const

Definition at line 54 of file hash.cxx.

References maInt2EntryMap, and pE.

◆ Insert()

SvStringHashEntry * SvStringHashTable::Insert ( OString const &  rElement,
sal_uInt32 *  pInsertPos 
)

Definition at line 24 of file hash.cxx.

References maInt2EntryMap, maString2IntMap, and mnNextId.

◆ Test()

bool SvStringHashTable::Test ( OString const &  rElement,
sal_uInt32 *  pInsertPos 
)

Definition at line 38 of file hash.cxx.

References maString2IntMap.

Member Data Documentation

◆ maInt2EntryMap

std::unordered_map<sal_uInt32, std::unique_ptr<SvStringHashEntry> > SvStringHashTable::maInt2EntryMap
private

Definition at line 48 of file hash.hxx.

Referenced by Get(), GetNearString(), and Insert().

◆ maString2IntMap

std::unordered_map<OString, sal_uInt32> SvStringHashTable::maString2IntMap
private

Definition at line 49 of file hash.hxx.

Referenced by Insert(), and Test().

◆ mnNextId

sal_uInt32 SvStringHashTable::mnNextId = 0
private

Definition at line 50 of file hash.hxx.

Referenced by Insert().


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