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

CConceptMap Class Reference

Map of semantic concepts. More...

#include <concept_map.h>

List of all members.

Public Member Functions

bool Load (FILE *a_fp, CTextIDMap &a_idMap)
 Loads the concept map from a previously opened file.

bool Save (FILE *a_fp)
 Saves the concept map to a previously opened file.

CSemanticConceptLookup (const SemanticID a_id)
 Lookup a semantic concept in the map using its numeric ID.

void Store (CSemanticConcept *a_concept)
 Store a semantic concept in the map.

u_int GetSize () const
 Get the number of items in the map.

 CConceptMap ()
 Constructor.

 ~CConceptMap ()
 Destructor.


Private Types

typedef std::map< SemanticID,
CSemanticConcept * > 
CSemanticConceptMap
 STL map of concepts using their numeric ID as the key.

typedef CSemanticConceptMap::iterator CSemanticConceptMap_i
 Iterator for concept STL map.

typedef CSemanticConceptMap::const_iterator CSemanticConceptMap_ci
 Const iterator for concept STL map.


Private Attributes

CSemanticConceptMap m_conceptMap
 STL map of semantic concepts.


Detailed Description

Map of semantic concepts.

Definition at line 34 of file concept_map.h.


Member Typedef Documentation

typedef std::map<SemanticID, CSemanticConcept *> CConceptMap::CSemanticConceptMap [private]
 

STL map of concepts using their numeric ID as the key.

Definition at line 86 of file concept_map.h.

typedef CSemanticConceptMap::const_iterator CConceptMap::CSemanticConceptMap_ci [private]
 

Const iterator for concept STL map.

Definition at line 92 of file concept_map.h.

typedef CSemanticConceptMap::iterator CConceptMap::CSemanticConceptMap_i [private]
 

Iterator for concept STL map.

Definition at line 89 of file concept_map.h.

Referenced by Lookup(), Save(), Store(), and ~CConceptMap().


Constructor & Destructor Documentation

CConceptMap::CConceptMap  )  [inline]
 

Constructor.

Definition at line 69 of file concept_map.h.

CConceptMap::~CConceptMap  )  [inline]
 

Destructor.

Definition at line 72 of file concept_map.h.

References CSemanticConceptMap_i, and m_conceptMap.


Member Function Documentation

u_int CConceptMap::GetSize  )  const [inline]
 

Get the number of items in the map.

Definition at line 63 of file concept_map.h.

References m_conceptMap.

Referenced by COMCSNet::LoadPredicateFile().

bool CConceptMap::Load FILE *  a_fp,
CTextIDMap a_idMap
 

Loads the concept map from a previously opened file.

Definition at line 36 of file concept_map.cpp.

References CSemanticConcept::Load(), and Store().

Referenced by COMCSNet::Load().

Here is the call graph for this function:

CSemanticConcept* CConceptMap::Lookup const SemanticID  a_id  )  [inline]
 

Lookup a semantic concept in the map using its numeric ID.

Definition at line 45 of file concept_map.h.

References CSemanticConceptMap_i, and m_conceptMap.

Referenced by CPredicateDecoder::DecodePredicateText(), COMCSNet::FindContext(), CSemanticLink::Load(), COMCSNet::LookupConcept(), and COMCSNet::LookupString().

bool CConceptMap::Save FILE *  a_fp  ) 
 

Saves the concept map to a previously opened file.

Definition at line 73 of file concept_map.cpp.

References CSemanticConceptMap_i, and m_conceptMap.

Referenced by COMCSNet::Save().

void CConceptMap::Store CSemanticConcept a_concept  ) 
 

Store a semantic concept in the map.

Definition at line 24 of file concept_map.cpp.

References CSemanticConceptMap_i, CSemanticConcept::GetID(), and m_conceptMap.

Referenced by CPredicateDecoder::DecodePredicateText(), and Load().

Here is the call graph for this function:


Member Data Documentation

CSemanticConceptMap CConceptMap::m_conceptMap [private]
 

STL map of semantic concepts.

Definition at line 95 of file concept_map.h.

Referenced by GetSize(), Lookup(), Save(), Store(), and ~CConceptMap().


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