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

CTextIDMap Class Reference

Associative map of semantic IDs. More...

#include <textid_map.h>

List of all members.

Public Member Functions

SemanticID Lookup (const std::string &a_string)
 Lookup a semantic ID using a textual key.

const std::string * Store (const std::string &a_string, const SemanticID a_id)
 Store a semantic ID in the map using a textual key.

 CTextIDMap ()
 Constructor.

 ~CTextIDMap ()
 Destructor.


Private Types

typedef std::map< std::string,
SemanticID
CStringIDMap
 STL map of semantic IDs using a STL string as the key.

typedef CStringIDMap::iterator CStringIDMap_i
 Iterator for semantic ID STL map.

typedef CStringIDMap::const_iterator CStringIDMap_ci
 Const iterator for semantic ID STL map.


Private Attributes

CStringIDMap m_idMap
 STL map of semantic IDs.


Detailed Description

Associative map of semantic IDs.

Definition at line 31 of file textid_map.h.


Member Typedef Documentation

typedef std::map<std::string, SemanticID> CTextIDMap::CStringIDMap [private]
 

STL map of semantic IDs using a STL string as the key.

Definition at line 83 of file textid_map.h.

typedef CStringIDMap::const_iterator CTextIDMap::CStringIDMap_ci [private]
 

Const iterator for semantic ID STL map.

Definition at line 87 of file textid_map.h.

typedef CStringIDMap::iterator CTextIDMap::CStringIDMap_i [private]
 

Iterator for semantic ID STL map.

Definition at line 85 of file textid_map.h.

Referenced by Lookup(), and Store().


Constructor & Destructor Documentation

CTextIDMap::CTextIDMap  )  [inline]
 

Constructor.

Definition at line 76 of file textid_map.h.

CTextIDMap::~CTextIDMap  )  [inline]
 

Destructor.

Definition at line 79 of file textid_map.h.


Member Function Documentation

SemanticID CTextIDMap::Lookup const std::string &  a_string  )  [inline]
 

Lookup a semantic ID using a textual key.

Definition at line 35 of file textid_map.h.

References CStringIDMap_i, m_idMap, and SemanticID.

Referenced by CPredicateDecoder::DecodePredicateText(), and COMCSNet::LookupConcept().

const std::string* CTextIDMap::Store const std::string &  a_string,
const SemanticID  a_id
[inline]
 

Store a semantic ID in the map using a textual key.

Definition at line 50 of file textid_map.h.

References CStringIDMap_i, and m_idMap.

Referenced by CSemanticConcept::CSemanticConcept(), and CSemanticConcept::Load().


Member Data Documentation

CStringIDMap CTextIDMap::m_idMap [private]
 

STL map of semantic IDs.

Definition at line 90 of file textid_map.h.

Referenced by Lookup(), and Store().


The documentation for this class was generated from the following file:
Generated on Tue Sep 16 09:45:24 2003 for OMCSNetCPP by doxygen 1.3.3