Tanl Linguistic Pipeline

Tanl::Text::WordSetBase< _Hash, _Pred > Class Template Reference

Inheritance diagram for Tanl::Text::WordSetBase< _Hash, _Pred >:
Tanl::unordered_set< const char *, _Hash, _Pred >

List of all members.

Public Member Functions

 WordSetBase (char const *file)
 Load from file containing one word per line.
 WordSetBase (std::string &file)
void clear ()
bool contains (char const *word)
 Test for the presence of word word in the set.
bool contains (std::string const &word)
 Test for the presence of word word in the set.
std::pair< typename
_Base::iterator, bool > 
insert (const char *word)
 Ensure we have our own copy of words.
void store (char const *file)
 Store to file: one word per line.
void load (char const *file)
 Load from file: one word per line.

Protected Types

typedef unordered_set< const
char *, _Hash, _Pred > 
_Base

Protected Member Functions

void load (std::ifstream &ifs)

template<class _Hash = hash<const char *>, class _Pred = std::equal_to<const char*>>
class Tanl::Text::WordSetBase< _Hash, _Pred >


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
 
Copyright © 2005-2011 G. Attardi. Generated on 4 Mar 2011 by doxygen 1.6.1.