[Trilinos-Users] [EXTERNAL] iterating over parameter list elements
Roger Pawlowski
rppawlo at sandia.gov
Fri May 18 08:03:17 MDT 2012
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20120518/4584b764/attachment.html
More information about the Trilinos-Users
mailing list