#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 (const char *str, unsigned strLen) const |
const T & | find (std::string const &str) const |
get an entry in the Trie More... | |
const TrieNode< T > * | initialNode () const |
get initial TrieNode More... | |
void | insert (const char *str, unsigned strLen, const T &value) |
void | insert (std::string const &str, const T &value) |
const TrieNode< T > * | node (const char *str, unsigned strLen) const |
const TrieNode< T > * | node (std::string const &str) const |
get node matching a string More... | |
void | setEntry (const char *str, unsigned strLen, const T &value) |
void | setEntry (std::string const &str, const T &value) |
Trie (const T &empty) | |
~Trie () | |
Private Member Functions | |
TrieNode< T > * | _addEntry (const char *str, unsigned strLen) |
Trie & | operator= (const Trie &e)=delete |
avoid affectation operator More... | |
Trie ()=delete | |
avoid default constructor More... | |
Trie (const Trie &e)=delete | |
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 492 of file Trie.h.
References edm::Trie< T >::_empty, edm::Trie< T >::_factory, and edm::Trie< T >::_initialNode.
avoid copy constructor
|
private |
Definition at line 514 of file Trie.h.
References edm::TrieNode< T >::addSubNode(), cms::cuda::assert(), newFWLiteAna::found, mps_fire::i, callgraph::previous, str, and edm::TrieNode< T >::subNodeByLabel().
clear the content of trie
Definition at line 611 of file Trie.h.
Referenced by BeautifulSoup.Tag::setString().
display content of trie in output stream
Definition at line 565 of file Trie.h.
References newFWLiteAna::found, str, edm::TrieNode< T >::subNodeByLabel(), and edm::TrieNode< T >::value().
Referenced by BeautifulSoup.Tag::__getattr__(), and BeautifulSoup.Tag::firstText().
get an entry in the Trie
Definition at line 560 of file Trie.h.
References spr::find(), and str.
Referenced by BeautifulSoup.Tag::__getattr__(), and BeautifulSoup.Tag::firstText().
const edm::TrieNode< T > * edm::Trie< T >::initialNode | ( | ) | const |
void edm::Trie< T >::insert | ( | const char * | str, |
unsigned | strLen, | ||
const T & | value | ||
) |
Definition at line 550 of file Trie.h.
References edm::detailsTrie::errorInsert(), edm::TrieNode< T >::setValue(), str, AlCaHLTBitMon_QueryRunRegistry::string, and edm::TrieNode< T >::value().
Referenced by BeautifulSoup.PageElement::append().
add an entry in the Trie, if entry already exist an exception is throw
Definition at line 545 of file Trie.h.
References edm::eventsetup::heterocontainer::insert(), str, and relativeConstraints::value.
Referenced by BeautifulSoup.PageElement::append().
const edm::TrieNode< T > * edm::Trie< T >::node | ( | const char * | str, |
unsigned | strLen | ||
) | const |
Definition at line 589 of file Trie.h.
References newFWLiteAna::found, str, and edm::TrieNode< T >::subNodeByLabel().
const edm::TrieNode< T > * edm::Trie< T >::node | ( | std::string const & | str | ) | const |
avoid affectation operator
value returned when no match is found in trie
Definition at line 210 of file Trie.h.
Referenced by edm::Trie< T >::Trie().
|
private |