|
| | filter_view (View const &view, Pred const &pred) |
| | Constructs a filter view over the given view. More...
|
| |
| | filter_view (view_container_type *vcont, domain_type const &dom, map_func_type mfunc=map_func_type(), Pred const &pred=Pred()) |
| | Constructor used to pass ownership of the container to the view. More...
|
| |
| | filter_view (view_container_type const &vcont, domain_type const &dom, map_func_type mfunc=map_func_type(), Pred const &pred=Pred()) |
| | Constructor that does not takes ownership over the passed container. More...
|
| |
|
| filter_view (view_container_type const &vcont, domain_type const &dom, map_func_type mfunc, filter_view const &other) |
| |
| | filter_view (filter_view const &other) |
| | Constructor that does not takes ownership over the passed container. More...
|
| |
|
value_type | get_element (index_type index) |
| | Returns value at the specified index.
|
| |
|
Pred const & | predicate (void) const |
| | Returns the predicate used to filter the values.
|
| |
|
size_type | size (void) const |
| | Return the number of elements referenced for the view.
|
| |
|
bool | is_valid (void) const |
| |
| view_container_type * | get_container (void) const |
| |
|
view_container_type & | container (void) |
| |
| view_container_type & | container (void) const |
| |
|
domain_type const & | domain (void) const |
| |
|
domain_type & | domain (void) |
| |
|
void | set_domain (domain_type const &dom) |
| |
|
map_func_type const & | mapfunc (void) const |
| |
|
bool | empty (void) const |
| | Returns true if the view does not reference any element.
|
| |
|
- Warning
- Methods in the Sequence Iterator group should only be used inside a work function which is processing a segmented view. These functions will perform a read operation on the data, which is not how iterators normally work
|
|
iterator | begin (void) |
| | Return an iterator over the element whose GID is the first valid index, based on applying the predicate to the element value.
|
| |
|
const_iterator | begin (void) const |
| | Return an iterator over the element whose GID is the first valid index, based on applying the predicate to the element value.
|
| |
|
iterator | end (void) |
| | Return an iterator over the element whose GID is the last valid index, based on applying the predicate to the element value.
|
| |
|
const_iterator | end (void) const |
| | Return an iterator over the element whose GID is the last valid index, based on applying the predicate to the element value.
|
| |
|
index_type | next (index_type index) const |
| | Return an iterator over the element whose GID is the next valid index, based on applying the predicate to the element value.
|
| |
|
|
typedef View::view_container_type | view_container_type |
| |
|
typedef view_container_type | container_type |
| |
|
typedef view_container_type::reference | reference |
| |
|
typedef view_container_type::const_reference | const_reference |
| |
|
typedef View::domain_type | domain_type |
| |
|
typedef View::map_func_type | map_func_type |
| |
|
typedef map_func_type | map_function |
| |
|
typedef view_container_type::value_type | value_type |
| |
|
typedef domain_type::index_type | index_type |
| |
|
typedef base_type::size_type | size_type |
| |
|
typedef index_iterator< filter_view > | iterator |
| |
|
typedef const_index_iterator< filter_view > | const_iterator |
| |
|
typedef mf_type_helper::gid_type | gid_type |
| |
template<typename View, typename Pred>
class stapl::filter_view< View, Pred >
Defines a filter view over the specified View.
This view provides a selective traversal over the elements referenced for the specified view.