Field3D
detail::LoadFields< 3 > Struct Reference

#include <FieldGroup.h>

Public Member Functions

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

Public Attributes

LoadFieldsParamsm_p
 

Detailed Description

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 { }
LoadFieldsParams & m_p
Definition FieldGroup.h:205

References m_p.

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
184 m_p.in.readVectorLayers<T>(m_p.name, m_p.attribute);
185 // Add the fields to the result
187 m_p.results.push_back(ptr);
188 }
189 // Load 'min' fields
191 m_p.in.readVectorLayers<T>(m_p.name, m_p.attribute + k_minSuffix);
192 // Add the fields to the result
194 m_p.minResults.push_back(ptr);
195 }
196 // Load 'max' fields
198 m_p.in.readVectorLayers<T>(m_p.name, m_p.attribute + k_maxSuffix);
199 // Add the fields to the result
201 m_p.maxResults.push_back(ptr);
202 }
203 }

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

Member Data Documentation

◆ m_p

Definition at line 205 of file FieldGroup.h.

Referenced by LoadFields(), and operator()().


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