#include <TeMetaModelCache.h>
Definition at line 42 of file TeMetaModelCache.h.
Public Member Functions | |
| void | clear () |
| Clears metadata. | |
| TeThemeMap & | invalidThemeMap () |
| Returns the map of invalid themes in the database. | |
| TeLayerMap & | layerMap () |
| Returns the map of layers in the database. | |
| TeLegendEntryMap & | legendMap () |
| Returns the map of legends in the database. | |
| map< int, map < string, string > > & | mapThemeAlias () |
| TeProjectMap & | projectMap () |
| Returns the map of projects in the database. | |
| multiset< int > & | relationMSet () |
| Returns the set of relations between tables. | |
| TeMetaModelCache () | |
| Empty constructor. | |
| TeThemeMap & | themeMap () |
| Returns the map of themes in the database. | |
| TeViewMap & | viewMap () |
| Returns the map of views in the database. | |
| ~TeMetaModelCache () | |
| Destructor. | |
Private Member Functions | |
| TeMetaModelCache & | operator= (const TeMetaModelCache &rhs) |
| Assignment operator not allowed. | |
| TeMetaModelCache (const TeMetaModelCache &rhs) | |
| Copy constructor not allowed. | |
Private Attributes | |
| TeThemeMap | invalidThemeMap_ |
| invalid theme map | |
| TeLayerMap | layerMap_ |
| layer map | |
| TeLegendEntryMap | legendMap_ |
| view map | |
| map< int, map < string, string > > | mapThemeAlias_ |
| An associative container from theme identifier (int) to legend alias (map<string, string>). The theme alias is another container, where key is a string with a column name used in a group that maps to a legend alias (string value). | |
| TeProjectMap | projectMap_ |
| project map | |
| multiset< int > | relationMSet_ |
| multiset of relations between tables | |
| TeThemeMap | themeMap_ |
| theme map | |
| TeViewMap | viewMap_ |
| view map | |
| TeMetaModelCache::TeMetaModelCache | ( | ) | [inline] |
| TeMetaModelCache::~TeMetaModelCache | ( | ) | [inline] |
| TeMetaModelCache::TeMetaModelCache | ( | const TeMetaModelCache & | rhs | ) | [private] |
| void TeMetaModelCache::clear | ( | void | ) |
Definition at line 3 of file TeMetaModelCache.cpp.
References invalidThemeMap_, layerMap_, legendMap_, projectMap_, themeMap_, and viewMap_.
00004 { 00005 TeViewMap::iterator viewIt; 00006 for (viewIt = viewMap_.begin(); viewIt != viewMap_.end(); ++viewIt) 00007 { 00008 if(viewIt->second) 00009 delete viewIt->second; 00010 } 00011 00012 TeLayerMap::iterator layerIt; 00013 for (layerIt = layerMap_.begin(); layerIt != layerMap_.end(); ++layerIt) 00014 { 00015 if (layerIt->second) 00016 delete layerIt->second; 00017 } 00018 00019 TeProjectMap::iterator projectIt; 00020 for (projectIt = projectMap_.begin(); projectIt != projectMap_.end(); ++projectIt) 00021 { 00022 if (projectIt->second) 00023 delete projectIt->second; 00024 } 00025 00026 TeThemeMap::iterator invThemeIt; 00027 for (invThemeIt = invalidThemeMap_.begin(); invThemeIt != invalidThemeMap_.end(); ++invThemeIt) 00028 { 00029 if (invThemeIt->second) 00030 delete invThemeIt->second; 00031 } 00032 00033 legendMap_.clear(); 00034 themeMap_.clear(); 00035 invalidThemeMap_.clear(); 00036 viewMap_.clear(); 00037 layerMap_.clear(); 00038 projectMap_.clear(); 00039 }
| TeThemeMap& TeMetaModelCache::invalidThemeMap | ( | ) | [inline] |
| TeLayerMap& TeMetaModelCache::layerMap | ( | ) | [inline] |
| TeLegendEntryMap& TeMetaModelCache::legendMap | ( | ) | [inline] |
| TeMetaModelCache& TeMetaModelCache::operator= | ( | const TeMetaModelCache & | rhs | ) | [private] |
| TeProjectMap& TeMetaModelCache::projectMap | ( | ) | [inline] |
| multiset<int>& TeMetaModelCache::relationMSet | ( | ) | [inline] |
| TeThemeMap& TeMetaModelCache::themeMap | ( | ) | [inline] |
| TeViewMap& TeMetaModelCache::viewMap | ( | ) | [inline] |
TeThemeMap TeMetaModelCache::invalidThemeMap_ [private] |
TeLayerMap TeMetaModelCache::layerMap_ [private] |
TeLegendEntryMap TeMetaModelCache::legendMap_ [private] |
map<int, map<string, string> > TeMetaModelCache::mapThemeAlias_ [private] |
Definition at line 111 of file TeMetaModelCache.h.
TeProjectMap TeMetaModelCache::projectMap_ [private] |
multiset<int> TeMetaModelCache::relationMSet_ [private] |
Definition at line 105 of file TeMetaModelCache.h.
TeThemeMap TeMetaModelCache::themeMap_ [private] |
TeViewMap TeMetaModelCache::viewMap_ [private] |
1.5.3