#include <link_map.h>
Public Member Functions | |
| bool | Load (FILE *a_fp, CConceptMap &a_conceptMap) |
| Loads the contents of the map from a previously opened file. | |
| bool | Save (FILE *a_fp) |
| Saves the contents of the map to a previously opened file. | |
| bool | FindPathTo (const SemanticID a_dstID, CFindPathConfig &a_config) |
| Utility function used by the 'Find Path from A to B' search. | |
| CSemanticLinkMap_i | GetIterator () |
| Gets an iterator pointing to the first link within the map. | |
| CSemanticLink * | GetNext (CSemanticLinkMap_i &a_iter) |
| Gets a link from the map using an iterator. | |
| CSemanticLink * | Lookup (const SemanticID a_id) |
| Search for a specific semantic link in the map using a numeric ID. | |
| void | Store (CSemanticLink *a_link) |
| Stores a semantic link in the map. | |
| void | Remove (const SemanticID a_id) |
| Removes a specific semantic link from the map using a numeric ID. | |
| u_int | GetSize () const |
| Gets the number of links in the map. | |
| CLinkMap () | |
| Constructor. | |
| ~CLinkMap () | |
| Destructor. | |
Private Attributes | |
| CSemanticLinkMap | m_linkMap |
| STL map of semantic links. | |
Definition at line 42 of file link_map.h.
|
|
Constructor.
Definition at line 127 of file link_map.h. |
|
|
Destructor.
Definition at line 130 of file link_map.h. |
|
||||||||||||
|
Utility function used by the 'Find Path from A to B' search.
Definition at line 27 of file link_map.cpp. References CSemanticLinkMap_i, DPRINT, m_linkMap, and CFindPathConfig::VisitNode(). |
Here is the call graph for this function:

|
|
Gets an iterator pointing to the first link within the map.
Definition at line 79 of file link_map.h. References CSemanticLinkMap_i, and m_linkMap. Referenced by CAnalogousWeightNode::GetLinkIterator(), COMCSNet::p_AnalogousProcessBackwardLinkMap(), COMCSNet::p_AnalogousProcessLinkMap(), and COMCSNet::p_FindContextProcessLinkMap(). |
|
|
Gets a link from the map using an iterator.
Definition at line 85 of file link_map.h. References m_linkMap. Referenced by CAnalogousWeightNode::GetLink(), COMCSNet::p_AnalogousProcessBackwardLinkMap(), COMCSNet::p_AnalogousProcessLinkMap(), and COMCSNet::p_FindContextProcessLinkMap(). |
|
|
Gets the number of links in the map.
Definition at line 121 of file link_map.h. References m_linkMap. Referenced by COMCSNet::LoadPredicateFile(). |
|
||||||||||||
|
Loads the contents of the map from a previously opened file.
Definition at line 70 of file link_map.cpp. References CSemanticLink::Load(), and Store(). Referenced by COMCSNet::Load(). |
Here is the call graph for this function:

|
|
Search for a specific semantic link in the map using a numeric ID.
Definition at line 100 of file link_map.h. References CSemanticLinkMap_i, and m_linkMap. |
|
|
Removes a specific semantic link from the map using a numeric ID.
Definition at line 45 of file link_map.cpp. References CSemanticLinkMap_i, and m_linkMap. |
|
|
Saves the contents of the map to a previously opened file.
Definition at line 50 of file link_map.h. References CSemanticLinkMap_i, and m_linkMap. Referenced by COMCSNet::Save(). |
|
|
Stores a semantic link in the map.
Definition at line 57 of file link_map.cpp. References CSemanticLinkMap_i, CSemanticLink::GetID(), and m_linkMap. Referenced by CSemanticConcept::AddBackwardLink(), CAnalogousWeightNode::AddLink(), CSemanticConcept::AddLink(), CPredicateDecoder::DecodePredicateText(), and Load(). |
Here is the call graph for this function:

|
|
STL map of semantic links.
Definition at line 134 of file link_map.h. Referenced by FindPathTo(), GetIterator(), GetNext(), GetSize(), Lookup(), Remove(), Save(), and Store(). |
1.3.3