ddc
|
Abstract API for term-expansion modules (e.g. thesauri, morphologies, equivalence maps, ...) More...
#include <TermExpander.h>
Public Member Functions | |
Constructors etc. | |
CTermExpander (const string &cls, const string &label, const string ¶m) | |
Full constructor (abstract base classes only) More... | |
CTermExpander (const string &label=string("NoLabel"), const string ¶m=string("")) | |
Default constructor, to be overridden by subclasses. More... | |
virtual CTermExpander * | mapClone (map< CTermExpander *, CTermExpander *> &xlate) const |
clone constructor, handles sub-object cloning according to xlate map */ More... | |
virtual CTermExpander * | clone (map< CTermExpander *, CTermExpander *> &xlate) const |
clone constructor to create a new expansion object (override this for derived classes) */ More... | |
virtual | ~CTermExpander (void) |
Default destructor. More... | |
virtual void | compile (void) |
set up object based on label and/or parameter string; default implementation does nothing More... | |
API | |
virtual string | configString (void) const |
String form of this expander. Default is m_Class + " " + m_Label + " " + m_Param. More... | |
virtual void | expand (const string &src, set< string > &dst) |
Expand a single term term to a set of terms dst. More... | |
virtual void | expand (const set< string > &src, set< string > &dst) |
Expand a set of terms src to a set of terms dst. More... | |
Public Attributes | |
string | m_Class |
class name for this expander More... | |
string | m_Label |
unique name for this expander More... | |
string | m_Param |
string argument(s) for this expander (parameters, for stringification) More... | |
Abstract API for term-expansion modules (e.g. thesauri, morphologies, equivalence maps, ...)
|
inline |
Full constructor (abstract base classes only)
Referenced by clone().
|
inline |
Default constructor, to be overridden by subclasses.
References mapClone().
|
inlinevirtual |
Default destructor.
|
virtual |
clone constructor, handles sub-object cloning according to xlate map */
References clone().
Referenced by CTermExpander().
|
inlinevirtual |
clone constructor to create a new expansion object (override this for derived classes) */
Reimplemented in TxCabMap, TxCab, TxCurl, TxCase, TxToUpper, TxToLower, TxMorph, TxLang, TxChain, and TxId.
References CTermExpander().
Referenced by mapClone(), TxChain::TxChain(), TxCab::~TxCab(), TxCabMap::~TxCabMap(), and TxCurl::~TxCurl().
|
inlinevirtual |
set up object based on label and/or parameter string; default implementation does nothing
Reimplemented in TxCab, and TxCurl.
References configString(), and expand().
Referenced by BxTermWrapper::compile(), TxDispatcher::ensureDefaultExpanders(), TxCab::~TxCab(), and TxCurl::~TxCurl().
|
virtual |
String form of this expander. Default is m_Class + " " + m_Label + " " + m_Param.
References m_Class, m_Label, and m_Param.
Referenced by compile(), TxDispatcher::configString(), and TxDispatcher::ensureDefaultExpanders().
|
virtual |
Expand a single term term to a set of terms dst.
Referenced by TxId::clone(), TxMorph::clone(), TxToLower::clone(), TxToUpper::clone(), TxCase::clone(), compile(), BxTermWrapper::expand(), TxCab::~TxCab(), and TxChain::~TxChain().
|
virtual |
string CTermExpander::m_Class |
class name for this expander
Referenced by CBiblIndex::AddBiblExpander(), TxDispatcher::addExpander(), TxChain::append(), TxCurl::clone(), configString(), expand(), and CDDCLeafServer::handle__info().
string CTermExpander::m_Label |
unique name for this expander
Referenced by TxChain::clone(), TxCurl::clone(), TxCab::clone(), TxCabMap::clone(), TxCab::compile(), configString(), expand(), CDDCLeafServer::handle__info(), and TxDispatcher::insert().
string CTermExpander::m_Param |
string argument(s) for this expander (parameters, for stringification)
Referenced by TxChain::clone(), TxCurl::clone(), TxCab::clone(), TxCabMap::clone(), TxCab::compile(), configString(), TxDispatcher::getChain(), CDDCLeafServer::handle__info(), and TxLang::setLanguage().