Serac  0.1
Serac is an implicit thermal strucural mechanics simulation code.
Classes | Public Member Functions | List of all members
serac::FilterView< Iter, Pred > Class Template Reference

A "view" for filtering a container. More...

#include <boundary_condition_manager.hpp>

Classes

class  FilterViewIterator
 An iterator over a filtered view. More...
 

Public Member Functions

 FilterView (Iter begin, Iter end, Pred &&pred)
 Constructs a new lazily-evaluated filtering view over a container. More...
 
FilterViewIterator begin ()
 Returns the first filtered element, i.e., the first element in the underlying container that satisfies the predicate.
 
const FilterViewIterator begin () const
 
FilterViewIterator end ()
 Returns one past the end of the container, primarily for bounds-checking.
 
const FilterViewIterator end () const
 

Detailed Description

template<typename Iter, typename Pred>
class serac::FilterView< Iter, Pred >

A "view" for filtering a container.

Note
Will be made obsolete by C++20
See also
std::ranges::views::filter

Definition at line 29 of file boundary_condition_manager.hpp.

Constructor & Destructor Documentation

◆ FilterView()

template<typename Iter , typename Pred >
serac::FilterView< Iter, Pred >::FilterView ( Iter  begin,
Iter  end,
Pred &&  pred 
)
inline

Constructs a new lazily-evaluated filtering view over a container.

Parameters
[in]beginThe begin() iterator to the container
[in]endThe end() iterator to the container
[in]predThe predicate for the filter

Definition at line 98 of file boundary_condition_manager.hpp.

Member Function Documentation

◆ begin()

template<typename Iter , typename Pred >
const FilterViewIterator serac::FilterView< Iter, Pred >::begin ( ) const
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 115 of file boundary_condition_manager.hpp.

◆ end()

template<typename Iter , typename Pred >
const FilterViewIterator serac::FilterView< Iter, Pred >::end ( ) const
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 125 of file boundary_condition_manager.hpp.


The documentation for this class was generated from the following file: