LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
AnnotationGraph.h File Reference

A graph that stores any data (annotations) referencing primarily nodes of a text anlaysis. More...

#include "linguisticProcessing/LinguisticProcessingCommon.h"
#include "linguisticProcessing/common/annotationGraph/GenericAnnotation.h"
#include "common/Data/LimaString.h"
#include <vector>
#include <stdexcept>
#include <boost/graph/adjacency_list.hpp>
#include "common/misc/depth_first_searchnowarn.hpp"

Go to the source code of this file.

Namespaces

namespace  boost
 
namespace  Lima
 NAUTITIA.
 
namespace  Lima::Common
 
namespace  Lima::Common::AnnotationGraphs
 

Typedefs

typedef boost::property< boost::vertex_color_t, boost::default_color_type > AGVertexColorProperty
 Default color property to use in various algorithms.
 
typedef std::map< uint64_t, uint64_t > AGIannotProp
 Property to annotate vertices with integer values.
 
typedef boost::property< vertex_iannot_t, AGIannotProp, AGVertexColorProperty > AGVIannotProperty
 
typedef std::map< uint64_t, Lima::LimaString > AGSannotProp
 Property to annotate vertices with string values.
 
typedef boost::property< vertex_sannot_t, AGSannotProp, AGVIannotProperty > AGVSannotProperty
 
typedef std::map< uint64_t, Lima::Common::AnnotationGraphs::GenericAnnotation > AGGannotProp
 Property to annotate vertices with generic values.
 
typedef boost::property< vertex_gannot_t, AGGannotProp, AGVSannotProperty > AGVGannotProperty
 
typedef AGVGannotProperty AGVertexProperties
 Final declaration of the vertices properties.
 
typedef boost::property< edge_iannot_t, AGIannotProp > AGEIannotProperty
 
typedef boost::property< edge_sannot_t, AGSannotProp, AGEIannotProperty > AGESannotProperty
 
typedef boost::property< edge_gannot_t, AGGannotProp, AGESannotProperty > AGEGannotProperty
 
typedef AGEGannotProperty AGEdgeProperties
 Final declaration of the edges properties.
 
typedef boost::adjacency_list< boost::vecS, boost::vecS, boost::bidirectionalS, AGVertexProperties, AGEdgeProperties > AnnotationGraph
 The graph class.
 
typedef AnnotationGraph::edge_descriptor AnnotationGraphEdge
 
typedef AnnotationGraph::edge_iterator AnnotationGraphEdgeIt
 
typedef AnnotationGraph::out_edge_iterator AnnotationGraphOutEdgeIt
 
typedef AnnotationGraph::in_edge_iterator AnnotationGraphInEdgeIt
 
typedef AnnotationGraph::vertex_descriptor AnnotationGraphVertex
 
typedef AnnotationGraph::vertex_iterator AnnotationGraphVertexIt
 
typedef AnnotationGraph::adjacency_iterator AnnotationGraphAdjacencyIt
 
typedef boost::property_map< AnnotationGraph, edge_iannot_t >::type EdgeAGIannotPropertyMap
 
typedef boost::property_map< AnnotationGraph, edge_iannot_t >::const_type CEdgeAGIannotPropertyMap
 
typedef boost::property_map< AnnotationGraph, edge_sannot_t >::type EdgeAGSannotPropertyMap
 
typedef boost::property_map< AnnotationGraph, edge_sannot_t >::const_type CEdgeAGSannotPropertyMap
 
typedef boost::property_map< AnnotationGraph, edge_gannot_t >::type EdgeAGGannotPropertyMap
 
typedef boost::property_map< AnnotationGraph, edge_gannot_t >::const_type CEdgeAGGannotPropertyMap
 
typedef boost::property_map< AnnotationGraph, vertex_iannot_t >::type VertexAGIannotPropertyMap
 
typedef boost::property_map< AnnotationGraph, vertex_iannot_t >::const_type CVertexAGIannotPropertyMap
 
typedef boost::property_map< AnnotationGraph, vertex_sannot_t >::type VertexAGSannotPropertyMap
 
typedef boost::property_map< AnnotationGraph, vertex_sannot_t >::const_type CVertexAGSannotPropertyMap
 
typedef boost::property_map< AnnotationGraph, vertex_gannot_t >::type VertexAGGannotPropertyMap
 
typedef boost::property_map< AnnotationGraph, vertex_gannot_t >::const_type CVertexAGGannotPropertyMap
 
