Field3D
FieldGroup< BaseTypeList_T, Dims_T >::GrabFields Struct Reference

#include <FieldGroup.h>

Public Member Functions

 GrabFields (Field3D::FieldRes::Ptr f)
 Ctor. More...
 
template<typename WrapperVec_T >
void operator() (WrapperVec_T &vec) const
 Functor. More...
 

Public Attributes

Field3D::FieldRes::Ptr m_field
 The field to work on. Will be matched against the type of operator(). More...
 

Detailed Description

template<typename BaseTypeList_T, int Dims_T>
struct FieldGroup< BaseTypeList_T, Dims_T >::GrabFields

Definition at line 490 of file FieldGroup.h.

Constructor & Destructor Documentation

template<typename BaseTypeList_T , int Dims_T>
FieldGroup< BaseTypeList_T, Dims_T >::GrabFields::GrabFields ( Field3D::FieldRes::Ptr  f)
inline

Ctor.

Definition at line 493 of file FieldGroup.h.

494  : m_field(f)
495  { }
Field3D::FieldRes::Ptr m_field
The field to work on. Will be matched against the type of operator().
Definition: FieldGroup.h:509

Member Function Documentation

template<typename BaseTypeList_T , int Dims_T>
template<typename WrapperVec_T >
void FieldGroup< BaseTypeList_T, Dims_T >::GrabFields::operator() ( WrapperVec_T &  vec) const
inline

Functor.

Definition at line 498 of file FieldGroup.h.

499  {
500  typedef typename WrapperVec_T::value_type Wrapper_T;
501  typedef typename Wrapper_T::field_type Field_T;
502  typedef typename Field_T::Ptr FieldPtr;
503  if (FieldPtr f =
504  Field3D::field_dynamic_cast<Field_T>(m_field)) {
505  vec.push_back(f);
506  }
507  }
Field3D::FieldRes::Ptr m_field
The field to work on. Will be matched against the type of operator().
Definition: FieldGroup.h:509

Member Data Documentation

template<typename BaseTypeList_T , int Dims_T>
Field3D::FieldRes::Ptr FieldGroup< BaseTypeList_T, Dims_T >::GrabFields::m_field

The field to work on. Will be matched against the type of operator().

Definition at line 509 of file FieldGroup.h.


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