#include <concept.h>
Collaboration diagram for CSemanticConcept:

Public Member Functions | |
| bool | Load (FILE *a_fp, CTextIDMap &a_idMap) |
| Loads the concept from an open file. | |
| bool | Save (FILE *a_fp) |
| Saves the concept to an open file. | |
| std::string | GetName () const |
| Gets the concept name. | |
| bool | FindPathTo (const SemanticID a_dstID, CFindPathConfig &a_config) |
| Finds all paths to a particular destination concept. | |
| SemanticID | GetID () const |
| Gets the concept ID. | |
| void | AddLink (CSemanticLink *a_link, const RelationType a_relation) |
| Adds a forward link to another concept. | |
| CLinkMap * | GetLinks (const RelationType a_relation) |
| Gets a link map for a particular type of forward relation. | |
| void | AddBackwardLink (CSemanticLink *a_link, const RelationType a_relation) |
| Adds a backward link to another concept. | |
| CLinkMap * | GetBackwardLinks (const RelationType a_relation) |
| Gets a backward link map for a particular relation type. | |
| CSemanticConcept (const std::string &a_name, CSemanticIDGenerator *a_idGen, CTextIDMap *a_idMap) | |
| Constructor. | |
| ~CSemanticConcept () | |
| Destructor. | |
Private Member Functions | |
| void | p_InitForwardLinks () |
| Initializes the forward links data structure. | |
| void | p_InitBackwardLinks () |
| Initializes the backward links data structure. | |
Private Attributes | |
| const std::string * | m_textualName |
| Textual name for this concept. | |
| SemanticID | m_conceptID |
| Numeric ID for this concept. | |
| CLinkMap ** | m_forwardLinks |
| Forward links. | |
| CLinkMap ** | m_backwardLinks |
| Backward links. | |
Definition at line 34 of file concept.h.
|
||||||||||||||||
|
Constructor.
Definition at line 180 of file concept.h. References CSemanticIDGenerator::Get(), m_backwardLinks, m_conceptID, m_forwardLinks, m_textualName, and CTextIDMap::Store(). |
Here is the call graph for this function:

|
|
Destructor.
Definition at line 203 of file concept.h. References m_backwardLinks, m_forwardLinks, and MAX_RELATIONS. |
|
||||||||||||
|
Adds a backward link to another concept.
Definition at line 150 of file concept.h. References m_backwardLinks, p_InitBackwardLinks(), and CLinkMap::Store(). Referenced by CPredicateDecoder::DecodePredicateText(), and CSemanticLink::Load(). |
Here is the call graph for this function:

|
||||||||||||
|
Adds a forward link to another concept.
Definition at line 121 of file concept.h. References m_forwardLinks, p_InitForwardLinks(), and CLinkMap::Store(). Referenced by CPredicateDecoder::DecodePredicateText(), and CSemanticLink::Load(). |
Here is the call graph for this function:

|
||||||||||||
|
Finds all paths to a particular destination concept.
Definition at line 24 of file concept.cpp. References DPRINT, GetID(), CFindPathConfig::LeaveNode(), m_forwardLinks, m_textualName, MAX_RELATIONS, and CFindPathConfig::VisitNode(). Referenced by COMCSNet::FindPathFromA_To_B(). |
Here is the call graph for this function:

|
|
Gets a backward link map for a particular relation type.
Definition at line 168 of file concept.h. References m_backwardLinks. Referenced by COMCSNet::p_AnalogousProcessLink(). |
|
|
Gets the concept ID.
Definition at line 115 of file concept.h. References m_conceptID, and SemanticID. Referenced by CPredicateDecoder::DecodePredicateText(), COMCSNet::FindContext(), COMCSNet::FindPathFromA_To_B(), CSemanticLink::FindPathTo(), FindPathTo(), CSemanticLink::SetDest(), CSemanticLink::SetSource(), and CConceptMap::Store(). |
|
|
Gets a link map for a particular type of forward relation.
Definition at line 139 of file concept.h. References m_forwardLinks. Referenced by COMCSNet::FindAnalogous(), and COMCSNet::FindContext(). |
|
|
Gets the concept name.
Definition at line 100 of file concept.h. References m_textualName. Referenced by COMCSNet::LookupString(), and COMCSNet::p_AnalogousProcessBackwardLink(). |
|
||||||||||||
|
Loads the concept from an open file.
Definition at line 38 of file concept.h. References m_conceptID, m_textualName, SemanticID, and CTextIDMap::Store(). Referenced by CConceptMap::Load(). |
Here is the call graph for this function:

|
|
Initializes the backward links data structure.
Definition at line 248 of file concept.h. References m_backwardLinks, and MAX_RELATIONS. Referenced by AddBackwardLink(). |
|
|
Initializes the forward links data structure.
Definition at line 237 of file concept.h. References m_forwardLinks, and MAX_RELATIONS. Referenced by AddLink(). |
|
|
Saves the concept to an open file.
Definition at line 78 of file concept.h. References m_conceptID, m_textualName, and SemanticID. |
|
|
Backward links.
Definition at line 268 of file concept.h. Referenced by AddBackwardLink(), CSemanticConcept(), GetBackwardLinks(), p_InitBackwardLinks(), and ~CSemanticConcept(). |
|
|
Numeric ID for this concept.
Definition at line 262 of file concept.h. Referenced by CSemanticConcept(), GetID(), Load(), and Save(). |
|
|
Forward links.
Definition at line 265 of file concept.h. Referenced by AddLink(), CSemanticConcept(), FindPathTo(), GetLinks(), p_InitForwardLinks(), and ~CSemanticConcept(). |
|
|
Textual name for this concept.
Definition at line 259 of file concept.h. Referenced by CSemanticConcept(), FindPathTo(), GetName(), Load(), and Save(). |
1.3.3