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

#include <common/Data/DataTypes.h>

Public Member Functions

 Structure ()
 
 Structure (const Structure &s)
 
 Structure (STRUCT_ID structID)
 
Structure & operator= (const Structure &s)
 
 ~Structure ()
 destructeur: delete des 'Nodes' de contenu
 
void addNode (const Node &node)
 
void addNode (CONTENT_ID ContentId, const Node &node)
 
Node * getNode (CONTENT_ID ContentId)
 get a content node, given its identifiers
 
const Node * getNode (CONTENT_ID ContentId) const
 
Node * getFirstNode (STRUCT_ID)
 get a content node, given its identifiers
 
const Node * getFirstNode (STRUCT_ID) const
 
const std::map< CONTENT_ID, Node > & getNodes () const
 get all nodes of the current structure
 
std::map< CONTENT_ID, Node > & getNodes ()
 
STRUCT_ID getStructId () const
 
void setStructId (STRUCT_ID structId)
 

Detailed Description

Definition at line 138 of file DataTypes.h.

Constructor & Destructor Documentation

◆ Structure() [1/3]

Lima::Structure::Structure ( )

Definition at line 332 of file DataTypes.cpp.

◆ Structure() [2/3]

Lima::Structure::Structure ( const Structure &  s)

Definition at line 341 of file DataTypes.cpp.

◆ Structure() [3/3]

Lima::Structure::Structure ( STRUCT_ID  structID)

Definition at line 336 of file DataTypes.cpp.

◆ ~Structure()

Lima::Structure::~Structure ( )

destructeur: delete des 'Nodes' de contenu

Definition at line 360 of file DataTypes.cpp.

Member Function Documentation

◆ addNode() [1/2]

void Lima::Structure::addNode ( const Node &  node)

Definition at line 365 of file DataTypes.cpp.

◆ addNode() [2/2]

void Lima::Structure::addNode ( CONTENT_ID  ContentId,
const Node &  node 
)

Definition at line 370 of file DataTypes.cpp.

◆ getFirstNode() [1/2]

Node * Lima::Structure::getFirstNode ( STRUCT_ID  StructureId)

get a content node, given its identifiers

Returns
a content node

Definition at line 404 of file DataTypes.cpp.

◆ getFirstNode() [2/2]

const Node * Lima::Structure::getFirstNode ( STRUCT_ID  StructureId) const

Definition at line 418 of file DataTypes.cpp.

◆ getNode() [1/2]

Node * Lima::Structure::getNode ( CONTENT_ID  ContentId)

get a content node, given its identifiers

Parameters
ContentIdcontent identifier (different for each type)
Returns
a content node

Definition at line 375 of file DataTypes.cpp.

◆ getNode() [2/2]

const Node * Lima::Structure::getNode ( CONTENT_ID  ContentId) const

Definition at line 382 of file DataTypes.cpp.

◆ getNodes() [1/2]

map< CONTENT_ID, Node > & Lima::Structure::getNodes ( )

Definition at line 394 of file DataTypes.cpp.

◆ getNodes() [2/2]

const map< CONTENT_ID, Node > & Lima::Structure::getNodes ( ) const

get all nodes of the current structure

Returns
the set of all nodes of the current structure

Definition at line 389 of file DataTypes.cpp.

◆ getStructId()

STRUCT_ID Lima::Structure::getStructId ( ) const

Definition at line 399 of file DataTypes.cpp.

◆ operator=()

Structure & Lima::Structure::operator= ( const Structure &  s)

Definition at line 346 of file DataTypes.cpp.

◆ setStructId()

void Lima::Structure::setStructId ( STRUCT_ID  structId)

Definition at line 480 of file DataTypes.cpp.


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