From: <qua...@us...> - 2009-10-05 08:33:27
|
Revision: 24 http://stdair.svn.sourceforge.net/stdair/?rev=24&view=rev Author: quannaus Date: 2009-10-05 08:33:21 +0000 (Mon, 05 Oct 2009) Log Message: ----------- [Dev] Some small changes. Modified Paths: -------------- trunk/stdair/stdair/bom/BomChildrenHolderImp.hpp trunk/stdair/stdair/bom/BomIterator.hpp Modified: trunk/stdair/stdair/bom/BomChildrenHolderImp.hpp =================================================================== --- trunk/stdair/stdair/bom/BomChildrenHolderImp.hpp 2009-10-05 08:16:51 UTC (rev 23) +++ trunk/stdair/stdair/bom/BomChildrenHolderImp.hpp 2009-10-05 08:33:21 UTC (rev 24) @@ -36,17 +36,17 @@ typedef BomConstIterator_T<BOM_CONTENT_CHILD, typename BomChildrenOrderedList_T::const_reverse_iterator> ListConstReverseIterator_T; typedef BomIterator_T<BOM_CONTENT_CHILD, - typename BomChildrenOrderedList_T::iterator> ListIterator_T; + typename BomChildrenOrderedList_T::const_iterator> ListIterator_T; typedef BomIterator_T<BOM_CONTENT_CHILD, - typename BomChildrenOrderedList_T::reverse_iterator> ListReverseIterator_T; + typename BomChildrenOrderedList_T::const_reverse_iterator> ListReverseIterator_T; typedef BomConstIterator_T<BOM_CONTENT_CHILD, typename BomChildrenList_T::const_iterator> MapConstIterator_T; typedef BomConstIterator_T<BOM_CONTENT_CHILD, typename BomChildrenList_T::const_reverse_iterator> MapConstReverseIterator_T; typedef BomIterator_T<BOM_CONTENT_CHILD, - typename BomChildrenList_T::iterator> MapIterator_T; + typename BomChildrenList_T::const_iterator> MapIterator_T; typedef BomIterator_T<BOM_CONTENT_CHILD, - typename BomChildrenList_T::reverse_iterator> MapReverseIterator_T; + typename BomChildrenList_T::const_reverse_iterator> MapReverseIterator_T; public: // /////////// Display support methods ///////// Modified: trunk/stdair/stdair/bom/BomIterator.hpp =================================================================== --- trunk/stdair/stdair/bom/BomIterator.hpp 2009-10-05 08:16:51 UTC (rev 23) +++ trunk/stdair/stdair/bom/BomIterator.hpp 2009-10-05 08:33:21 UTC (rev 24) @@ -211,7 +211,7 @@ typedef typename BOM_CONTENT::BomStructure_T BomStructure_T; // Define the pair of string and pointer of BOM_CONTENT. - typedef typename std::pair<std::string, BOM_CONTENT*> value_type; + typedef typename std::pair<std::string, const BOM_CONTENT*> value_type; // Definition allowing the retrieve the difference type of the ITERATOR. typedef typename ITERATOR::difference_type difference_type; @@ -249,7 +249,7 @@ // ////////////// Dereferencing Operators ////////////// /** Dereferencing operator for iterators on a list. */ - BOM_CONTENT& operator* () { + const BOM_CONTENT& operator* () { const BomStructure_T* lBomStruct_ptr = *Parent_T::_itBomStructureObject; assert (lBomStruct_ptr != NULL); BOM_CONTENT* lBomContent_ptr = This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |