LibreOffice Module editeng (master) 1
Public Member Functions | Private Attributes | List of all members
editeng::Trie Class Referencefinal

#include <Trie.hxx>

Public Member Functions

 Trie ()
 
 ~Trie ()
 
void insert (std::u16string_view sInputString) const
 
void findSuggestions (std::u16string_view sWordPart, std::vector< OUString > &rSuggestionList) const
 
size_t size () const
 

Private Attributes

std::unique_ptr< TrieNodemRoot
 

Detailed Description

Definition at line 22 of file Trie.hxx.

Constructor & Destructor Documentation

◆ Trie()

editeng::Trie::Trie ( )

Definition at line 129 of file Trie.cxx.

◆ ~Trie()

editeng::Trie::~Trie ( )

Definition at line 133 of file Trie.cxx.

Member Function Documentation

◆ findSuggestions()

void editeng::Trie::findSuggestions ( std::u16string_view  sWordPart,
std::vector< OUString > &  rSuggestionList 
) const

Definition at line 166 of file Trie.cxx.

References editeng::TrieNode::collectSuggestions(), and mRoot.

◆ insert()

void editeng::Trie::insert ( std::u16string_view  sInputString) const

◆ size()

size_t editeng::Trie::size ( ) const

Definition at line 176 of file Trie.cxx.

References mRoot.

Member Data Documentation

◆ mRoot

std::unique_ptr<TrieNode> editeng::Trie::mRoot
private

Definition at line 25 of file Trie.hxx.

Referenced by findSuggestions(), insert(), and size().


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