Changeset 11070 for code/branches/cpp11_v3/src/libraries
- Timestamp:
- Jan 17, 2016, 8:40:36 PM (9 years ago)
- Location:
- code/branches/cpp11_v3/src/libraries/core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v3/src/libraries/core/class/Identifier.h
r11054 r11070 204 204 /// Returns the map that stores all XMLPort params. 205 205 inline const std::map<std::string, XMLPortParamContainer*>& getXMLPortParamMap() const { return this->xmlportParamContainers_; } 206 /// Returns a const_iterator to the beginning of the map that stores all XMLPort params.207 inline std::map<std::string, XMLPortParamContainer*>::const_iterator getXMLPortParamMapBegin() const { return this->xmlportParamContainers_.begin(); }208 /// Returns a const_iterator to the end of the map that stores all XMLPort params.209 inline std::map<std::string, XMLPortParamContainer*>::const_iterator getXMLPortParamMapEnd() const { return this->xmlportParamContainers_.end(); }210 206 211 207 /// Returns the map that stores all XMLPort objects. 212 208 inline const std::map<std::string, XMLPortObjectContainer*>& getXMLPortObjectMap() const { return this->xmlportObjectContainers_; } 213 /// Returns a const_iterator to the beginning of the map that stores all XMLPort objects.214 inline std::map<std::string, XMLPortObjectContainer*>::const_iterator getXMLPortObjectMapBegin() const { return this->xmlportObjectContainers_.begin(); }215 /// Returns a const_iterator to the end of the map that stores all XMLPort objects.216 inline std::map<std::string, XMLPortObjectContainer*>::const_iterator getXMLPortObjectMapEnd() const { return this->xmlportObjectContainers_.end(); }217 209 218 210 void addXMLPortParamContainer(const std::string& paramname, XMLPortParamContainer* container); -
code/branches/cpp11_v3/src/libraries/core/config/ConfigFile.cc
r11054 r11070 238 238 file << section->getFileEntry() << endl; 239 239 240 for ( std::list<ConfigFileEntry*>::const_iterator it_entries = section->getEntriesBegin(); it_entries != section->getEntriesEnd(); ++it_entries)241 file << (*it_entries)->getFileEntry() << endl;240 for (ConfigFileEntry* entry : section->getEntries()) 241 file << entry->getFileEntry() << endl; 242 242 243 243 file << endl; -
code/branches/cpp11_v3/src/libraries/core/config/ConfigFileSection.h
r11068 r11070 161 161 std::list<ConfigFileEntry*>& getEntries() 162 162 { return this->entries_; } 163 /// Returns the begin-iterator of the list of entries in this section. 164 std::list<ConfigFileEntry*>::const_iterator getEntriesBegin() const 165 { return this->entries_.begin(); } 166 /// Returns the end-iterator of the list of entries in this section. 167 std::list<ConfigFileEntry*>::const_iterator getEntriesEnd() const 168 { return this->entries_.end(); } 163 const std::list<ConfigFileEntry*>& getEntries() const 164 { return this->entries_; } 169 165 170 166 std::list<ConfigFileEntry*>::iterator getOrCreateEntryIterator(const std::string& name, const std::string& fallback, bool bString);
Note: See TracChangeset
for help on using the changeset viewer.