\hypertarget{classCLinkMap}{
\section{CLink\-Map Class Reference}
\label{classCLinkMap}\index{CLinkMap@{CLinkMap}}
}
Associative map of semantic links.  


{\tt \#include $<$link\_\-map.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
bool \hyperlink{classCLinkMap_CLinkMapa0}{Load} (FILE $\ast$a\_\-fp, \hyperlink{classCConceptMap}{CConcept\-Map} \&a\_\-concept\-Map)
\begin{CompactList}\small\item\em Loads the contents of the map from a previously opened file. \item\end{CompactList}\item 
bool \hyperlink{classCLinkMap_CLinkMapa1}{Save} (FILE $\ast$a\_\-fp)
\begin{CompactList}\small\item\em Saves the contents of the map to a previously opened file. \item\end{CompactList}\item 
bool \hyperlink{classCLinkMap_CLinkMapa2}{Find\-Path\-To} (const \hyperlink{semantic__id_8h_a0}{Semantic\-ID} a\_\-dst\-ID, \hyperlink{classCFindPathConfig}{CFind\-Path\-Config} \&a\_\-config)
\begin{CompactList}\small\item\em Utility function used by the 'Find Path from A to B' search. \item\end{CompactList}\item 
\hyperlink{link__map_8h_a1}{CSemantic\-Link\-Map\_\-i} \hyperlink{classCLinkMap_CLinkMapa3}{Get\-Iterator} ()
\begin{CompactList}\small\item\em Gets an iterator pointing to the first link within the map. \item\end{CompactList}\item 
\hyperlink{classCSemanticLink}{CSemantic\-Link} $\ast$ \hyperlink{classCLinkMap_CLinkMapa4}{Get\-Next} (\hyperlink{link__map_8h_a1}{CSemantic\-Link\-Map\_\-i} \&a\_\-iter)
\begin{CompactList}\small\item\em Gets a link from the map using an iterator. \item\end{CompactList}\item 
\hyperlink{classCSemanticLink}{CSemantic\-Link} $\ast$ \hyperlink{classCLinkMap_CLinkMapa5}{Lookup} (const \hyperlink{semantic__id_8h_a0}{Semantic\-ID} a\_\-id)
\begin{CompactList}\small\item\em Search for a specific semantic link in the map using a numeric ID. \item\end{CompactList}\item 
void \hyperlink{classCLinkMap_CLinkMapa6}{Store} (\hyperlink{classCSemanticLink}{CSemantic\-Link} $\ast$a\_\-link)
\begin{CompactList}\small\item\em Stores a semantic link in the map. \item\end{CompactList}\item 
void \hyperlink{classCLinkMap_CLinkMapa7}{Remove} (const \hyperlink{semantic__id_8h_a0}{Semantic\-ID} a\_\-id)
\begin{CompactList}\small\item\em Removes a specific semantic link from the map using a numeric ID. \item\end{CompactList}\item 
u\_\-int \hyperlink{classCLinkMap_CLinkMapa8}{Get\-Size} () const
\begin{CompactList}\small\item\em Gets the number of links in the map. \item\end{CompactList}\item 
\hyperlink{classCLinkMap_CLinkMapa9}{CLink\-Map} ()
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
\hyperlink{classCLinkMap_CLinkMapa10}{$\sim$CLink\-Map} ()
\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\end{CompactItemize}
\subsection*{Private Attributes}
\begin{CompactItemize}
\item 
\hyperlink{link__map_8h_a0}{CSemantic\-Link\-Map} \hyperlink{classCLinkMap_CLinkMapr0}{m\_\-link\-Map}
\begin{CompactList}\small\item\em STL map of semantic links. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Associative map of semantic links. 



Definition at line 42 of file link\_\-map.h.

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classCLinkMap_CLinkMapa9}{
\index{CLinkMap@{CLink\-Map}!CLinkMap@{CLinkMap}}
\index{CLinkMap@{CLinkMap}!CLinkMap@{CLink\-Map}}
\subsubsection[CLinkMap]{\setlength{\rightskip}{0pt plus 5cm}CLink\-Map::CLink\-Map ()\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classCLinkMap_CLinkMapa9}


Constructor. 



Definition at line 127 of file link\_\-map.h.\hypertarget{classCLinkMap_CLinkMapa10}{
\index{CLinkMap@{CLink\-Map}!~CLinkMap@{$\sim$CLinkMap}}
\index{~CLinkMap@{$\sim$CLinkMap}!CLinkMap@{CLink\-Map}}
\subsubsection[$\sim$CLinkMap]{\setlength{\rightskip}{0pt plus 5cm}CLink\-Map::$\sim$\hyperlink{classCLinkMap}{CLink\-Map} ()\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classCLinkMap_CLinkMapa10}


Destructor. 



Definition at line 130 of file link\_\-map.h.

\subsection{Member Function Documentation}
\hypertarget{classCLinkMap_CLinkMapa2}{
\index{CLinkMap@{CLink\-Map}!FindPathTo@{FindPathTo}}
\index{FindPathTo@{FindPathTo}!CLinkMap@{CLink\-Map}}
\subsubsection[FindPathTo]{\setlength{\rightskip}{0pt plus 5cm}bool CLink\-Map::Find\-Path\-To (const \hyperlink{semantic__id_8h_a0}{Semantic\-ID} {\em a\_\-dst\-ID}, \hyperlink{classCFindPathConfig}{CFind\-Path\-Config} \& {\em a\_\-config})}}
\label{classCLinkMap_CLinkMapa2}


Utility function used by the 'Find Path from A to B' search. 



Definition at line 27 of file link\_\-map.cpp.

References CSemantic\-Link\-Map\_\-i, DPRINT, m\_\-link\-Map, and CFind\-Path\-Config::Visit\-Node().

Here is the call graph for this function:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=182pt]{classCLinkMap_CLinkMapa2_cgraph}
\end{center}
\end{figure}
\hypertarget{classCLinkMap_CLinkMapa3}{
\index{CLinkMap@{CLink\-Map}!GetIterator@{GetIterator}}
\index{GetIterator@{GetIterator}!CLinkMap@{CLink\-Map}}
\subsubsection[GetIterator]{\setlength{\rightskip}{0pt plus 5cm}\hyperlink{link__map_8h_a1}{CSemantic\-Link\-Map\_\-i} CLink\-Map::Get\-Iterator ()\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classCLinkMap_CLinkMapa3}


Gets an iterator pointing to the first link within the map. 



Definition at line 79 of file link\_\-map.h.

References CSemantic\-Link\-Map\_\-i, and m\_\-link\-Map.

Referenced by CAnalogous\-Weight\-Node::Get\-Link\-Iterator(), COMCSNet::p\_\-Analogous\-Process\-Backward\-Link\-Map(), COMCSNet::p\_\-Analogous\-Process\-Link\-Map(), and COMCSNet::p\_\-Find\-Context\-Process\-Link\-Map().\hypertarget{classCLinkMap_CLinkMapa4}{
\index{CLinkMap@{CLink\-Map}!GetNext@{GetNext}}
\index{GetNext@{GetNext}!CLinkMap@{CLink\-Map}}
\subsubsection[GetNext]{\setlength{\rightskip}{0pt plus 5cm}\hyperlink{classCSemanticLink}{CSemantic\-Link}$\ast$ CLink\-Map::Get\-Next (\hyperlink{link__map_8h_a1}{CSemantic\-Link\-Map\_\-i} \& {\em a\_\-iter})\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classCLinkMap_CLinkMapa4}


Gets a link from the map using an iterator. 



Definition at line 85 of file link\_\-map.h.

References m\_\-link\-Map.

Referenced by CAnalogous\-Weight\-Node::Get\-Link(), COMCSNet::p\_\-Analogous\-Process\-Backward\-Link\-Map(), COMCSNet::p\_\-Analogous\-Process\-Link\-Map(), and COMCSNet::p\_\-Find\-Context\-Process\-Link\-Map().\hypertarget{classCLinkMap_CLinkMapa8}{
\index{CLinkMap@{CLink\-Map}!GetSize@{GetSize}}
\index{GetSize@{GetSize}!CLinkMap@{CLink\-Map}}
\subsubsection[GetSize]{\setlength{\rightskip}{0pt plus 5cm}u\_\-int CLink\-Map::Get\-Size () const\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classCLinkMap_CLinkMapa8}


Gets the number of links in the map. 



Definition at line 121 of file link\_\-map.h.

References m\_\-link\-Map.

Referenced by COMCSNet::Load\-Predicate\-File().\hypertarget{classCLinkMap_CLinkMapa0}{
\index{CLinkMap@{CLink\-Map}!Load@{Load}}
\index{Load@{Load}!CLinkMap@{CLink\-Map}}
\subsubsection[Load]{\setlength{\rightskip}{0pt plus 5cm}bool CLink\-Map::Load (FILE $\ast$ {\em a\_\-fp}, \hyperlink{classCConceptMap}{CConcept\-Map} \& {\em a\_\-concept\-Map})}}
\label{classCLinkMap_CLinkMapa0}


Loads the contents of the map from a previously opened file. 



Definition at line 70 of file link\_\-map.cpp.

References CSemantic\-Link::Load(), and Store().

Referenced by COMCSNet::Load().

Here is the call graph for this function:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=393pt]{classCLinkMap_CLinkMapa0_cgraph}
\end{center}
\end{figure}
\hypertarget{classCLinkMap_CLinkMapa5}{
\index{CLinkMap@{CLink\-Map}!Lookup@{Lookup}}
\index{Lookup@{Lookup}!CLinkMap@{CLink\-Map}}
\subsubsection[Lookup]{\setlength{\rightskip}{0pt plus 5cm}\hyperlink{classCSemanticLink}{CSemantic\-Link}$\ast$ CLink\-Map::Lookup (const \hyperlink{semantic__id_8h_a0}{Semantic\-ID} {\em a\_\-id})\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classCLinkMap_CLinkMapa5}


Search for a specific semantic link in the map using a numeric ID. 



Definition at line 100 of file link\_\-map.h.

References CSemantic\-Link\-Map\_\-i, and m\_\-link\-Map.\hypertarget{classCLinkMap_CLinkMapa7}{
\index{CLinkMap@{CLink\-Map}!Remove@{Remove}}
\index{Remove@{Remove}!CLinkMap@{CLink\-Map}}
\subsubsection[Remove]{\setlength{\rightskip}{0pt plus 5cm}void CLink\-Map::Remove (const \hyperlink{semantic__id_8h_a0}{Semantic\-ID} {\em a\_\-id})}}
\label{classCLinkMap_CLinkMapa7}


Removes a specific semantic link from the map using a numeric ID. 



Definition at line 45 of file link\_\-map.cpp.

References CSemantic\-Link\-Map\_\-i, and m\_\-link\-Map.\hypertarget{classCLinkMap_CLinkMapa1}{
\index{CLinkMap@{CLink\-Map}!Save@{Save}}
\index{Save@{Save}!CLinkMap@{CLink\-Map}}
\subsubsection[Save]{\setlength{\rightskip}{0pt plus 5cm}bool CLink\-Map::Save (FILE $\ast$ {\em a\_\-fp})\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classCLinkMap_CLinkMapa1}


Saves the contents of the map to a previously opened file. 



Definition at line 50 of file link\_\-map.h.

References CSemantic\-Link\-Map\_\-i, and m\_\-link\-Map.

Referenced by COMCSNet::Save().\hypertarget{classCLinkMap_CLinkMapa6}{
\index{CLinkMap@{CLink\-Map}!Store@{Store}}
\index{Store@{Store}!CLinkMap@{CLink\-Map}}
\subsubsection[Store]{\setlength{\rightskip}{0pt plus 5cm}void CLink\-Map::Store (\hyperlink{classCSemanticLink}{CSemantic\-Link} $\ast$ {\em a\_\-link})}}
\label{classCLinkMap_CLinkMapa6}


Stores a semantic link in the map. 



Definition at line 57 of file link\_\-map.cpp.

References CSemantic\-Link\-Map\_\-i, CSemantic\-Link::Get\-ID(), and m\_\-link\-Map.

Referenced by CSemantic\-Concept::Add\-Backward\-Link(), CAnalogous\-Weight\-Node::Add\-Link(), CSemantic\-Concept::Add\-Link(), CPredicate\-Decoder::Decode\-Predicate\-Text(), and Load().

Here is the call graph for this function:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=150pt]{classCLinkMap_CLinkMapa6_cgraph}
\end{center}
\end{figure}


\subsection{Member Data Documentation}
\hypertarget{classCLinkMap_CLinkMapr0}{
\index{CLinkMap@{CLink\-Map}!m_linkMap@{m\_\-linkMap}}
\index{m_linkMap@{m\_\-linkMap}!CLinkMap@{CLink\-Map}}
\subsubsection[m\_\-linkMap]{\setlength{\rightskip}{0pt plus 5cm}\hyperlink{link__map_8h_a0}{CSemantic\-Link\-Map} \hyperlink{classCLinkMap_CLinkMapr0}{CLink\-Map::m\_\-link\-Map}\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classCLinkMap_CLinkMapr0}


STL map of semantic links. 



Definition at line 134 of file link\_\-map.h.

Referenced by Find\-Path\-To(), Get\-Iterator(), Get\-Next(), Get\-Size(), Lookup(), Remove(), Save(), and Store().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
\hyperlink{link__map_8h}{link\_\-map.h}\item 
\hyperlink{link__map_8cpp}{link\_\-map.cpp}\end{CompactItemize}
