LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
LC::Util::StringPathTrie< V > Class Template Reference

#include "stringpathtrie.h"

Classes

struct  FindResult
 

Public Member Functions

const std::optional< V > & GetValue () const
 
const StringPathTrieGetChild (QStringView view) const
 
template<StringViewContainer Cont>
void Add (Cont &&path, V value)
 
template<typename It , typename End >
void Add (It begin, End end, V value)
 
FindResult Find (QStringView single) const
 
template<StringViewContainer Cont>
FindResult Find (Cont &&path) const
 
template<typename It , typename End >
FindResult Find (It begin, End end) const
 

Detailed Description

template<typename V>
class LC::Util::StringPathTrie< V >

Definition at line 30 of file stringpathtrie.h.

Member Function Documentation

◆ Add() [1/2]

template<typename V >
template<StringViewContainer Cont>
void LC::Util::StringPathTrie< V >::Add ( Cont &&  path,
value 
)
inline

Definition at line 52 of file stringpathtrie.h.

References Value_.

◆ Add() [2/2]

template<typename V >
template<typename It , typename End >
void LC::Util::StringPathTrie< V >::Add ( It  begin,
End  end,
value 
)
inline

Definition at line 58 of file stringpathtrie.h.

◆ Find() [1/3]

template<typename V >
template<StringViewContainer Cont>
FindResult LC::Util::StringPathTrie< V >::Find ( Cont &&  path) const
inline

Definition at line 94 of file stringpathtrie.h.

References LC::Util::StringPathTrie< V >::Find(), and Value_.

+ Here is the call graph for this function:

◆ Find() [2/3]

template<typename V >
template<typename It , typename End >
FindResult LC::Util::StringPathTrie< V >::Find ( It  begin,
End  end 
) const
inline

Definition at line 100 of file stringpathtrie.h.

References Value_.

◆ Find() [3/3]

template<typename V >
FindResult LC::Util::StringPathTrie< V >::Find ( QStringView  single) const
inline

Definition at line 87 of file stringpathtrie.h.

Referenced by LC::Util::AsRefs(), LC::Util::StringPathTrie< V >::Find(), and LC::Util::StringPathTrie< V >::FindResult::operator==().

+ Here is the caller graph for this function:

◆ GetChild()

template<typename V >
const StringPathTrie* LC::Util::StringPathTrie< V >::GetChild ( QStringView  view) const
inline

Definition at line 42 of file stringpathtrie.h.

◆ GetValue()

template<typename V >
const std::optional<V>& LC::Util::StringPathTrie< V >::GetValue ( ) const
inline

Definition at line 37 of file stringpathtrie.h.


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