[Trilinos-Users] [EXTERNAL] iterating over parameter list elements

Kevin Long kevin.long at ttu.edu
Fri May 18 09:51:30 MDT 2012


Hi Roger,

Thanks! (Googling "Teuchos ParameterList" apparently leads to an out of 
date doxygen page. Silly me fo not making sure of the version I was 
looking at).

Kevin

On 05/18/2012 09:03 AM, Roger Pawlowski wrote:
> Hi Kevin,
>
> The read only iterators are still there.  We use them in Panzer quite 
> heavily.  Ross refactored the ParameterList recently but he made sure 
> to preserve this functionality.
>
> According to the doxygen for development branch built last night:
>
> http://trilinos.sandia.gov/packages/docs/dev/packages/teuchos/doc/html/classTeuchos_1_1ParameterList.html#ac9143b7e1038258a1b05974d7ea3c173
>
> ConstIterator 
> <http://trilinos.sandia.gov/packages/docs/dev/packages/teuchos/doc/html/classTeuchos_1_1FilteredIterator.html> 
> begin 
> <http://trilinos.sandia.gov/packages/docs/dev/packages/teuchos/doc/html/classTeuchos_1_1ParameterList.html#ac9143b7e1038258a1b05974d7ea3c173> 
> () const  An iterator pointing to the first entry.
> Definition at line 996 
> <http://trilinos.sandia.gov/packages/docs/dev/packages/teuchos/doc/html/Teuchos__ParameterList_8hpp_source.html#l00996> 
> of file Teuchos_ParameterList.hpp 
> <http://trilinos.sandia.gov/packages/docs/dev/packages/teuchos/doc/html/Teuchos__ParameterList_8hpp_source.html>.
>
> ConstIterator 
> <http://trilinos.sandia.gov/packages/docs/dev/packages/teuchos/doc/html/classTeuchos_1_1FilteredIterator.html> 
> end 
> <http://trilinos.sandia.gov/packages/docs/dev/packages/teuchos/doc/html/classTeuchos_1_1ParameterList.html#aa48925320408aa65a077365d7e678136> 
> () const  An iterator pointing beyond the last entry.
> Definition at line 1002 
> <http://trilinos.sandia.gov/packages/docs/dev/packages/teuchos/doc/html/Teuchos__ParameterList_8hpp_source.html#l01002> 
> of file Teuchos_ParameterList.hpp 
> <http://trilinos.sandia.gov/packages/docs/dev/packages/teuchos/doc/html/Teuchos__ParameterList_8hpp_source.html>.
>
> Were there other functions you were thinking of?
>
> Roger
>
> On 05/17/2012 10:23 PM, Kevin Long wrote:
>> Hi,
>>
>> I recall that in an earlier version of Trilinos, it was possible for a
>> user to iterate (read-only) over entries in a Teuchos parameter list.
>> The functions to work with iterators are no longer there. Was there some
>> reason for their removal? It would sometimes be useful to do this.
>>
>> Regards,
>>
>> Kevin
>>
>


-- 
Kevin Long
Associate Professor
Department of Mathematics and Statistics
Texas Tech University

"The end of fear is the beginning of wisdom"
- Bertrand Russell

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20120518/7208bf3a/attachment.html 


More information about the Trilinos-Users mailing list