Class representing a semantic tree. More...
#include <SemanticTree.hpp>
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< SemanticNode > | getRootNode () |
Root node getter. | |
SemanticTree (shared_ptr< SemanticNode > rootNode) | |
Constructor. |
Class representing a semantic tree.
Definition at line 54 of file SemanticTree.hpp.
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.
rootNode | The root node of the tree |
Definition at line 42 of file SemanticTree.cpp.
bool SemanticTree::aContainsB | ( | std::string | a, | |
std::string | b | |||
) |
Checks if concept A is contained in concept B a Concept A b Concept B.
Definition at line 54 of file SemanticTree.cpp.
shared_ptr< SemanticNode > SemanticTree::getRootNode | ( | ) |