mermaid::support::data::SemanticTree Class Reference

Class representing a semantic tree. More...

#include <SemanticTree.hpp>

Collaboration diagram for mermaid::support::data::SemanticTree:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool aContainsB (std::string a, std::string b)
 Checks if concept A is contained in concept B a Concept A b Concept B.
shared_ptr< SemanticNodegetRootNode ()
 Root node getter.
 SemanticTree (shared_ptr< SemanticNode > rootNode)
 Constructor.

Detailed Description

Class representing a semantic tree.

Todo:
restingir construção da arvore para apenas haver um nó por cada nome
Author:
Marco Barbosa + Nelson Ramos

Definition at line 54 of file SemanticTree.hpp.


Constructor & Destructor Documentation

SemanticTree::SemanticTree ( shared_ptr< SemanticNode rootNode  ) 

Constructor.

Default constructor of a SemanticTree. It doesn't return a valid SemanticTree. Constructor. It builds a semantic tree based on a root node.

Parameters:
rootNode The root node of the tree

Definition at line 42 of file SemanticTree.cpp.


Member Function Documentation

bool SemanticTree::aContainsB ( std::string  a,
std::string  b 
)

Checks if concept A is contained in concept B a Concept A b Concept B.

Returns:
TRUE if A is contained in B, FALSE otherwise

Definition at line 54 of file SemanticTree.cpp.

shared_ptr< SemanticNode > SemanticTree::getRootNode (  ) 

Root node getter.

Returns:
The tree's root node.

Definition at line 48 of file SemanticTree.cpp.

Generated on Fri Mar 4 22:15:46 2011 for MeRMaID::support by  doxygen 1.6.3