Field3D
detail::LoadFields< 3 > Struct Template Reference

#include <FieldGroup.h>

Public Member Functions

 LoadFields (LoadFieldsParams &params)
 
template<typename Vec_T >
void operator() (Vec_T)
 

Public Attributes

LoadFieldsParamsm_p
 

Detailed Description

template<>
struct detail::LoadFields< 3 >

Definition at line 170 of file FieldGroup.h.

Constructor & Destructor Documentation

◆ LoadFields()

detail::LoadFields< 3 >::LoadFields ( LoadFieldsParams params)
inline

Definition at line 173 of file FieldGroup.h.

174  : m_p(params)
175  { }

Member Function Documentation

◆ operator()()

template<typename Vec_T >
void detail::LoadFields< 3 >::operator() ( Vec_T  )
inline

Definition at line 178 of file FieldGroup.h.

179  {
180  typedef typename Vec_T::BaseType T;
181 
182  // Load all fields of type T
183  typename Field3D::Field<Vec_T>::Vec fields =
184  m_p.in.readVectorLayers<T>(m_p.name, m_p.attribute);
185  // Add the fields to the result
186  BOOST_FOREACH (const typename Field3D::Field<Vec_T>::Ptr &ptr, fields) {
187  m_p.results.push_back(ptr);
188  }
189  // Load 'min' fields
190  typename Field3D::Field<Vec_T>::Vec minFields =
191  m_p.in.readVectorLayers<T>(m_p.name, m_p.attribute + k_minSuffix);
192  // Add the fields to the result
193  BOOST_FOREACH (const typename Field3D::Field<Vec_T>::Ptr &ptr, minFields) {
194  m_p.minResults.push_back(ptr);
195  }
196  // Load 'max' fields
197  typename Field3D::Field<Vec_T>::Vec maxFields =
198  m_p.in.readVectorLayers<T>(m_p.name, m_p.attribute + k_maxSuffix);
199  // Add the fields to the result
200  BOOST_FOREACH (const typename Field3D::Field<Vec_T>::Ptr &ptr, maxFields) {
201  m_p.maxResults.push_back(ptr);
202  }
203  }

References detail::k_maxSuffix, and detail::k_minSuffix.

Member Data Documentation

◆ m_p

Definition at line 205 of file FieldGroup.h.


The documentation for this struct was generated from the following file:
detail::LoadFieldsParams::minResults
Field3D::FieldRes::Vec & minResults
Definition: FieldGroup.h:128
detail::k_maxSuffix
static const char * k_maxSuffix
Definition: FieldGroup.h:62
detail::LoadFieldsParams::name
const std::string & name
Definition: FieldGroup.h:125
detail::LoadFieldsParams::maxResults
Field3D::FieldRes::Vec & maxResults
Definition: FieldGroup.h:129
detail::LoadFieldsParams::attribute
const std::string & attribute
Definition: FieldGroup.h:126
detail::LoadFieldsParams::results
Field3D::FieldRes::Vec & results
Definition: FieldGroup.h:127
detail::LoadFields< 3 >::m_p
LoadFieldsParams & m_p
Definition: FieldGroup.h:205
detail::LoadFieldsParams::in
Field3D::Field3DInputFile & in
Definition: FieldGroup.h:124
detail::k_minSuffix
static const char * k_minSuffix
Definition: FieldGroup.h:61