From: stephan b. <sg...@us...> - 2004-12-26 09:15:12
|
Update of /cvsroot/pclasses/pclasses2/src/s11n In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16737/src/s11n Modified Files: s11n_node.h Log Message: Moved begin()/end() into the public interface, for use by generic algorithms. Index: s11n_node.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/s11n/s11n_node.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- s11n_node.h 26 Dec 2004 07:53:19 -0000 1.3 +++ s11n_node.h 26 Dec 2004 09:15:02 -0000 1.4 @@ -126,6 +126,32 @@ */ std::string name() const; + /** + Returns the first item in this object's property + map. + + Note that the iterator represents a value_type + (std::pair), so use (*it).first to get the key and + (*it).second to get the value. + */ + iterator begin(); + + /** + Returns a const_iterator pointing at this object's + first property. + */ + const_iterator begin() const; + + /** + * The after-the-end iterator for this object's properties. + */ + iterator end(); + + /** + * The after-the-end iterator for this object's properties. + */ + const_iterator end() const; + private: @@ -248,31 +274,6 @@ */ void unset( const std::string & key ); - /** - Returns the first item in this object's property - map. - - Note that the iterator represents a value_type - (std::pair), so use (*it).first to get the key and - (*it).second to get the value. - */ - iterator begin(); - - /** - Returns a const_iterator pointing at this object's - first property. - */ - const_iterator begin() const; - - /** - * The after-the-end iterator for this object's properties. - */ - iterator end(); - - /** - * The after-the-end iterator for this object's properties. - */ - const_iterator end() const; map_type & properties(); const map_type & properties() const; |