OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
MWDialogue::KeywordSearch< string_t, value_t > Class Template Reference

#include <keywordsearch.hpp>

Collaboration diagram for MWDialogue::KeywordSearch< string_t, value_t >:

Classes

struct  Entry
 
struct  Match
 

Public Types

typedef string_t::const_iterator Point
 

Public Member Functions

void seed (string_t keyword, value_t value)
 
void clear ()
 
bool containsKeyword (string_t keyword, value_t &value)
 
void highlightKeywords (Point beg, Point end, std::vector< Match > &out)
 

Static Public Member Functions

static bool sortMatches (const Match &left, const Match &right)
 

Private Member Functions

void seed_impl (string_t keyword, value_t value, size_t depth, Entry &entry)
 

Private Attributes

Entry mRoot
 

Member Typedef Documentation

template<typename string_t, typename value_t>
typedef string_t::const_iterator MWDialogue::KeywordSearch< string_t, value_t >::Point

Member Function Documentation

template<typename string_t, typename value_t>
void MWDialogue::KeywordSearch< string_t, value_t >::clear ( )
inline

Here is the caller graph for this function:

template<typename string_t, typename value_t>
bool MWDialogue::KeywordSearch< string_t, value_t >::containsKeyword ( string_t  keyword,
value_t &  value 
)
inline

Here is the caller graph for this function:

template<typename string_t, typename value_t>
void MWDialogue::KeywordSearch< string_t, value_t >::highlightKeywords ( Point  beg,
Point  end,
std::vector< Match > &  out 
)
inline

Here is the caller graph for this function:

template<typename string_t, typename value_t>
void MWDialogue::KeywordSearch< string_t, value_t >::seed ( string_t  keyword,
value_t  value 
)
inline

Here is the caller graph for this function:

template<typename string_t, typename value_t>
void MWDialogue::KeywordSearch< string_t, value_t >::seed_impl ( string_t  keyword,
value_t  value,
size_t  depth,
Entry entry 
)
inlineprivate

Here is the caller graph for this function:

template<typename string_t, typename value_t>
static bool MWDialogue::KeywordSearch< string_t, value_t >::sortMatches ( const Match left,
const Match right 
)
inlinestatic

Here is the caller graph for this function:

Member Data Documentation

template<typename string_t, typename value_t>
Entry MWDialogue::KeywordSearch< string_t, value_t >::mRoot
private

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