Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

CLinkMap Class Reference

Associative map of semantic links. More...

#include <link_map.h>

List of all members.

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.

CSemanticLinkGetNext (CSemanticLinkMap_i &a_iter)
 Gets a link from the map using an iterator.

CSemanticLinkLookup (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.


Detailed Description

Associative map of semantic links.

Definition at line 42 of file link_map.h.


Constructor & Destructor Documentation

CLinkMap::CLinkMap  )  [inline]
 

Constructor.

Definition at line 127 of file link_map.h.

CLinkMap::~CLinkMap  )  [inline]
 

Destructor.

Definition at line 130 of file link_map.h.


Member Function Documentation

bool CLinkMap::FindPathTo const SemanticID  a_dstID,
CFindPathConfig a_config
 

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:

CSemanticLinkMap_i CLinkMap::GetIterator  )  [inline]
 

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().

CSemanticLink* CLinkMap::GetNext CSemanticLinkMap_i a_iter  )  [inline]
 

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().

u_int CLinkMap::GetSize  )  const [inline]
 

Gets the number of links in the map.

Definition at line 121 of file link_map.h.

References m_linkMap.

Referenced by COMCSNet::LoadPredicateFile().

bool CLinkMap::Load FILE *  a_fp,
CConceptMap a_conceptMap
 

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:

CSemanticLink* CLinkMap::Lookup const SemanticID  a_id  )  [inline]
 

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.

void CLinkMap::Remove const SemanticID  a_id  ) 
 

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.

bool CLinkMap::Save FILE *  a_fp  )  [inline]
 

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().

void CLinkMap::Store CSemanticLink a_link  ) 
 

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:


Member Data Documentation

CSemanticLinkMap CLinkMap::m_linkMap [private]
 

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().


The documentation for this class was generated from the following files:
Generated on Tue Sep 16 09:44:48 2003 for OMCSNetCPP by doxygen 1.3.3