typedef boost::property_map< AnnotationGraph, boost::vertex_color_t >::type AGVertexColorPropertyMap
 

Enumerations

enum  vertex_iannot_t { vertex_iannot }
 
enum  vertex_sannot_t { vertex_sannot }
 
enum  vertex_gannot_t { vertex_gannot }
 
enum  edge_iannot_t { edge_iannot }
 
enum  edge_sannot_t { edge_sannot }
 
enum  edge_gannot_t { edge_gannot }
 

Functions

 boost::BOOST_INSTALL_PROPERTY (vertex, iannot)
 
 boost::BOOST_INSTALL_PROPERTY (vertex, sannot)
 
 boost::BOOST_INSTALL_PROPERTY (vertex, gannot)
 
 boost::BOOST_INSTALL_PROPERTY (edge, iannot)
 
 boost::BOOST_INSTALL_PROPERTY (edge, sannot)
 
 boost::BOOST_INSTALL_PROPERTY (edge, gannot)
 
LIMA_ANNOTATIONGRAPH_EXPORT QDebug & Lima::Common::AnnotationGraphs::operator<< (QDebug &os, const AnnotationGraphEdge &e)
 

Detailed Description

A graph that stores any data (annotations) referencing primarily nodes of a text anlaysis.

Author
Gael de Chalendar Gael..nosp@m.de-C.nosp@m.halen.nosp@m.dar@.nosp@m.cea.f.nosp@m.r
         Copyright (c) 2004 by CEA
Date
Created on Nov, 8 2004
Version
$Id$

Definition in file AnnotationGraph.h.

Typedef Documentation

◆ AGEdgeProperties

Final declaration of the edges properties.

Definition at line 80 of file AnnotationGraph.h.

◆ AGEGannotProperty

Definition at line 75 of file AnnotationGraph.h.

◆ AGEIannotProperty

typedef boost::property< edge_iannot_t, AGIannotProp > AGEIannotProperty

Definition at line 63 of file AnnotationGraph.h.

◆ AGESannotProperty

Definition at line 69 of file AnnotationGraph.h.

◆ AGGannotProp

Property to annotate vertices with generic values.

Property to annotate edges with generic values.

Definition at line 48 of file AnnotationGraph.h.

◆ AGIannotProp

typedef std::map< uint64_t, uint64_t > AGIannotProp

Property to annotate vertices with integer values.

Property to annotate edges with integer values.

Definition at line 36 of file AnnotationGraph.h.

◆ AGSannotProp

typedef std::map< uint64_t, Lima::LimaString > AGSannotProp

Property to annotate vertices with string values.

Property to annotate edges with string values.

Definition at line 42 of file AnnotationGraph.h.

◆ AGVertexColorProperty

typedef boost::property<boost::vertex_color_t, boost::default_color_type> AGVertexColorProperty

Default color property to use in various algorithms.

Definition at line 33 of file AnnotationGraph.h.

◆ AGVertexProperties

Final declaration of the vertices properties.

Definition at line 54 of file AnnotationGraph.h.

◆ AGVGannotProperty

Definition at line 50 of file AnnotationGraph.h.

◆ AGVIannotProperty

Definition at line 38 of file AnnotationGraph.h.

◆ AGVSannotProperty

Definition at line 44 of file AnnotationGraph.h.

◆ AnnotationGraph

typedef boost::adjacency_list< boost::vecS, boost::vecS, boost::bidirectionalS, AGVertexProperties, AGEdgeProperties > AnnotationGraph

The graph class.

It uses vecS for edges and vertices in order to have quick acces to specific indices in the vertices and edges lists

Definition at line 88 of file AnnotationGraph.h.

Enumeration Type Documentation

◆ edge_gannot_t

Enumerator
edge_gannot 

Definition at line 74 of file AnnotationGraph.h.

◆ edge_iannot_t

Enumerator
edge_iannot 

Definition at line 62 of file AnnotationGraph.h.

◆ edge_sannot_t

Enumerator
edge_sannot 

Definition at line 68 of file AnnotationGraph.h.

◆ vertex_gannot_t

Enumerator
vertex_gannot 

Definition at line 49 of file AnnotationGraph.h.

◆ vertex_iannot_t

Enumerator
vertex_iannot 

Definition at line 37 of file AnnotationGraph.h.

◆ vertex_sannot_t

Enumerator
vertex_sannot 

Definition at line 43 of file AnnotationGraph.h.