COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Types | Public Member Functions | List of all members
ComponentIteratorRange< T, Predicate > Struct Template Reference

#include <FindComponents.hpp>

Inherits iterator_range< boost::filter_iterator< Predicate, ComponentIterator< T > > >.

Public Types

typedef boost::iterator_range< boost::filter_iterator< Predicate, ComponentIterator< T > > > Base
 
typedef boost::filter_iterator< Predicate, ComponentIterator< T > > iterator
 
typedef ComponentIteratorRange type
 

Public Member Functions

 ComponentIteratorRange (const ComponentIterator< T > &b, const ComponentIterator< T > &e)
 
 ComponentIteratorRange (const ComponentIterator< T > &b, const ComponentIterator< T > &e, const Predicate &pred)
 
 ComponentIteratorRange (const std::vector< boost::shared_ptr< T > > &vec)
 
bool operator== (const ComponentIteratorRange &rhs)
 
bool operator!= (const ComponentIteratorRange &rhs)
 
std::vector< Handle< T > > as_vector ()
 
std::vector< Handle< T const > > as_const_vector ()
 
Uint size () const
 

Detailed Description

template<typename T, typename Predicate = IsComponentTrue>
struct cf3::common::ComponentIteratorRange< T, Predicate >

Definition at line 176 of file FindComponents.hpp.

Member Typedef Documentation

typedef boost::iterator_range< boost::filter_iterator< Predicate, ComponentIterator<T> > > Base

Definition at line 179 of file FindComponents.hpp.

typedef boost::filter_iterator< Predicate, ComponentIterator<T> > iterator

Definition at line 181 of file FindComponents.hpp.

Definition at line 184 of file FindComponents.hpp.

Constructor & Destructor Documentation

ComponentIteratorRange ( const ComponentIterator< T > &  b,
const ComponentIterator< T > &  e 
)
inline

Definition at line 186 of file FindComponents.hpp.

ComponentIteratorRange ( const ComponentIterator< T > &  b,
const ComponentIterator< T > &  e,
const Predicate &  pred 
)
inline

Definition at line 191 of file FindComponents.hpp.

ComponentIteratorRange ( const std::vector< boost::shared_ptr< T > > &  vec)
inline

Definition at line 196 of file FindComponents.hpp.

Member Function Documentation

std::vector< Handle<T const> > as_const_vector ( )
inline

Definition at line 212 of file FindComponents.hpp.

std::vector< Handle<T> > as_vector ( )
inline

Definition at line 204 of file FindComponents.hpp.

bool operator!= ( const ComponentIteratorRange< T, Predicate > &  rhs)
inline

Definition at line 202 of file FindComponents.hpp.

bool operator== ( const ComponentIteratorRange< T, Predicate > &  rhs)
inline

Definition at line 201 of file FindComponents.hpp.

Uint size ( ) const
inline

Definition at line 220 of file FindComponents.hpp.


The documentation for this struct was generated from the following file:
Send comments to:
COOLFluiD Web Admin