Stokhos Package Browser (Single Doxygen Collection)
Version of the Day
|
Iterator class for iterating over elements of the index set. More...
#include <Stokhos_ProductBasisUtils.hpp>
Inherits iterator< std::input_iterator_tag, multiindex_type >.
Public Types | |
typedef std::iterator < std::input_iterator_tag, multiindex_type > | base_type |
typedef base_type::iterator_category | iterator_category |
typedef base_type::value_type | value_type |
typedef base_type::difference_type | difference_type |
typedef base_type::reference | reference |
typedef base_type::pointer | pointer |
typedef const multiindex_type & | const_reference |
typedef const multiindex_type * | const_pointer |
Public Member Functions | |
Iterator (ordinal_type max_order_, const multiindex_type &component_max_order_, const multiindex_type &index_) | |
Constructor. More... | |
bool | operator== (const Iterator &it) const |
Compare equality of iterators. More... | |
bool | operator!= (const Iterator &it) const |
Compare inequality of iterators. More... | |
const_reference | operator* () const |
Dereference. More... | |
const_pointer | operator-> () const |
Dereference. More... | |
Iterator & | operator++ () |
Prefix increment, i.e., ++iterator. More... | |
Iterator & | operator++ (int) |
Postfix increment, i.e., iterator++. More... | |
Protected Attributes | |
ordinal_type | max_order |
Maximum order of iterator. More... | |
multiindex_type | component_max_order |
Maximum order for each component. More... | |
multiindex_type | index |
Current value of iterator. More... | |
ordinal_type | dim |
Dimension. More... | |
Teuchos::Array< ordinal_type > | orders |
Maximum orders for each term to determine how to increment. More... | |
Iterator class for iterating over elements of the index set.
Definition at line 420 of file Stokhos_ProductBasisUtils.hpp.
typedef std::iterator<std::input_iterator_tag,multiindex_type> Stokhos::AnisotropicTotalOrderIndexSet< ordinal_t >::Iterator::base_type |
Definition at line 424 of file Stokhos_ProductBasisUtils.hpp.
typedef base_type::iterator_category Stokhos::AnisotropicTotalOrderIndexSet< ordinal_t >::Iterator::iterator_category |
Definition at line 425 of file Stokhos_ProductBasisUtils.hpp.
typedef base_type::value_type Stokhos::AnisotropicTotalOrderIndexSet< ordinal_t >::Iterator::value_type |
Definition at line 426 of file Stokhos_ProductBasisUtils.hpp.
typedef base_type::difference_type Stokhos::AnisotropicTotalOrderIndexSet< ordinal_t >::Iterator::difference_type |
Definition at line 427 of file Stokhos_ProductBasisUtils.hpp.
typedef base_type::reference Stokhos::AnisotropicTotalOrderIndexSet< ordinal_t >::Iterator::reference |
Definition at line 428 of file Stokhos_ProductBasisUtils.hpp.
typedef base_type::pointer Stokhos::AnisotropicTotalOrderIndexSet< ordinal_t >::Iterator::pointer |
Definition at line 429 of file Stokhos_ProductBasisUtils.hpp.
typedef const multiindex_type& Stokhos::AnisotropicTotalOrderIndexSet< ordinal_t >::Iterator::const_reference |
Definition at line 431 of file Stokhos_ProductBasisUtils.hpp.
typedef const multiindex_type* Stokhos::AnisotropicTotalOrderIndexSet< ordinal_t >::Iterator::const_pointer |
Definition at line 432 of file Stokhos_ProductBasisUtils.hpp.
|
inline |
Constructor.
max_order_
is the maximum order of the set (inclusive) and index_
is the starting multi-index.
Definition at line 439 of file Stokhos_ProductBasisUtils.hpp.
|
inline |
Compare equality of iterators.
Definition at line 454 of file Stokhos_ProductBasisUtils.hpp.
|
inline |
Compare inequality of iterators.
Definition at line 457 of file Stokhos_ProductBasisUtils.hpp.
|
inline |
Dereference.
Definition at line 460 of file Stokhos_ProductBasisUtils.hpp.
|
inline |
Dereference.
Definition at line 463 of file Stokhos_ProductBasisUtils.hpp.
|
inline |
Prefix increment, i.e., ++iterator.
No particular ordering of the indices is guaranteed. The current implementation produces multi-indices sorted lexographically backwards among the elements, e.g., [0 0], [1 0], [2 0], ... [0 1], [1 1], [2 1], ... but one shouldn't assume that. To obtain a specific ordering, one should implement a "less" functional and put the indices in a sorted container such as std::map<>.
Definition at line 475 of file Stokhos_ProductBasisUtils.hpp.
|
inline |
Postfix increment, i.e., iterator++.
Definition at line 490 of file Stokhos_ProductBasisUtils.hpp.
|
protected |
Maximum order of iterator.
Definition at line 499 of file Stokhos_ProductBasisUtils.hpp.
|
protected |
Maximum order for each component.
Definition at line 502 of file Stokhos_ProductBasisUtils.hpp.
|
protected |
Current value of iterator.
Definition at line 505 of file Stokhos_ProductBasisUtils.hpp.
|
protected |
Dimension.
Definition at line 508 of file Stokhos_ProductBasisUtils.hpp.
|
protected |
Maximum orders for each term to determine how to increment.
Definition at line 511 of file Stokhos_ProductBasisUtils.hpp.