LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
Lima::LinguisticProcessing::Automaton::EntityFeature Class Reference

a generic feature that is defined by a name and a value, which can be of any type (use boost::any type) More...

#include <linguisticProcessing/core/Automaton/EntityFeatures.h>

Public Member Functions

 EntityFeature ()
template<typename ValueType>
 EntityFeature (const std::string &name, const ValueType &value)
 ~EntityFeature ()
bool operator== (const EntityFeature &f) const
bool operator== (const std::string &name) const
void setName (const std::string &name)
void setValue (const boost::any &val)
const std::string & getName () const
const boost::any & getValue () const
boost::any getValue ()
void setPosition (const uint64_t &pos)
void setLength (const uint64_t &val)
uint64_t getPosition () const
uint64_t getLength () const
std::string getValueString () const
LimaString getValueLimaString () const

Detailed Description

a generic feature that is defined by a name and a value, which can be of any type (use boost::any type)

Definition at line 44 of file EntityFeatures.h.

Constructor & Destructor Documentation

◆ EntityFeature() [1/2]

Lima::LinguisticProcessing::Automaton::EntityFeature::EntityFeature ( )

Definition at line 34 of file EntityFeatures.cpp.

◆ EntityFeature() [2/2]

template<typename ValueType>
Lima::LinguisticProcessing::Automaton::EntityFeature::EntityFeature ( const std::string & name,
const ValueType & value )
inline

Definition at line 48 of file EntityFeatures.h.

◆ ~EntityFeature()

Lima::LinguisticProcessing::Automaton::EntityFeature::~EntityFeature ( )

Definition at line 41 of file EntityFeatures.cpp.

Member Function Documentation

◆ getLength()

uint64_t Lima::LinguisticProcessing::Automaton::EntityFeature::getLength ( ) const
inline

Definition at line 69 of file EntityFeatures.h.

◆ getName()

const std::string & Lima::LinguisticProcessing::Automaton::EntityFeature::getName ( ) const
inline

Definition at line 62 of file EntityFeatures.h.

◆ getPosition()

uint64_t Lima::LinguisticProcessing::Automaton::EntityFeature::getPosition ( ) const
inline

Definition at line 68 of file EntityFeatures.h.

◆ getValue() [1/2]

boost::any Lima::LinguisticProcessing::Automaton::EntityFeature::getValue ( )
inline

Definition at line 64 of file EntityFeatures.h.

◆ getValue() [2/2]

const boost::any & Lima::LinguisticProcessing::Automaton::EntityFeature::getValue ( ) const
inline

Definition at line 63 of file EntityFeatures.h.

◆ getValueLimaString()

LimaString Lima::LinguisticProcessing::Automaton::EntityFeature::getValueLimaString ( ) const

Definition at line 113 of file EntityFeatures.cpp.

◆ getValueString()

std::string Lima::LinguisticProcessing::Automaton::EntityFeature::getValueString ( ) const

Definition at line 83 of file EntityFeatures.cpp.

◆ operator==() [1/2]

bool Lima::LinguisticProcessing::Automaton::EntityFeature::operator== ( const EntityFeature & f) const

Definition at line 49 of file EntityFeatures.cpp.

◆ operator==() [2/2]

bool Lima::LinguisticProcessing::Automaton::EntityFeature::operator== ( const std::string & name) const

Definition at line 44 of file EntityFeatures.cpp.

◆ setLength()

void Lima::LinguisticProcessing::Automaton::EntityFeature::setLength ( const uint64_t & val)
inline

Definition at line 67 of file EntityFeatures.h.

◆ setName()

void Lima::LinguisticProcessing::Automaton::EntityFeature::setName ( const std::string & name)
inline

Definition at line 59 of file EntityFeatures.h.

◆ setPosition()

void Lima::LinguisticProcessing::Automaton::EntityFeature::setPosition ( const uint64_t & pos)
inline

Definition at line 66 of file EntityFeatures.h.

◆ setValue()

void Lima::LinguisticProcessing::Automaton::EntityFeature::setValue ( const boost::any & val)
inline

Definition at line 60 of file EntityFeatures.h.


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