LibreOffice Module sw (master) 1
Public Member Functions | Private Attributes | List of all members
SwHashTable< T > Class Template Reference

T should be a subclass of SwHash. More...

#include <calc.hxx>

Inheritance diagram for SwHashTable< T >:
[legend]

Public Member Functions

 SwHashTable (size_t nSize)
 
std::unique_ptr< T > & operator[] (size_t idx)
 
std::unique_ptr< T > const & operator[] (size_t idx) const
 
void resize (size_t nSize)
 
T * Find (std::u16string_view aStr, sal_uInt32 *pPos=nullptr) const
 

Private Attributes

std::vector< std::unique_ptr< T > > m_aData
 

Detailed Description

template<class T>
class SwHashTable< T >

T should be a subclass of SwHash.

Definition at line 153 of file calc.hxx.

Constructor & Destructor Documentation

◆ SwHashTable()

template<class T >
SwHashTable< T >::SwHashTable ( size_t  nSize)
inline

Definition at line 157 of file calc.hxx.

References SAL_MAX_UINT32.

Member Function Documentation

◆ Find()

template<class T >
T * SwHashTable< T >::Find ( std::u16string_view  aStr,
sal_uInt32 *  pPos = nullptr 
) const
inline

◆ operator[]() [1/2]

template<class T >
std::unique_ptr< T > & SwHashTable< T >::operator[] ( size_t  idx)
inline

Definition at line 161 of file calc.hxx.

References idx, and SwHashTable< T >::m_aData.

◆ operator[]() [2/2]

template<class T >
std::unique_ptr< T > const & SwHashTable< T >::operator[] ( size_t  idx) const
inline

Definition at line 162 of file calc.hxx.

References idx, and SwHashTable< T >::m_aData.

◆ resize()

template<class T >
void SwHashTable< T >::resize ( size_t  nSize)
inline

Definition at line 163 of file calc.hxx.

References SwHashTable< T >::m_aData.

Referenced by sw::DocumentFieldsManager::FieldsToExpand().

Member Data Documentation

◆ m_aData

template<class T >
std::vector<std::unique_ptr<T> > SwHashTable< T >::m_aData
private

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