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

An element of a Path (out of chain vertex or candidate chain) More...

#include <linguisticProcessing/core/SyntacticAnalysis/ChainsDisambiguator.h>

Public Member Functions

 Elem (uint64_t id, unsigned char type=0)
 
 Elem (const Elem &elem)
 
virtual ~Elem ()
 
Elem & operator= (const Elem &elem)
 
uint64_t id () const
 Accessor to the vertex or chain id.
 
unsigned char type () const
 Accessor to the type of this elem: vertex or chain.
 
const std::vector< uint64_t > & elems () const
 Const accessor to the subelements collection.
 
std::vector< uint64_t > & elems ()
 Non const accessor to the subelements collection.
 

Detailed Description

An element of a Path (out of chain vertex or candidate chain)

Can be either a vertex or a subchain defined by its vertices

Definition at line 46 of file ChainsDisambiguator.h.

Constructor & Destructor Documentation

◆ Elem() [1/2]

Lima::LinguisticProcessing::SyntacticAnalysis::Elem::Elem ( uint64_t  id,
unsigned char  type = 0 
)
inline

Definition at line 49 of file ChainsDisambiguator.h.

◆ Elem() [2/2]

Lima::LinguisticProcessing::SyntacticAnalysis::Elem::Elem ( const Elem &  elem)
inline

Definition at line 50 of file ChainsDisambiguator.h.

◆ ~Elem()

virtual Lima::LinguisticProcessing::SyntacticAnalysis::Elem::~Elem ( )
inlinevirtual

Definition at line 51 of file ChainsDisambiguator.h.

Member Function Documentation

◆ elems() [1/2]

std::vector< uint64_t > & Lima::LinguisticProcessing::SyntacticAnalysis::Elem::elems ( )
inline

Non const accessor to the subelements collection.

Returns
the elements of the subchain ; empty for a vertex element

Definition at line 72 of file ChainsDisambiguator.h.

◆ elems() [2/2]

const std::vector< uint64_t > & Lima::LinguisticProcessing::SyntacticAnalysis::Elem::elems ( ) const
inline

Const accessor to the subelements collection.

Returns
the elements of the subchain ; empty for a vertex element

Definition at line 67 of file ChainsDisambiguator.h.

◆ id()

uint64_t Lima::LinguisticProcessing::SyntacticAnalysis::Elem::id ( ) const
inline

Accessor to the vertex or chain id.

Returns
the vertex or chain id

Definition at line 57 of file ChainsDisambiguator.h.

◆ operator=()

Elem & Lima::LinguisticProcessing::SyntacticAnalysis::Elem::operator= ( const Elem &  elem)

Definition at line 892 of file ChainsDisambiguator.cpp.

◆ type()

unsigned char Lima::LinguisticProcessing::SyntacticAnalysis::Elem::type ( ) const
inline

Accessor to the type of this elem: vertex or chain.

Returns
0 if vetex ; 1 if chain

Definition at line 62 of file ChainsDisambiguator.h.


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