#include <Trie.h>
Public Member Functions | |
void | clear () |
clear the content of trie More... | |
void | display (std::ostream &os) |
display content of trie in output stream More... | |
const T & | find (std::string const &str) const |
get an entry in the Trie More... | |
const T & | find (const char *str, unsigned strLen) const |
const TrieNode< T > * | initialNode () const |
get initial TrieNode More... | |
void | insert (std::string const &str, const T &value) |
void | insert (const char *str, unsigned strLen, const T &value) |
const TrieNode< T > * | node (std::string const &str) const |
get node matching a string More... | |
const TrieNode< T > * | node (const char *str, unsigned strLen) const |
void | setEntry (std::string const &str, const T &value) |
void | setEntry (const char *str, unsigned strLen, const T &value) |
Trie (const T &empty) | |
~Trie () | |
Private Member Functions | |
TrieNode< T > * | _addEntry (const char *str, unsigned strLen) |
Trie & | operator= (const Trie &e) |
avoid affectation operator More... | |
Trie () | |
avoid default constructor More... | |
Trie (const Trie &e) | |
avoid copy constructor More... | |
Private Attributes | |
T | _empty |
value returned when no match is found in trie More... | |
TrieFactory< T > * | _factory |
factory More... | |
TrieNode< T > * | _initialNode |
first node of trie More... | |
Implement a trie in memory with the smallest structure as possible (use few RAM as possible)
constuctor, empty is the value returned when no match in found in trie
Definition at line 555 of file Trie.h.
References edm::Trie< T >::_empty, edm::Trie< T >::_factory, and edm::Trie< T >::_initialNode.
|
private |
Definition at line 582 of file Trie.h.
References edm::Trie< T >::_empty, edm::Trie< T >::_factory, edm::Trie< T >::_initialNode, edm::TrieNode< T >::addSubNode(), runEdmFileComparison::found, i, edm::Trie< T >::node(), and edm::TrieNode< T >::subNodeByLabel().
Referenced by edm::Trie< T >::insert(), and edm::Trie< T >::setEntry().
clear the content of trie
Definition at line 696 of file Trie.h.
References edm::Trie< T >::_empty, edm::Trie< T >::_factory, and edm::Trie< T >::_initialNode.
Referenced by Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), BeautifulSoup.Tag::setString(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and Vispa.Views.PropertyView.PropertyView::updateContent().
display content of trie in output stream
Definition at line 703 of file Trie.h.
References edm::Trie< T >::_initialNode.
get an entry in the Trie
Definition at line 636 of file Trie.h.
Referenced by BeautifulSoup.Tag::__getattr__(), and BeautifulSoup.Tag::firstText().
Definition at line 641 of file Trie.h.
References edm::Trie< T >::_empty, edm::Trie< T >::_initialNode, runEdmFileComparison::found, edm::Trie< T >::node(), edm::TrieNode< T >::subNodeByLabel(), and edm::TrieNode< T >::value().
Referenced by BeautifulSoup.Tag::__getattr__(), and BeautifulSoup.Tag::firstText().
const edm::TrieNode< T > * edm::Trie< T >::initialNode | ( | ) | const |
get initial TrieNode
Definition at line 690 of file Trie.h.
References edm::Trie< T >::_initialNode.
add an entry in the Trie, if entry already exist an exception is throw
Definition at line 619 of file Trie.h.
References relativeConstraints::value.
Referenced by BeautifulSoup.PageElement::append().
void edm::Trie< T >::insert | ( | const char * | str, |
unsigned | strLen, | ||
const T & | value | ||
) |
Definition at line 625 of file Trie.h.
References edm::Trie< T >::_addEntry(), edm::Trie< T >::_empty, edm::detailsTrie::errorInsert(), edm::Trie< T >::node(), edm::TrieNode< T >::setValue(), AlCaHLTBitMon_QueryRunRegistry::string, and edm::TrieNode< T >::value().
Referenced by BeautifulSoup.PageElement::append().
edm::TrieNode< T > const * edm::Trie< T >::node | ( | std::string const & | str | ) | const |
get node matching a string
Definition at line 664 of file Trie.h.
Referenced by edm::Trie< T >::_addEntry(), edm::Trie< T >::find(), edm::Trie< T >::insert(), edm::Trie< T >::node(), and edm::Trie< T >::setEntry().
edm::TrieNode< T > const * edm::Trie< T >::node | ( | const char * | str, |
unsigned | strLen | ||
) | const |
Definition at line 670 of file Trie.h.
References edm::Trie< T >::_initialNode, runEdmFileComparison::found, edm::Trie< T >::node(), and edm::TrieNode< T >::subNodeByLabel().
avoid affectation operator
associates a value to a string, if string is already in Trie, value is overwriten
Definition at line 570 of file Trie.h.
References relativeConstraints::value.
void edm::Trie< T >::setEntry | ( | const char * | str, |
unsigned | strLen, | ||
const T & | value | ||
) |
Definition at line 575 of file Trie.h.
References edm::Trie< T >::_addEntry(), edm::Trie< T >::node(), and edm::TrieNode< T >::setValue().
value returned when no match is found in trie
Definition at line 222 of file Trie.h.
Referenced by edm::Trie< T >::_addEntry(), edm::Trie< T >::clear(), edm::Trie< T >::find(), edm::Trie< T >::insert(), and edm::Trie< T >::Trie().
|
private |
factory
Definition at line 224 of file Trie.h.
Referenced by edm::Trie< T >::_addEntry(), edm::Trie< T >::clear(), edm::Trie< T >::Trie(), and edm::Trie< T >::~Trie().
first node of trie
Definition at line 226 of file Trie.h.
Referenced by edm::Trie< T >::_addEntry(), edm::Trie< T >::clear(), edm::Trie< T >::display(), edm::Trie< T >::find(), edm::Trie< T >::initialNode(), edm::Trie< T >::node(), and edm::Trie< T >::Trie().